Print this page
remove support for non-ANSI compilation
*** 18,27 ****
--- 18,29 ----
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*** 140,154 ****
struct _regex_ext_t *re_sc; /* for binary compatibility */
} regex_t;
/* subexpression positions */
typedef struct {
- #ifdef __STDC__
const char *rm_sp, *rm_ep; /* Start pointer, end pointer */
- #else
- char *rm_sp, *rm_ep; /* Start pointer, end pointer */
- #endif
regoff_t rm_so, rm_eo; /* Start offset, end offset */
int rm_ss, rm_es; /* Used internally */
} regmatch_t;
--- 142,152 ----
*** 155,182 ****
/*
* Additional API and structs to support regular expression manipulations
* on wide characters.
*/
- #if defined(__STDC__)
-
extern int regcomp(regex_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, int);
extern int regexec(const regex_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
size_t, regmatch_t *_RESTRICT_KYWD, int);
extern size_t regerror(int, const regex_t *_RESTRICT_KYWD,
char *_RESTRICT_KYWD, size_t);
extern void regfree(regex_t *);
- #else /* defined(__STDC__) */
-
- extern int regcomp();
- extern int regexec();
- extern size_t regerror();
- extern void regfree();
-
- #endif /* defined(__STDC__) */
-
#ifdef __cplusplus
}
#endif
#endif /* _REGEX_H */
--- 153,169 ----