aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-08-07 20:20:52 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-08-07 20:20:52 +0000
commitde0e1c62843398e211d2588d9fe3c95923733afb (patch)
tree4ed59887a969b2189e8599817541ad6013d1d94e /tmux.h
parent65833c29766b1494da4382e3e3741498dc7037e2 (diff)
downloadrtmux-de0e1c62843398e211d2588d9fe3c95923733afb.tar.gz
rtmux-de0e1c62843398e211d2588d9fe3c95923733afb.tar.bz2
rtmux-de0e1c62843398e211d2588d9fe3c95923733afb.zip
Lose ensure* stuff.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/tmux.h b/tmux.h
index 40a68c4f..6d8f9647 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.179 2008-07-25 17:20:40 nicm Exp $ */
+/* $Id: tmux.h,v 1.180 2008-08-07 20:20:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -115,17 +115,6 @@ extern const char *__progname;
#define printflike3 __attribute__ ((format (printf, 3, 4)))
#define printflike4 __attribute__ ((format (printf, 4, 5)))
-/* Ensure buffer size. */
-#define ENSURE_SIZE(buf, len, size) do { \
- (buf) = ensure_size(buf, &(len), 1, size); \
-} while (0)
-#define ENSURE_SIZE2(buf, len, nmemb, size) do { \
- (buf) = ensure_size(buf, &(len), nmemb, size); \
-} while (0)
-#define ENSURE_FOR(buf, len, size, adj) do { \
- (buf) = ensure_for(buf, &(len), size, adj); \
-} while (0)
-
/* Buffer macros. */
#define BUFFER_USED(b) ((b)->size)
#define BUFFER_FREE(b) ((b)->space - (b)->off - (b)->size)
@@ -1321,9 +1310,6 @@ __dead void log_fatal(const char *, ...);
__dead void log_fatalx(const char *, ...);
/* xmalloc.c */
-void *ensure_size(void *, size_t *, size_t, size_t);
-void *ensure_for(void *, size_t *, size_t, size_t);
-char *xmemstrdup(const char *, size_t);
char *xstrdup(const char *);
void *xcalloc(size_t, size_t);
void *xmalloc(size_t);