mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-06 20:00:49 +02:00
commit bash-20070329 snapshot
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
#define CXQUOTE 0x0400 /* cquote + backslash */
|
||||
#define CSPECVAR 0x0800 /* single-character shell variable name */
|
||||
#define CSUBSTOP 0x1000 /* values of OP for ${word[:]OPstuff} */
|
||||
#define CBLANK 0x2000 /* whitespace (blank) character */
|
||||
|
||||
/* Defines for use by the rest of the shell. */
|
||||
extern int sh_syntaxtab[];
|
||||
@@ -70,9 +71,10 @@ extern int sh_syntabsiz;
|
||||
#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 shellxquote(c) (sh_syntaxtab[(unsigned char)(c)] & CXQUOTE)
|
||||
|
||||
#define shellblank(c) (sh_syntaxtab[(unsigned char)(c)] & CBLANK)
|
||||
|
||||
#define issyntype(c, t) ((sh_syntaxtab[(unsigned char)(c)] & (t)) != 0)
|
||||
#define notsyntype(c,t) ((sh_syntaxtab[(unsigned char)(c)] & (t)) == 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user