aboutsummaryrefslogtreecommitdiff
path: root/cmdedit.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-12-01 19:02:24 +0000
committerEric Andersen <andersen@codepoet.org>2000-12-01 19:02:24 +0000
commit87559829ffc79b94adcee00b64706ce78ff2f3fb (patch)
tree75120bd48cfcb5744e62162b9110e67bf1faa2e4 /cmdedit.h
parent3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (diff)
downloadbusybox-87559829ffc79b94adcee00b64706ce78ff2f3fb.tar.gz
Remove #ifdef __STDC__ junk. We don't do K&R round these parts,
so no point acting like we do.
Diffstat (limited to 'cmdedit.h')
-rw-r--r--cmdedit.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/cmdedit.h b/cmdedit.h
index 27f7b5500..8ebf0d064 100644
--- a/cmdedit.h
+++ b/cmdedit.h
@@ -1,11 +1,11 @@
#ifndef CMDEDIT_H
#define CMDEDIT_H
+#ifdef BB_FEATURE_SH_COMMAND_EDITING
/* unix systems can #define POSIX to use termios, otherwise
* the bsd or sysv interface will be used
*/
-#ifdef __STDC__
#include <stddef.h>
typedef size_t (*cmdedit_strwidth_proc)(char *);
@@ -21,18 +21,6 @@ extern int (*cmdedit_in_hook)(char *);
extern int (*cmdedit_out_hook)(char *);
extern int (*cmdedit_tab_hook)(char *, int, int *);
-#else /* not __STDC__ */
-
-void cmdedit_init(void);
-void cmdedit_read_input(char* promptStr, char* command);
-void cmdedit_setwidth();
-void cmdedit_histadd();
-void cmdedit_strwidth();
-
-extern int (*cmdedit_in_hook)();
-extern int (*cmdedit_out_hook)();
-extern int (*cmdedit_tab_hook)();
-
-#endif /* __STDC__ */
+#endif /* BB_FEATURE_SH_COMMAND_EDITING */
#endif /* CMDEDIT_H */