config: handle allocation failure explicitly

This commit is contained in:
Craig Barnes 2020-08-04 23:28:16 +01:00
parent c07d14e1c0
commit f1fce96a1d
6 changed files with 223 additions and 68 deletions

View file

@ -13,12 +13,10 @@
//#include "config.h"
#include "fdm.h"
#include "macros.h"
#include "reaper.h"
#include "wayland.h"
#define likely(c) __builtin_expect(!!(c), 1)
#define unlikely(c) __builtin_expect(!!(c), 0)
/*
* Note: we want the cells to be as small as possible. Larger cells
* means fewer scrollback lines (or performance drops due to cache