Mercurial > hg > octave-kai > gnulib-hg
comparison lib/ChangeLog @ 6102:781f0829b119
* srclist.txt: Comment out lib/regex.c. Add glibc bug 1238.
* lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
requires this. (The code never needed it.)
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 24 Aug 2005 23:43:00 +0000 |
parents | ecf351b6a0d7 |
children | 1e308ce32c4c |
comparison
equal
deleted
inserted
replaced
6101:c9bcd4ba6b3f | 6102:781f0829b119 |
---|---|
1 2005-08-24 Paul Eggert <eggert@cs.ucla.edu> | |
2 | |
3 * regex.c: Do not include <sys/types.h>, as POSIX no longer | |
4 requires this. (The code never needed it.) | |
5 | |
6 * regcomp.c, regex_internal.c, regex_internal.h, regexec.c: | |
7 All uses of recently-renamed identifiers changed to use the new, | |
8 POSIX-compliant names. The code will build and run just fine | |
9 without these changes, but it's better to eat our own dog food | |
10 and use the standard-conforming names. | |
11 | |
12 * regex.h: Fix a multitude of POSIX name space violations. | |
13 These changes have an effect only for programs that define | |
14 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they | |
15 do not change anything for programs compiled in the normal way. | |
16 Also, there is no effect on the ABI. | |
17 | |
18 (_REGEX_SOURCE): New macro. | |
19 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both | |
20 defined and _GNU_SOURCE is not; this fixes a name space violation. | |
21 | |
22 Rename the following macros to obey POSIX requirements. | |
23 The old names are still visible as macros if _REGEX_SOURCE is defined. | |
24 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from | |
25 RE_BACKSLASH_ESCAPE_IN_LISTS. | |
26 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM. | |
27 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES. | |
28 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS. | |
29 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS. | |
30 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS. | |
31 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE. | |
32 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL. | |
33 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE. | |
34 (REG_INTERVALS): renamed from RE_INTERVALS. | |
35 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS. | |
36 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT. | |
37 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES. | |
38 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS. | |
39 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS. | |
40 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR. | |
41 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES. | |
42 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from | |
43 RE_UNMATCHED_RIGHT_PAREN_ORD. | |
44 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING. | |
45 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS. | |
46 (REG_DEBUG): renamed from RE_DEBUG. | |
47 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD. | |
48 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit | |
49 unusual, since we can't clash with the POSIX REG_ICASE. | |
50 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE. | |
51 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP. | |
52 (REG_NO_SUB): renamed from RE_NO_SUB. | |
53 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS. | |
54 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK. | |
55 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK. | |
56 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK. | |
57 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP. | |
58 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP. | |
59 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP. | |
60 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED. | |
61 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED. | |
62 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON. | |
63 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC. | |
64 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from | |
65 RE_SYNTAX_POSIX_MINIMAL_BASIC. | |
66 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED. | |
67 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from | |
68 RE_SYNTAX_POSIX_MINIMAL_EXTENDED. | |
69 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it. | |
70 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED. | |
71 (REG_REALLOCATE): Renamed from REGS_REALLOCATE. | |
72 (REG_FIXED): Renamed from REGS_FIXED. | |
73 (REG_NREGS): Renamed from RE_NREGS. | |
74 | |
75 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values | |
76 of other REG_* macros, since POSIX says the user is allowed to | |
77 #undef these macros selectively. | |
78 | |
79 (reg_errcode_t): Update comment stating what other tables need | |
80 to be consistent. | |
81 | |
82 Rename the following enum values to obey POSIX requirements. | |
83 The old names are still visible as macros. | |
84 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE | |
85 is not defined, since GNU is supposed to be a superset of POSIX as | |
86 much as possible, and since we want reg_errcode_t to be a signed | |
87 type for implementation consistency. | |
88 (_REG_NOERROR): Renamed from REG_NOERROR. | |
89 (_REG_NOMATCH): Renamed from REG_NOMATCH. | |
90 (_REG_BADPAT): Renamed from REG_BADPAT. | |
91 (_REG_ECOLLATE): Renamed from REG_ECOLLATE. | |
92 (_REG_ECTYPE): Renamed from REG_ECTYPE. | |
93 (_REG_EESCAPE): Renamed from REG_EESCAPE. | |
94 (_REG_ESUBREG): Renamed from REG_ESUBREG. | |
95 (_REG_EBRACK): Renamed from REG_EBRACK. | |
96 (_REG_EPAREN): Renamed from REG_EPAREN. | |
97 (_REG_EBRACE): Renamed from REG_EBRACE. | |
98 (_REG_BADBR): Renamed from REG_BADBR. | |
99 (_REG_ERANGE): Renamed from REG_ERANGE. | |
100 (_REG_ESPACE): Renamed from REG_ESPACE. | |
101 (_REG_BADRPT): Renamed from REG_BADRPT. | |
102 (_REG_EEND): Renamed from REG_EEND. | |
103 (_REG_ESIZE): Renamed from REG_ESIZE. | |
104 (_REG_ERPAREN): Renamed from REG_ERPAREN. | |
105 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE): | |
106 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN): | |
107 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND): | |
108 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants. | |
109 | |
110 (_REG_RE_NAME, _REG_RM_NAME): New macros. | |
111 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses | |
112 changed. But support the old name if the new one is not defined | |
113 and if _REGEX_SOURCE. | |
114 | |
115 Change the following member names in struct re_pattern_buffer. | |
116 The old names are still supported if !_REGEX_SOURCE. | |
117 The new names are always supported, regardless of _REGEX_SOURCE. | |
118 (re_buffer): Renamed from buffer. | |
119 (re_allocated): Renamed from allocated. | |
120 (re_used): Renamed from used. | |
121 (re_syntax): Renamed from syntax. | |
122 (re_fastmap): Renamed from fastmap. | |
123 (re_translate): Renamed from translate. | |
124 (re_can_be_null): Renamed from can_be_null. | |
125 (re_regs_allocated): Renamed from regs_allocated. | |
126 (re_fastmap_accurate): Renamed from fastmap_accurate. | |
127 (re_no_sub): Renamed from no_sub. | |
128 (re_not_bol): Renamed from not_bol. | |
129 (re_not_eol): Renamed from not_eol. | |
130 (re_newline_anchor): Renamed from newline_anchor. | |
131 | |
132 Change the following member names in struct re_registers. | |
133 The old names are still supported if !_REGEX_SOURCE. | |
134 The new names are always supported, regardless of _REGEX_SOURCE. | |
135 (rm_num_regs): Renamed from num_regs. | |
136 (rm_start): Renamed from start. | |
137 (rm_end): Renamed from end. | |
138 | |
139 (re_set_syntax, re_compile_pattern, re_compile_fastmap): | |
140 (re_search, re_search_2, re_match, re_match_2, re_set_registers): | |
141 Prepend __ to parameter names. | |
142 | |
143 Undo yesterday's changes. | |
144 | |
1 2005-08-24 Jim Meyering <jim@meyering.net> | 145 2005-08-24 Jim Meyering <jim@meyering.net> |
2 | 146 |
3 Sync from coreutils. | 147 Sync from coreutils. |
4 * fcntl--.h, fcntl-safer.h, open-safer.c: New files. | 148 * fcntl--.h, fcntl-safer.h, open-safer.c: New files. |
5 | 149 |