X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=regex.h;h=7241683798826318b43db17c340d7d0f4ec50ccb;hb=3e6339641eedb691ab9a8f2435b972aac725ea5c;hp=5184e6bb714f31cfaf3e0c30ba0eef049fc21b77;hpb=c264f861716d61baff7c7f4c0bd4362c3918f280;p=gnulib.git diff --git a/regex.h b/regex.h index 5184e6bb7..724168379 100644 --- a/regex.h +++ b/regex.h @@ -15,7 +15,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, + USA. */ #ifndef __REGEXP_LIBRARY_H__ #define __REGEXP_LIBRARY_H__ @@ -139,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 @@ -281,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 @@ -348,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]]] */ };