mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 13:54:19 +08:00
regex.c (PREFIX): Provide an alternate definition for non-ANSI/ISO compilers.
* regex.c (PREFIX): Provide an alternate definition for non-ANSI/ISO compilers. (ARG_PREFIX): Likewise. From-SVN: r47067
This commit is contained in:
parent
18b5b8d64c
commit
7ddfb6510b
@ -1,3 +1,9 @@
|
||||
Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* regex.c (PREFIX): Provide an alternate definition for
|
||||
non-ANSI/ISO compilers.
|
||||
(ARG_PREFIX): Likewise.
|
||||
|
||||
2001-11-12 Jim Meyering <meyering@lucent.com>
|
||||
|
||||
* obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
|
||||
|
@ -612,7 +612,11 @@ typedef enum
|
||||
# define UCHAR_T unsigned char
|
||||
# define COMPILED_BUFFER_VAR bufp->buffer
|
||||
# define OFFSET_ADDRESS_SIZE 2
|
||||
# define PREFIX(name) byte_##name
|
||||
# if defined __STDC__ && __STDC__
|
||||
# define PREFIX(name) byte_##name
|
||||
# else
|
||||
# define PREFIX(name) byte_/**/name
|
||||
# endif
|
||||
# define ARG_PREFIX(name) name
|
||||
# define PUT_CHAR(c) putchar (c)
|
||||
#else
|
||||
@ -622,8 +626,13 @@ typedef enum
|
||||
# define COMPILED_BUFFER_VAR wc_buffer
|
||||
# define OFFSET_ADDRESS_SIZE 1 /* the size which STORE_NUMBER macro use */
|
||||
# define CHAR_CLASS_SIZE ((__alignof__(wctype_t)+sizeof(wctype_t))/sizeof(CHAR_T)+1)
|
||||
# define PREFIX(name) wcs_##name
|
||||
# define ARG_PREFIX(name) c##name
|
||||
# if defined __STDC__ && __STDC__
|
||||
# define PREFIX(name) wcs_##name
|
||||
# define ARG_PREFIX(name) c##name
|
||||
# else
|
||||
# define PREFIX(name) wcs_/**/name
|
||||
# define ARG_PREFIX(name) c/**/name
|
||||
# endif
|
||||
/* Should we use wide stream?? */
|
||||
# define PUT_CHAR(c) printf ("%C", c);
|
||||
# define TRUE 1
|
||||
|
Loading…
Reference in New Issue
Block a user