diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-03 16:39:31 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-03 16:39:31 +0000 |
commit | 421d9e59416850968707dfec7a665cb0211b8d1c (patch) | |
tree | cee92b2a5cd0ea7298aab569ed944fdeb59dbdf2 /include/busybox.h | |
parent | 101a470068a62a70489797a3fdfa5084af80106e (diff) | |
download | busybox-w32-421d9e59416850968707dfec7a665cb0211b8d1c.tar.gz busybox-w32-421d9e59416850968707dfec7a665cb0211b8d1c.tar.bz2 busybox-w32-421d9e59416850968707dfec7a665cb0211b8d1c.zip |
- move buffer allocation schemes to libbb.h
- include the correct headers: applets need busybox.h while lib* need libbb.h
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/busybox.h b/include/busybox.h index 18f9dd56e..59d800e8b 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -62,23 +62,6 @@ extern const struct BB_applet applets[]; | |||
62 | #include "applets.h" | 62 | #include "applets.h" |
63 | #undef PROTOTYPES | 63 | #undef PROTOTYPES |
64 | 64 | ||
65 | #ifdef CONFIG_FEATURE_BUFFERS_GO_ON_STACK | ||
66 | #define RESERVE_CONFIG_BUFFER(buffer,len) char buffer[len] | ||
67 | #define RESERVE_CONFIG_UBUFFER(buffer,len) unsigned char buffer[len] | ||
68 | #define RELEASE_CONFIG_BUFFER(buffer) ((void)0) | ||
69 | #else | ||
70 | #ifdef CONFIG_FEATURE_BUFFERS_GO_IN_BSS | ||
71 | #define RESERVE_CONFIG_BUFFER(buffer,len) static char buffer[len] | ||
72 | #define RESERVE_CONFIG_UBUFFER(buffer,len) static unsigned char buffer[len] | ||
73 | #define RELEASE_CONFIG_BUFFER(buffer) ((void)0) | ||
74 | #else | ||
75 | #define RESERVE_CONFIG_BUFFER(buffer,len) char *buffer=xmalloc(len) | ||
76 | #define RESERVE_CONFIG_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len) | ||
77 | #define RELEASE_CONFIG_BUFFER(buffer) free (buffer) | ||
78 | #endif | ||
79 | #endif | ||
80 | |||
81 | |||
82 | #ifndef RB_POWER_OFF | 65 | #ifndef RB_POWER_OFF |
83 | /* Stop system and switch power off if possible. */ | 66 | /* Stop system and switch power off if possible. */ |
84 | #define RB_POWER_OFF 0x4321fedc | 67 | #define RB_POWER_OFF 0x4321fedc |