1/* 2 * 3 * Portions Copyright 1998 Sun Microsystems, Inc. All rights reserved. 4 * Use is subject to license terms. 5 * 6 */ 7 8#pragma ident "%Z%%M% %I% %E% SMI" 9 10#if defined( MACOS ) || defined( DOS ) || defined( _WIN32 ) || defined( NEED_BSDREGEX ) 11/* 12 * Copyright (c) 1993 Regents of the University of Michigan. 13 * All rights reserved. 14 * 15 * Redistribution and use in source and binary forms are permitted 16 * provided that this notice is preserved and that due credit is given 17 * to the University of Michigan at Ann Arbor. The name of the University 18 * may not be used to endorse or promote products derived from this 19 * software without specific prior written permission. This software 20 * is provided ``as is'' without express or implied warranty. 21 */ 22/* 23 * regex.h -- includes for regular expression matching routines 24 * 13 August 1993 Mark C Smith 25 */ 26 27#ifdef __cplusplus 28extern "C" { 29#endif 30 31#if !defined( NEEDPROTOS ) && defined( __STDC__ ) 32#define NEEDPROTOS 33#endif 34 35#ifdef NEEDPROTOS 36char *re_comp( char *pat ); 37int re_exec( char *lp ); 38void re_modw( char *s ); 39int re_subs( char *src, char *dst ); 40#else /* NEEDPROTOS */ 41char *re_comp(); 42int re_exec(); 43void re_modw(); 44int re_subs(); 45#endif /* NEEDPROTOS */ 46 47#define re_fail( m, p ) 48 49#ifdef __cplusplus 50} 51#endif 52#endif /* MACOS or DOS or NEED_BSDREGEX */ 53