summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-29 11:09:43 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-29 11:09:43 +0000
commitc61852a02bd2d61682235ba3185173f527313827 (patch)
tree6af2895da70dda926317fac31cd4db6a4b20200c /include
parent601ae1378ba7bb59e9c1a19fcc4ddd7bf9fb2e1b (diff)
downloadbusybox-w32-c61852a02bd2d61682235ba3185173f527313827.tar.gz
busybox-w32-c61852a02bd2d61682235ba3185173f527313827.tar.bz2
busybox-w32-c61852a02bd2d61682235ba3185173f527313827.zip
fix support for globally disabling --long-options.
(disabling them saves ~4K on fully configured bbox)
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index baab74878..f891e1bc4 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -333,7 +333,9 @@ extern unsigned uidgid_get(struct bb_uidgid_t*, const char* /*, unsigned*/);
333 333
334enum { BB_GETOPT_ERROR = 0x80000000 }; 334enum { BB_GETOPT_ERROR = 0x80000000 };
335extern const char *opt_complementary; 335extern const char *opt_complementary;
336#if ENABLE_GETOPT_LONG
336extern const struct option *applet_long_options; 337extern const struct option *applet_long_options;
338#endif
337extern uint32_t option_mask32; 339extern uint32_t option_mask32;
338extern uint32_t getopt32(int argc, char **argv, const char *applet_opts, ...); 340extern uint32_t getopt32(int argc, char **argv, const char *applet_opts, ...);
339 341
@@ -369,7 +371,7 @@ extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn,
369extern void bb_perror_nomsg_and_die(void) ATTRIBUTE_NORETURN; 371extern void bb_perror_nomsg_and_die(void) ATTRIBUTE_NORETURN;
370extern void bb_perror_nomsg(void); 372extern void bb_perror_nomsg(void);
371extern void bb_info_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); 373extern void bb_info_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
372/* These two are used internally -- you shouldn't need to use them */ 374/* These are used internally -- you shouldn't need to use them */
373extern void bb_verror_msg(const char *s, va_list p, const char *strerr); 375extern void bb_verror_msg(const char *s, va_list p, const char *strerr);
374extern void bb_vperror_msg(const char *s, va_list p); 376extern void bb_vperror_msg(const char *s, va_list p);
375extern void bb_vinfo_msg(const char *s, va_list p); 377extern void bb_vinfo_msg(const char *s, va_list p);