diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-11-18 14:01:12 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-11-18 14:01:12 +0000 |
commit | 8fa822b52106ddb80a33a81ecfbe3c5dea793f31 (patch) | |
tree | 58616aa820133f4c2c01ee1483f1df114ecad5c7 /tmux.h | |
parent | 93742ed5dfe3b00061ddc55884077a2537c9b43a (diff) | |
parent | 64571368dc19219fc1ef9b6c20034ee143cbed0d (diff) | |
download | rtmux-8fa822b52106ddb80a33a81ecfbe3c5dea793f31.tar.gz rtmux-8fa822b52106ddb80a33a81ecfbe3c5dea793f31.tar.bz2 rtmux-8fa822b52106ddb80a33a81ecfbe3c5dea793f31.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 21 |
1 files changed, 4 insertions, 17 deletions
@@ -48,6 +48,8 @@ struct session; struct tmuxpeer; struct tmuxproc; +#include "xmalloc.h" + /* Default global configuration file. */ #define TMUX_CONF "/etc/tmux.conf" @@ -70,10 +72,6 @@ struct tmuxproc; #define READ_BACKOFF 512 #define READ_TIME 100 -/* Fatal errors. */ -#define fatal(msg) log_fatal("%s: %s", __func__, msg); -#define fatalx(msg) log_fatalx("%s: %s", __func__, msg); - /* Definition to shut gcc up about unused arguments. */ #define unused __attribute__ ((unused)) @@ -2219,19 +2217,8 @@ struct event_base *osdep_event_init(void); void log_open(const char *); void log_close(void); void printflike(1, 2) log_debug(const char *, ...); -__dead void printflike(1, 2) log_fatal(const char *, ...); -__dead void printflike(1, 2) log_fatalx(const char *, ...); - -/* xmalloc.c */ -char *xstrdup(const char *); -void *xcalloc(size_t, size_t); -void *xmalloc(size_t); -void *xrealloc(void *, size_t); -void *xreallocarray(void *, size_t, size_t); -int printflike(2, 3) xasprintf(char **, const char *, ...); -int xvasprintf(char **, const char *, va_list); -int printflike(3, 4) xsnprintf(char *, size_t, const char *, ...); -int xvsnprintf(char *, size_t, const char *, va_list); +__dead void printflike(1, 2) fatal(const char *, ...); +__dead void printflike(1, 2) fatalx(const char *, ...); /* style.c */ int style_parse(const struct grid_cell *, |