diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 12:27:41 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 12:27:41 +0300 |
commit | 61bb57af53ebe916d2db6e3585d4fc7ac1d99b92 (patch) | |
tree | 2bfc4e5b127618d286f57a87d416702131b1b01d /dfa.h | |
parent | 0a9ae0c89481db540e1b817a63cc6c793a62c90d (diff) | |
download | egawk-61bb57af53ebe916d2db6e3585d4fc7ac1d99b92.tar.gz egawk-61bb57af53ebe916d2db6e3585d4fc7ac1d99b92.tar.bz2 egawk-61bb57af53ebe916d2db6e3585d4fc7ac1d99b92.zip |
Move to gawk-2.15.3.
Diffstat (limited to 'dfa.h')
-rw-r--r-- | dfa.h | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -129,23 +129,33 @@ what you give them. Help stamp out software-hoarding! */ parentheses are needed for literal searching. 0 means backslash-parentheses are grouping, and plain parentheses are for literal searching. */ +#ifndef RE_NO_BK_PARENS #define RE_NO_BK_PARENS 1L +#endif /* 1 means plain | serves as the "or"-operator, and \| is a literal. 0 means \| serves as the "or"-operator, and | is a literal. */ -#define RE_NO_BK_VBAR (1L << 1) +#ifndef RE_NO_BK_VBAR +#define RE_NO_BK_VBAR (1L << 1) +#endif /* 0 means plain + or ? serves as an operator, and \+, \? are literals. 1 means \+, \? are operators and plain +, ? are literals. */ -#define RE_BK_PLUS_QM (1L << 2) +#ifndef RE_BK_PLUS_QM +#define RE_BK_PLUS_QM (1L << 2) +#endif /* 1 means | binds tighter than ^ or $. 0 means the contrary. */ -#define RE_TIGHT_VBAR (1L << 3) +#ifndef RE_TIGHT_VBAR +#define RE_TIGHT_VBAR (1L << 3) +#endif /* 1 means treat \n as an _OR operator 0 means treat it as a normal character */ -#define RE_NEWLINE_OR (1L << 4) +#ifndef RE_NEWLINE_OR +#define RE_NEWLINE_OR (1L << 4) +#endif /* 0 means that a special characters (such as *, ^, and $) always have their special meaning regardless of the surrounding context. @@ -154,7 +164,9 @@ what you give them. Help stamp out software-hoarding! */ ^ - only special at the beginning, or after ( or | $ - only special at the end, or before ) or | *, +, ? - only special when not after the beginning, (, or | */ -#define RE_CONTEXT_INDEP_OPS (1L << 5) +#ifndef RE_CONTEXT_INDEP_OPS +#define RE_CONTEXT_INDEP_OPS (1L << 5) +#endif /* 1 means that \ in a character class escapes the next character (typically a hyphen. It also is overloaded to mean that hyphen at the end of the range |