mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Hi Joseph, As we discussed, this patch just makes C23 include every check that is performed by C11. I tested the commit by adding the ISO23 Make and Python variables to be the same as ISO11. So the only difference was compiling with -DISO23 instead of -DISO11. And changed the temporary directories to instead use the format f'/tmp/glibc-{self.standard}-{self.header}'. Then I used a shell script to run 'cmp' on each file in the ISO11 and ISO23 directories for each header to make sure they were the same. -- 8< -- Make C23 checks include every test that is performed by C11. Done by running the following command: find conform -name '*.h-data' | xargs sed -i \ -e 's| !defined ISO11| !defined ISO11 \&\& !defined ISO23|g' \ -e 's| defined ISO11| defined ISO11 \|\| defined ISO23|g' \ -e 's|ifdef ISO11|if defined ISO11 \|\| defined ISO23|g' \ -e 's|ifndef ISO11|if !defined ISO11 \&\& !defined ISO23|g' Signed-off-by: Collin Funk <collin.funk1@gmail.com>
46 lines
970 B
Plaintext
46 lines
970 B
Plaintext
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
|
|
type regex_t
|
|
element regex_t size_t re_nsub
|
|
|
|
type regoff_t
|
|
|
|
type regmatch_t
|
|
element regmatch_t regoff_t rm_so
|
|
element regmatch_t regoff_t rm_eo
|
|
|
|
constant REG_EXTENDED
|
|
constant REG_ICASE
|
|
constant REG_NOSUB
|
|
constant REG_NEWLINE
|
|
|
|
constant REG_NOTBOL
|
|
constant REG_NOTEOL
|
|
|
|
constant REG_NOMATCH
|
|
constant REG_BADPAT
|
|
constant REG_ECOLLATE
|
|
constant REG_ECTYPE
|
|
constant REG_EESCAPE
|
|
constant REG_ESUBREG
|
|
constant REG_EBRACK
|
|
constant REG_EPAREN
|
|
constant REG_EBRACE
|
|
constant REG_BADBR
|
|
constant REG_ERANGE
|
|
constant REG_ESPACE
|
|
constant REG_BADRPT
|
|
# if !defined POSIX && !defined XOPEN2K8 && !defined POSIX2008
|
|
constant REG_ENOSYS
|
|
# endif
|
|
|
|
function int regcomp (regex_t*, const char*, int)
|
|
function int regexec (const regex_t*, const char*, size_t, regmatch_t[], int)
|
|
function size_t regerror (int, const regex_t*, char*, size_t)
|
|
function void regfree (regex_t*)
|
|
|
|
allow REG_*
|
|
allow re_*
|
|
allow rm_*
|
|
allow *_t
|
|
#endif
|