X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Frpmatch.c;h=e5f79f8228a34329ce20a4130e49b57b56e8e759;hb=d2b0c77abf5b72cbf78ec4e4e404c851950b0fef;hp=d9c31b598b1c82f69a29f7f1ddf6e5a6b11c6bad;hpb=f8e2674ac086a94e732b36cc1e6d35b7421d355b;p=gnulib.git diff --git a/lib/rpmatch.c b/lib/rpmatch.c index d9c31b598..e5f79f822 100644 --- a/lib/rpmatch.c +++ b/lib/rpmatch.c @@ -1,6 +1,8 @@ /* Determine whether string value is affirmation or negative response according to current locale's data. - Copyright (C) 1996, 1998 Free Software Foundation, Inc. + + Copyright (C) 1996, 1998, 2000, 2002, 2003, 2006 Free Software + Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -14,29 +16,23 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#if HAVE_CONFIG_H -# include -#endif +#include -#if STDC_HEADERS || _LIBC -# include -# include -#else -# ifndef NULL -# define NULL 0 -# endif -#endif +#include +#include #if ENABLE_NLS # include +# include # include -# include -# define _(Text) gettext (Text) +# include "gettext.h" +# define _(msgid) gettext (msgid) static int -try (const char *response, const char *pattern, const int match, const int nomatch, const char **lastp, regex_t *re) +try (const char *response, const char *pattern, const int match, + const int nomatch, const char **lastp, regex_t *re) { if (pattern != *lastp) {