| 1 | /* pcomplete.h - structure definitions and other stuff for programmable
|
|---|
| 2 | completion. */
|
|---|
| 3 |
|
|---|
| 4 | /* Copyright (C) 1999-2002 Free Software Foundation, Inc.
|
|---|
| 5 |
|
|---|
| 6 | This file is part of GNU Bash, the Bourne Again SHell.
|
|---|
| 7 |
|
|---|
| 8 | Bash is free software; you can redistribute it and/or modify it under
|
|---|
| 9 | the terms of the GNU General Public License as published by the Free
|
|---|
| 10 | Software Foundation; either version 2, or (at your option) any later
|
|---|
| 11 | version.
|
|---|
| 12 |
|
|---|
| 13 | Bash is distributed in the hope that it will be useful, but WITHOUT ANY
|
|---|
| 14 | WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|---|
| 15 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|---|
| 16 | for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License along
|
|---|
| 19 | with Bash; see the file COPYING. If not, write to the Free Software
|
|---|
| 20 | Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
|
|---|
| 21 |
|
|---|
| 22 | #if !defined (_PCOMPLETE_H_)
|
|---|
| 23 | # define _PCOMPLETE_H_
|
|---|
| 24 |
|
|---|
| 25 | #include "stdc.h"
|
|---|
| 26 | #include "hashlib.h"
|
|---|
| 27 |
|
|---|
| 28 | typedef struct compspec {
|
|---|
| 29 | int refcount;
|
|---|
| 30 | unsigned long actions;
|
|---|
| 31 | unsigned long options;
|
|---|
| 32 | char *globpat;
|
|---|
| 33 | char *words;
|
|---|
| 34 | char *prefix;
|
|---|
| 35 | char *suffix;
|
|---|
| 36 | char *funcname;
|
|---|
| 37 | char *command;
|
|---|
| 38 | char *filterpat;
|
|---|
| 39 | } COMPSPEC;
|
|---|
| 40 |
|
|---|
| 41 | /* Values for COMPSPEC actions. These are things the shell knows how to
|
|---|
| 42 | build internally. */
|
|---|
| 43 | #define CA_ALIAS (1<<0)
|
|---|
| 44 | #define CA_ARRAYVAR (1<<1)
|
|---|
| 45 | #define CA_BINDING (1<<2)
|
|---|
| 46 | #define CA_BUILTIN (1<<3)
|
|---|
| 47 | #define CA_COMMAND (1<<4)
|
|---|
|
|---|