aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-25 23:49:09 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-25 23:49:09 +0000
commitc5cc7737648e945673403a64980cbd90c33f65ed (patch)
tree7bd14fd247492c00f3d38ae1dbd7727e03fda9ad /include
parenta2ba768c18190ba57d9502deb3017aee4c37e36c (diff)
downloadbusybox-w32-c5cc7737648e945673403a64980cbd90c33f65ed.tar.gz
busybox-w32-c5cc7737648e945673403a64980cbd90c33f65ed.tar.bz2
busybox-w32-c5cc7737648e945673403a64980cbd90c33f65ed.zip
Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@1674 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/busybox.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/busybox.h b/include/busybox.h
index 018c636cf..be6c6f305 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -266,4 +266,12 @@ char *format(unsigned long val, unsigned long hr);
266#define GIGABYTE (MEGABYTE*1024) 266#define GIGABYTE (MEGABYTE*1024)
267#endif 267#endif
268 268
269#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
270#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
271#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len]
272#else
273#define RESERVE_BB_BUFFER(buffer,len) char *buffer=xmalloc(len)
274#define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len)
275#endif
276
269#endif /* _BB_INTERNAL_H_ */ 277#endif /* _BB_INTERNAL_H_ */