do not put all <applet>_main() declarations

in busybox.h - this produces false dependencies
This commit is contained in:
Denis Vlasenko
2007-02-03 17:27:14 +00:00
parent 6a1829d90c
commit c7ba8b9d6c
3 changed files with 9 additions and 14 deletions

View File

@ -31,19 +31,9 @@ struct BB_applet {
__extension__ enum SUIDRoot need_suid:4;
};
/* From busybox.c and applet.c */
/* Defined in busybox.c and applet.c */
extern int busybox_main(int argc, char **argv);
extern const struct BB_applet applets[];
extern const unsigned short NUM_APPLETS;
/* Automagically pull in all the applet function prototypes and
* applet usage strings. These are all of the form:
* extern int foo_main(int argc, char **argv);
* extern const char foo_usage[];
* These are all autogenerated from the set of currently defined applets.
*/
#define PROTOTYPES
#include "applets.h"
#undef PROTOTYPES
#endif /* _BB_INTERNAL_H_ */
#endif /* _BB_INTERNAL_H_ */