summaryrefslogtreecommitdiff
path: root/bin/ksh/edit.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-12-20 11:34:27 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-12-20 11:34:27 +0000
commite445c3ad8a040ce5aa9ffd47e72de71f7cd3dd16 (patch)
treef321abeceffdba61fb97e64b666e8793cf6e1d4e /bin/ksh/edit.h
parentc6e78b160bb0e446bb146be6b8b66890b48e5b31 (diff)
Ansification plus some minor knf. No binary change on i386 and
sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
Diffstat (limited to 'bin/ksh/edit.h')
-rw-r--r--bin/ksh/edit.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/bin/ksh/edit.h b/bin/ksh/edit.h
index 126e4ea17ca..82c0b8ed31b 100644
--- a/bin/ksh/edit.h
+++ b/bin/ksh/edit.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.h,v 1.5 2004/12/19 04:14:20 deraadt Exp $ */
+/* $OpenBSD: edit.h,v 1.6 2004/12/20 11:34:26 otto Exp $ */
/* NAME:
* edit.h - globals for edit modes
@@ -46,24 +46,23 @@ EXTERN X_chars edchars;
/* edit.c */
int x_getc(void);
void x_flush(void);
-void x_putc(int c);
-void x_puts(const char *s);
-bool_t x_mode(bool_t onoff);
-int promptlen(const char *cp, const char **spp);
-int x_do_comment(char *buf, int bsize, int *lenp);
-void x_print_expansions(int nwords, char *const *words, int is_command);
-int x_cf_glob(int flags, const char *buf, int buflen, int pos, int *startp,
- int *endp, char ***wordsp, int *is_commandp);
-int x_longest_prefix(int nwords, char *const *words);
-int x_basename(const char *s, const char *se);
-void x_free_words(int nwords, char **words);
-int x_escape(const char *, size_t, int (*)(const char *s, size_t len));
+void x_putc(int);
+void x_puts(const char *);
+bool_t x_mode(bool_t);
+int promptlen(const char *, const char **);
+int x_do_comment(char *, int, int *);
+void x_print_expansions(int, char *const *, int);
+int x_cf_glob(int, const char *, int, int, int *, int *, char ***, int *);
+int x_longest_prefix(int , char *const *);
+int x_basename(const char *, const char *);
+void x_free_words(int, char **);
+int x_escape(const char *, size_t, int (*)(const char *, size_t));
/* emacs.c */
-int x_emacs(char *buf, size_t len);
+int x_emacs(char *, size_t);
void x_init_emacs(void);
-void x_emacs_keys(X_chars *ec);
+void x_emacs_keys(X_chars *);
/* vi.c */
-int x_vi(char *buf, size_t len);
+int x_vi(char *, size_t);
#ifdef DEBUG