X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/732fd4c7e11debd61c97eaaba3038d61e6ec7024..ec392ff1a3ce6bd4d32371be454003f642812d5b:/src/regex.h diff --git a/src/regex.h b/src/regex.h index 965425a065..817167a07c 100644 --- a/src/regex.h +++ b/src/regex.h @@ -1,7 +1,7 @@ /* Definitions for data structures and routines for the regular expression library, version 0.12. - Copyright (C) 1985, 1989-1993, 1995, 2000-2015 Free Software + Copyright (C) 1985, 1989-1993, 1995, 2000-2016 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -167,11 +167,15 @@ typedef unsigned long reg_syntax_t; extern reg_syntax_t re_syntax_options; #ifdef emacs +# include "lisp.h" /* 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 +/* Roughly the maximum number of failure points on the stack. */ +extern size_t re_max_failures; + /* Define combinations of the above bits for the standard possibilities. (The [[[ comments delimit what gets put into the Texinfo file, so @@ -600,7 +604,9 @@ typedef wchar_t re_wchar_t; # define re_wctype_to_bit(cc) 0 #else # define CHAR_CLASS_MAX_LENGTH 9 /* Namely, `multibyte'. */ -# define btowc(c) c +# ifndef emacs +# define btowc(c) c +# endif /* Character classes. */ typedef enum { RECC_ERROR = 0,