mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
Use Gnulib's `regex' module.
This should help with regex portability, as reported in <http://bugs.gnu.org/10684> for Darwin 8.11. * m4/gnulib-cache.m4 (gl_MODULES): Add `regex'. * configure.ac: Remove header checks for regex.h, rxposix.h, and rx/rxposix.h. Remove check for the `regcomp' function. Remove definition of `HAVE_REGCOMP'. Define `ENABLE_REGEX'. * libguile/init.c: Check for `ENABLE_REGEX' instead of `HAVE_REGCOMP'. * libguile/regex-posix.c: Always include <regex.h>. Remove #ifdefs for rxposix.h and co.
This commit is contained in:
parent
1ba05158eb
commit
eb4a14ed47
40 changed files with 16040 additions and 43 deletions
|
@ -1,5 +1,6 @@
|
|||
/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2002, 2003, 2004, 2006, 2009, 2010, 2011 Free Software Foundation, Inc.
|
||||
*
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
|
||||
* 2004, 2006, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
* as published by the Free Software Foundation; either version 3 of
|
||||
|
@ -91,7 +92,7 @@
|
|||
#include "libguile/poll.h"
|
||||
#include "libguile/ports.h"
|
||||
#include "libguile/posix.h"
|
||||
#ifdef HAVE_REGCOMP
|
||||
#ifdef ENABLE_REGEX
|
||||
#include "libguile/regex-posix.h"
|
||||
#endif
|
||||
#include "libguile/print.h"
|
||||
|
@ -453,7 +454,7 @@ scm_i_init_guile (void *base)
|
|||
#ifdef HAVE_POSIX
|
||||
scm_init_posix ();
|
||||
#endif
|
||||
#ifdef HAVE_REGCOMP
|
||||
#ifdef ENABLE_REGEX
|
||||
scm_init_regex_posix (); /* Requires smob_prehistory */
|
||||
#endif
|
||||
scm_init_procs ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue