From 421d9e59416850968707dfec7a665cb0211b8d1c Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 3 Apr 2006 16:39:31 +0000 Subject: - move buffer allocation schemes to libbb.h - include the correct headers: applets need busybox.h while lib* need libbb.h --- include/busybox.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'include/busybox.h') diff --git a/include/busybox.h b/include/busybox.h index 18f9dd5..59d800e 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -62,23 +62,6 @@ extern const struct BB_applet applets[]; #include "applets.h" #undef PROTOTYPES -#ifdef CONFIG_FEATURE_BUFFERS_GO_ON_STACK -#define RESERVE_CONFIG_BUFFER(buffer,len) char buffer[len] -#define RESERVE_CONFIG_UBUFFER(buffer,len) unsigned char buffer[len] -#define RELEASE_CONFIG_BUFFER(buffer) ((void)0) -#else -#ifdef CONFIG_FEATURE_BUFFERS_GO_IN_BSS -#define RESERVE_CONFIG_BUFFER(buffer,len) static char buffer[len] -#define RESERVE_CONFIG_UBUFFER(buffer,len) static unsigned char buffer[len] -#define RELEASE_CONFIG_BUFFER(buffer) ((void)0) -#else -#define RESERVE_CONFIG_BUFFER(buffer,len) char *buffer=xmalloc(len) -#define RESERVE_CONFIG_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len) -#define RELEASE_CONFIG_BUFFER(buffer) free (buffer) -#endif -#endif - - #ifndef RB_POWER_OFF /* Stop system and switch power off if possible. */ #define RB_POWER_OFF 0x4321fedc -- cgit v1.1