comparison src/regex.h @ 446:1ccc32a20af4 r21-2-38

Import from CVS: tag r21-2-38
author cvs
date Mon, 13 Aug 2007 11:37:21 +0200
parents abe6d1db359e
children 7039e6323819
comparison
equal deleted inserted replaced
445:34f3776fcf0e 446:1ccc32a20af4
20 20
21 /* Synched up with: FSF 19.29. */ 21 /* Synched up with: FSF 19.29. */
22 22
23 #ifndef INCLUDED_regex_h_ 23 #ifndef INCLUDED_regex_h_
24 #define INCLUDED_regex_h_ 24 #define INCLUDED_regex_h_
25
26 #ifdef emacs
27 #define RE_TRANSLATE_TYPE Lisp_Object
28 #else
29 #define RE_TRANSLATE_TYPE char *
30 #endif /* emacs */
25 31
26 /* POSIX says that <sys/types.h> must be included (by the caller) before 32 /* POSIX says that <sys/types.h> must be included (by the caller) before
27 <regex.h>. */ 33 <regex.h>. */
28 34
29 35
327 333
328 /* Either a translate table to apply to all characters before 334 /* Either a translate table to apply to all characters before
329 comparing them, or zero for no translation. The translation 335 comparing them, or zero for no translation. The translation
330 is applied to a pattern when it is compiled and to a string 336 is applied to a pattern when it is compiled and to a string
331 when it is matched. */ 337 when it is matched. */
332 char *translate; 338 RE_TRANSLATE_TYPE translate;
333 339
334 /* Number of subexpressions found by the compiler. */ 340 /* Number of subexpressions found by the compiler. */
335 size_t re_nsub; 341 size_t re_nsub;
336 342
337 /* Zero if this pattern cannot match the empty string, one else. 343 /* Zero if this pattern cannot match the empty string, one else.