Imported from ../bash-2.05b.tar.gz.
This commit is contained in:
parent
f73dda092b
commit
7117c2d221
362 changed files with 34387 additions and 15063 deletions
10
syntax.h
10
syntax.h
|
|
@ -61,13 +61,17 @@
|
|||
#define CXGLOB 0x0200 /* extended globbing characters */
|
||||
#define CXQUOTE 0x0400 /* cquote + backslash */
|
||||
#define CSPECVAR 0x0800 /* single-character shell variable name */
|
||||
#define CSUBSTOP 0x1000 /* values of OP for ${word[:]OPstuff} */
|
||||
|
||||
/* Defines for use by the rest of the shell. */
|
||||
extern const int sh_syntaxtab[];
|
||||
|
||||
#define shellmeta(c) (sh_syntaxtab[(c)] & CSHMETA)
|
||||
#define shellbreak(c) (sh_syntaxtab[(c)] & CSHBRK)
|
||||
#define shellquote(c) (sh_syntaxtab[(c)] & CQUOTE)
|
||||
#define shellmeta(c) (sh_syntaxtab[(unsigned char)(c)] & CSHMETA)
|
||||
#define shellbreak(c) (sh_syntaxtab[(unsigned char)(c)] & CSHBRK)
|
||||
#define shellquote(c) (sh_syntaxtab[(unsigned char)(c)] & CQUOTE)
|
||||
|
||||
#define issyntype(c, t) ((sh_syntaxtab[(unsigned char)(c)] & (t)) != 0)
|
||||
#define notsyntype(c,t) ((sh_syntaxtab[(unsigned char)(c)] & (t)) == 0)
|
||||
|
||||
#if defined (PROCESS_SUBSTITUTION)
|
||||
# define shellexp(c) ((c) == '$' || (c) == '<' || (c) == '>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue