diff options
author | Mark Whitley | 2001-04-20 17:40:33 +0000 |
---|---|---|
committer | Mark Whitley | 2001-04-20 17:40:33 +0000 |
commit | 3e310ac309a3d61c5d2b651e200a625f71d9faa4 (patch) | |
tree | 2b016a3098f06fc60b812281614b26b9bdb3bd25 /include/busybox.h | |
parent | 6ebd63382931ce047de3f801e9cb0ae41007242c (diff) | |
download | busybox-3e310ac309a3d61c5d2b651e200a625f71d9faa4.zip busybox-3e310ac309a3d61c5d2b651e200a625f71d9faa4.tar.gz |
Applied patch from Larry Doolittle to give users the third option of putting
buffers in BSS (in addition to stack and heap).
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/busybox.h b/include/busybox.h index ebbe759..8905b0d 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -72,9 +72,14 @@ extern const char *applet_name; #define RESERVE_BB_BUFFER(buffer,len) char buffer[len] #define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len] #else +#ifdef BB_FEATURE_BUFFERS_GO_IN_BSS +#define RESERVE_BB_BUFFER(buffer,len) static char buffer[len] +#define RESERVE_BB_UBUFFER(buffer,len) static unsigned char buffer[len] +#else #define RESERVE_BB_BUFFER(buffer,len) char *buffer=xmalloc(len) #define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len) #endif +#endif /* Bit map related macros -- libc5 doens't provide these... sigh. */ |