X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=regex.h;h=7241683798826318b43db17c340d7d0f4ec50ccb;hb=fc3d57a38101a14b1060f625af12d5a2f9706ef7;hp=61bdd6e11a42863cc27827d6a4716c1d916aedef;hpb=df2594c708c0f21de2ae44f5f70479a8d21d0a13;p=gnulib.git diff --git a/regex.h b/regex.h index 61bdd6e11..724168379 100644 --- a/regex.h +++ b/regex.h @@ -140,6 +140,13 @@ typedef unsigned reg_syntax_t; stored in the pattern buffer, so changing this does not affect already-compiled regexps. */ extern reg_syntax_t re_syntax_options; + +#ifdef emacs +/* In Emacs, this is the string or buffer in which we + are matching. It is used for looking up syntax properties. */ +extern Lisp_Object re_match_object; +#endif + /* Define combinations of the above bits for the standard possibilities. (The [[[ comments delimit what gets put into the Texinfo file, so @@ -282,6 +289,8 @@ typedef enum #ifndef RE_TRANSLATE_TYPE #define RE_TRANSLATE_TYPE char * +#define RE_TRANSLATE(TBL, C) ((TBL)[C]) +#define RE_TRANSLATE_P(TBL) (TBL) #endif struct re_pattern_buffer @@ -349,6 +358,10 @@ struct re_pattern_buffer /* If true, an anchor at a newline matches. */ unsigned newline_anchor : 1; + /* If true, multi-byte form in the `buffer' should be recognized as a + multibyte character. */ + unsigned multibyte : 1; + /* [[[end pattern_buffer]]] */ };