projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[gnulib.git]
/
lib
/
regex.h
diff --git
a/lib/regex.h
b/lib/regex.h
index
66791b0
..
5184e6b
100644
(file)
--- a/
lib/regex.h
+++ b/
lib/regex.h
@@
-1,7
+1,7
@@
/* Definitions for data structures and routines for the regular
expression library, version 0.12.
/* Definitions for data structures and routines for the regular
expression library, version 0.12.
- Copyright (C) 1985, 89, 90, 91, 92,
1993
Free Software Foundation, Inc.
+ Copyright (C) 1985, 89, 90, 91, 92,
93, 95
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-23,7
+23,7
@@
/* POSIX says that <sys/types.h> must be included (by the caller) before
<regex.h>. */
/* POSIX says that <sys/types.h> must be included (by the caller) before
<regex.h>. */
-#if
def VMS
+#if
!defined (_POSIX_C_SOURCE) && !defined (_POSIX_SOURCE) && defined (VMS)
/* VMS doesn't have `size_t' in <sys/types.h>, even though POSIX says it
should be there. */
#include <stddef.h>
/* VMS doesn't have `size_t' in <sys/types.h>, even though POSIX says it
should be there. */
#include <stddef.h>
@@
-279,6
+279,10
@@
typedef enum
compiled, the `re_nsub' field is available. All other fields are
private to the regex routines. */
compiled, the `re_nsub' field is available. All other fields are
private to the regex routines. */
+#ifndef RE_TRANSLATE_TYPE
+#define RE_TRANSLATE_TYPE char *
+#endif
+
struct re_pattern_buffer
{
/* [[[begin pattern_buffer]]] */
struct re_pattern_buffer
{
/* [[[begin pattern_buffer]]] */
@@
-305,7
+309,7
@@
struct re_pattern_buffer
comparing them, or zero for no translation. The translation
is applied to a pattern when it is compiled and to a string
when it is matched. */
comparing them, or zero for no translation. The translation
is applied to a pattern when it is compiled and to a string
when it is matched. */
-
char *
translate;
+
RE_TRANSLATE_TYPE
translate;
/* Number of subexpressions found by the compiler. */
size_t re_nsub;
/* Number of subexpressions found by the compiler. */
size_t re_nsub;