regex.h revision 34f9b3eef6fdadbda0a846aa4d68691ac40eace5
/* : : generated by proto : : */
#if !defined(__PROTO__)
#include <prototyped.h>
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__ /* 2004-08-11 transition */
#endif
#ifdef _AST_STD_I
#define _REGEX_H -1
#define regex_t int
#define regmatch_t int
#endif
#ifndef _REGEX_H
#define _REGEX_H 1
#include <ast_common.h>
#define REG_VERSION 20030916L
/* regcomp flags */
/* nonstandard regcomp flags */
/* regexec flags */
/* nonstandard regexec flags */
/* regalloc flags */
/* regsub flags */
/* regex error codes */
typedef int (*regclass_t) __PROTO__((int));
typedef int32_t regflags_t;
typedef int regoff_t;
typedef int (*regexec_t) __PROTO__((const regex_t*, __V_*, const char*, size_t, const char*, size_t, char**, regdisc_t*));
typedef struct regmatch_s
{
} regmatch_t;
typedef struct regsub_s
{
char* re_buf; /* regsubexec() output buffer */
int re_min; /* regsubcomp() min matches */
#ifdef _REG_SUB_PRIVATE_
#endif
} regsub_t;
struct regdisc_s
{
unsigned long re_version; /* discipline version */
int re_errorlevel; /* errorf level */
unsigned char* re_map; /* external to native ccode map */
};
typedef struct regstat_s
{
} regstat_t;
struct regex_s
{
};
#if _BLD_ast && defined(__EXPORT__)
#endif
extern __MANGLE__ int regexec __PROTO__((const regex_t*, const char*, size_t, regmatch_t*, regflags_t));
/* nonstandard hooks */
extern __MANGLE__ int regnexec __PROTO__((const regex_t*, const char*, size_t, size_t, regmatch_t*, regflags_t));
extern __MANGLE__ int regrexec __PROTO__((const regex_t*, const char*, size_t, size_t, regmatch_t*, regflags_t, int, __V_*, regrecord_t));
extern __MANGLE__ int regsubcomp __PROTO__((regex_t*, const char*, const regflags_t*, int, regflags_t));
extern __MANGLE__ int regsubflags __PROTO__((regex_t*, const char*, char**, int, const regflags_t*, int*, regflags_t*));
/* obsolete hooks */
#ifndef _SFIO_H
struct _sfio_s;
#endif
extern __MANGLE__ int regsub __PROTO__((const regex_t*, struct _sfio_s*, const char*, const char*, size_t, regmatch_t*, regflags_t));
#define __MANGLE__ __LINKAGE__
#endif