include regex.h in ex_re.c only

This commit is contained in:
Gunnar Ritter
2005-02-19 18:37:13 +00:00
parent 971748839e
commit 6a6d9e4069
2 changed files with 16 additions and 18 deletions

12
ex_re.h
View File

@@ -72,13 +72,9 @@
*
* from ex_re.h 7.3 (Berkeley) 5/31/85
*
* @(#)ex_re.h 1.19 (gritter) 2/19/05
* @(#)ex_re.h 1.20 (gritter) 2/19/05
*/
#ifdef UXRE
#include <regex.h>
#endif
/*
* Regular expression definitions.
* The regular expressions in ex are similar to those in ed,
@@ -92,11 +88,7 @@ struct regexp {
char Patbuf[2*LBSIZE + 1];
long Re_ident;
bool Re_used;
#ifdef UXRE
regex_t Expbuf;
#else /* !UXRE */
char *Expbuf;
#endif /* !UXRE */
void *Expbuf;
bool Circfl;
short Nbra;
};