Imported from ../bash-3.0.tar.gz.
This commit is contained in:
parent
7117c2d221
commit
b80f6443b6
400 changed files with 69247 additions and 13346 deletions
9
syntax.h
9
syntax.h
|
|
@ -64,12 +64,15 @@
|
|||
#define CSUBSTOP 0x1000 /* values of OP for ${word[:]OPstuff} */
|
||||
|
||||
/* Defines for use by the rest of the shell. */
|
||||
extern const int sh_syntaxtab[];
|
||||
extern int sh_syntaxtab[];
|
||||
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 issyntype(c, t) ((sh_syntaxtab[(unsigned char)(c)] & (t)) != 0)
|
||||
#define notsyntype(c,t) ((sh_syntaxtab[(unsigned char)(c)] & (t)) == 0)
|
||||
|
||||
|
|
@ -92,4 +95,8 @@ extern const int sh_syntaxtab[];
|
|||
#define CTLESC '\001'
|
||||
#define CTLNUL '\177'
|
||||
|
||||
#if !defined (HAVE_ISBLANK) && !defined (isblank)
|
||||
# define isblank(x) ((x) == ' ' || (x) == '\t')
|
||||
#endif
|
||||
|
||||
#endif /* _SYNTAX_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue