diff options
author | Jari Aalto <jari.aalto@cante.net> | 2001-04-06 19:14:31 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:53 +0000 |
commit | 28ef6c316f1aff914bb95ac09787a3c83c1815fd (patch) | |
tree | 2812fe7ffc9beec4f99856906ddfcafda54cf16a /pcomplete.h | |
parent | bb70624e964126b7ac4ff085ba163a9c35ffa18f (diff) | |
download | android_external_bash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.tar.gz android_external_bash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.tar.bz2 android_external_bash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.zip |
Imported from ../bash-2.05.tar.gz.
Diffstat (limited to 'pcomplete.h')
-rw-r--r-- | pcomplete.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/pcomplete.h b/pcomplete.h index 607b5d0..32fc581 100644 --- a/pcomplete.h +++ b/pcomplete.h @@ -28,6 +28,7 @@ typedef struct compspec { int refcount; unsigned long actions; + unsigned long options; char *globpat; char *words; char *prefix; @@ -62,13 +63,11 @@ typedef struct compspec { #define CA_USER (1<<20) #define CA_VARIABLE (1<<21) -/* This is a general-purpose argv-style array struct that should be used - elsewhere. */ -typedef struct _list_of_strings { - char **list; - int list_size; - int list_len; -} STRINGLIST; +/* Values for COMPSPEC options field. */ +#define COPT_RESERVED (1<<0) /* reserved for other use */ +#define COPT_DEFAULT (1<<1) +#define COPT_FILENAMES (1<<2) +#define COPT_DIRNAMES (1<<3) /* List of items is used by the code that implements the programmable completions. */ @@ -133,14 +132,14 @@ extern int add_progcomp __P((char *, COMPSPEC *)); extern int num_progcomps __P((void)); -extern COMPSPEC *find_compspec __P((char *)); +extern COMPSPEC *find_compspec __P((const char *)); extern void print_all_compspecs __P((VFunction *)); /* Functions from pcomplete.c */ extern void set_itemlist_dirty __P((ITEMLIST *)); -extern STRINGLIST *gen_compspec_completions __P((COMPSPEC *, char *, char *, int, int)); -extern char **programmable_completions __P((char *, char *, int, int, int *)); +extern STRINGLIST *gen_compspec_completions __P((COMPSPEC *, const char *, const char *, int, int)); +extern char **programmable_completions __P((const char *, const char *, int, int, int *)); #endif /* _PCOMPLETE_H_ */ |