summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Landley2005-07-27 06:55:36 +0000
committerRob Landley2005-07-27 06:55:36 +0000
commit193c8c73834b701f93c421fc88a2ecb715fd6fe5 (patch)
tree8467a696b1990e665391d4fcde21c8f176f27cd1 /include
parent77804ce53d2a83d89e272a20763f2e6f5fc25d8c (diff)
downloadbusybox-193c8c73834b701f93c421fc88a2ecb715fd6fe5.zip
busybox-193c8c73834b701f93c421fc88a2ecb715fd6fe5.tar.gz
#ifdef reduction infrastructure, based on an argument between Shaun Jackman,
Rob Landley, and others. Currently CONFIG options are defined or undefined, so we chop out code with #ifdefs, ala: #ifdef CONFIG_THING stuff(); #endif This creates a new header file, bb_config.h, which sets the CONFIG entry to 1 or 0, and lets us do: if(CONFIG_THING) stuff(); And let the compiler do dead code elimination to get rid of it. (Note: #ifdef will still work because for the 1 case it's a static const int, not a #define.)
Diffstat (limited to 'include')
-rw-r--r--include/busybox.h2
-rw-r--r--include/libbb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/busybox.h b/include/busybox.h
index 3ff3d8a..e7ed135 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -24,7 +24,7 @@
#ifndef _BB_INTERNAL_H_
#define _BB_INTERNAL_H_ 1
-#include "config.h"
+#include "bb_config.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/include/libbb.h b/include/libbb.h
index 1aa7b41..a544465 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -41,7 +41,7 @@
#include <features.h>
-#include "config.h"
+#include "bb_config.h"
#ifdef CONFIG_SELINUX
#include <selinux/selinux.h>
#endif