1 /* $NetBSD: edit.h,v 1.3 1999/11/02 22:06:45 jdolecek Exp $ */
4 * edit.h - globals for edit modes
7 * This header defines various global edit objects.
13 * $NetBSD: edit.h,v 1.3 1999/11/02 22:06:45 jdolecek Exp $
17 /* some useful #defines */
22 # define EXTERN extern
23 # define EXTERN_DEFINED
28 /* tty driver characters we are interested in */
38 EXTERN X_chars edchars
;
40 /* x_fc_glob() flags */
41 #define XCF_COMMAND BIT(0) /* Do command completion */
42 #define XCF_FILE BIT(1) /* Do file completion */
43 #define XCF_FULLPATH BIT(2) /* command completion: store full path */
44 #define XCF_COMMAND_FILE (XCF_COMMAND|XCF_FILE)
47 int x_getc
ARGS((void));
48 void x_flush
ARGS((void));
49 void x_putc
ARGS((int c
));
50 void x_puts
ARGS((const char *s
));
51 bool_t x_mode
ARGS((bool_t onoff
));
52 int promptlen
ARGS((const char *cp
, const char **spp
));
53 int x_do_comment
ARGS((char *buf
, int bsize
, int *lenp
));
54 void x_print_expansions
ARGS((int nwords
, char *const *words
, int is_command
));
55 int x_cf_glob
ARGS((int flags
, const char *buf
, int buflen
, int pos
, int *startp
,
56 int *endp
, char ***wordsp
, int *is_commandp
));
57 int x_longest_prefix
ARGS((int nwords
, char *const *words
));
58 int x_basename
ARGS((const char *s
, const char *se
));
59 void x_free_words
ARGS((int nwords
, char **words
));
60 int x_escape
ARGS((const char *, size_t, int (*)(const char *s
, size_t len
)));
62 int x_emacs
ARGS((char *buf
, size_t len
));
63 void x_init_emacs
ARGS((void));
64 void x_emacs_keys
ARGS((X_chars
*ec
));
66 int x_vi
ARGS((char *buf
, size_t len
));
75 /* This lot goes at the END */
76 /* be sure not to interfere with anyone else's idea about EXTERN */
78 # undef EXTERN_DEFINED