/[cvs]/ccvs/lib/regex.c
ViewVC logotype

Diff of /ccvs/lib/regex.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by dprice, Fri Aug 12 20:58:10 2005 UTC revision 1.21 by dprice, Sun Sep 4 05:58:56 2005 UTC
# Line 21  Line 21 
21  #include "config.h"  #include "config.h"
22  #endif  #endif
23    
 #ifdef _AIX  
 #pragma alloca  
 #else  
 # ifndef allocax           /* predefined by HP cc +Olibcalls */  
 #  ifdef __GNUC__  
 #   define alloca(size) __builtin_alloca (size)  
 #  else  
 #   if HAVE_ALLOCA_H  
 #    include <alloca.h>  
 #   else  
 #    ifdef __hpux  
         void *alloca ();  
 #    else  
 #     if !defined __OS2__ && !defined WIN32  
         char *alloca ();  
 #     else  
 #      include <malloc.h>       /* OS/2 defines alloca in here */  
 #     endif  
 #    endif  
 #   endif  
 #  endif  
 # endif  
 #endif  
   
24  #ifdef _LIBC  #ifdef _LIBC
25  /* We have to keep the namespace clean.  */  /* We have to keep the namespace clean.  */
26  # define regfree(preg) __regfree (preg)  # define regfree(preg) __regfree (preg)
# Line 70  Line 46 
46  # include "../locale/localeinfo.h"  # include "../locale/localeinfo.h"
47  #endif  #endif
48    
 /* POSIX says that <sys/types.h> must be included (by the caller) before  
    <regex.h>.  */  
 #include <sys/types.h>  
   
49  /* On some systems, limits.h sets RE_DUP_MAX to a lower value than  /* On some systems, limits.h sets RE_DUP_MAX to a lower value than
50     GNU regex allows.  Include it before <regex.h>, which correctly     GNU regex allows.  Include it before <regex.h>, which correctly
51     #undefs RE_DUP_MAX and sets it to the right value.  */     #undefs RE_DUP_MAX and sets it to the right value.  */

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26