22 #if !defined (_PCOMPLETE_H_) 23 # define _PCOMPLETE_H_ 44 #define CA_ALIAS (1<<0) 45 #define CA_ARRAYVAR (1<<1) 46 #define CA_BINDING (1<<2) 47 #define CA_BUILTIN (1<<3) 48 #define CA_COMMAND (1<<4) 49 #define CA_DIRECTORY (1<<5) 50 #define CA_DISABLED (1<<6) 51 #define CA_ENABLED (1<<7) 52 #define CA_EXPORT (1<<8) 53 #define CA_FILE (1<<9) 54 #define CA_FUNCTION (1<<10) 55 #define CA_GROUP (1<<11) 56 #define CA_HELPTOPIC (1<<12) 57 #define CA_HOSTNAME (1<<13) 58 #define CA_JOB (1<<14) 59 #define CA_KEYWORD (1<<15) 60 #define CA_RUNNING (1<<16) 61 #define CA_SERVICE (1<<17) 62 #define CA_SETOPT (1<<18) 63 #define CA_SHOPT (1<<19) 64 #define CA_SIGNAL (1<<20) 65 #define CA_STOPPED (1<<21) 66 #define CA_USER (1<<22) 67 #define CA_VARIABLE (1<<23) 70 #define COPT_RESERVED (1<<0) 71 #define COPT_DEFAULT (1<<1) 72 #define COPT_FILENAMES (1<<2) 73 #define COPT_DIRNAMES (1<<3) 74 #define COPT_NOQUOTE (1<<4) 75 #define COPT_NOSPACE (1<<5) 76 #define COPT_BASHDEFAULT (1<<6) 77 #define COPT_PLUSDIRS (1<<7) 78 #define COPT_NOSORT (1<<8) 80 #define COPT_LASTUSER COPT_NOSORT 82 #define PCOMP_RETRYFAIL (COPT_LASTUSER << 1) 83 #define PCOMP_NOTFOUND (COPT_LASTUSER << 2) 101 #define LIST_DYNAMIC 0x001 102 #define LIST_DIRTY 0x002 103 #define LIST_INITIALIZED 0x004 104 #define LIST_MUSTSORT 0x008 105 #define LIST_DONTFREE 0x010 106 #define LIST_DONTFREEMEMBERS 0x020 108 #define EMPTYCMD "_EmptycmD_" 109 #define DEFAULTCMD "_DefaultCmD_" 110 #define INITIALWORD "_InitialWorD_" 154 extern void progcomp_create
__P((
void));
155 extern void progcomp_flush
__P((
void));
156 extern void progcomp_dispose
__P((
void));
158 extern int progcomp_size
__P((
void));
160 extern int progcomp_insert
__P((
char *,
COMPSPEC *));
161 extern int progcomp_remove
__P((
char *));
163 extern COMPSPEC *progcomp_search
__P((
const char *));
165 extern void progcomp_walk
__P((hash_wfunc *));
172 extern STRINGLIST *gen_compspec_completions
__P((
COMPSPEC *,
const char *,
const char *,
int,
int,
int *));
173 extern char **programmable_completions
__P((
const char *,
const char *,
int,
int,
int *));
175 extern void pcomp_set_readline_variables
__P((
int,
int));
176 extern void pcomp_set_compspec_options
__P((
COMPSPEC *,
int,
int));
const char * pcomp_curcmd
int prog_completion_enabled
COMPSPEC *compspec_create __P((void))
HASH_TABLE * prog_completes
struct _list_of_items ITEMLIST