~ubuntu-branches/ubuntu/precise/nagios-plugins/precise-proposed

« back to all changes in this revision

Viewing changes to gl/regex_internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-09-27 00:49:25 UTC
  • mfrom: (12.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100927004925-r3x858jsbl2wa6dx
Tags: 1.4.15-2ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/control: keep on building with libradius1-dev to avoid pusing radiusclient-ng
    to main.
  - Don't depend on nagios-plugins-extra, we dont need qstat and fping in main.
  - debian/{control,rules}: add an enable hardened build for PIE.
    (Debian bug 542728).
  - Build with libmysqlclient-dev only.
  - debian/pluginconfig/nt.cfg: Fix syntax error. (LP: #595528)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Extended regular expression matching and search library.
2
 
   Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
3
 
   Free Software Foundation, Inc.
 
2
   Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
 
3
   Software Foundation, Inc.
4
4
   This file is part of the GNU C Library.
5
5
   Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
6
6
 
28
28
#include <stdlib.h>
29
29
#include <string.h>
30
30
 
31
 
#ifdef _LIBC
32
 
# include <langinfo.h>
33
 
#else
 
31
#include <langinfo.h>
 
32
#ifndef _LIBC
34
33
# include "localcharset.h"
35
34
#endif
36
35
#if defined HAVE_LOCALE_H || defined _LIBC
468
467
# else
469
468
/* alloca is implemented with malloc, so just use malloc.  */
470
469
#  define __libc_use_alloca(n) 0
 
470
#  undef alloca
 
471
#  define alloca(n) malloc (n)
471
472
# endif
472
473
#endif
473
474
 
852
853
}
853
854
#endif /* RE_ENABLE_I18N */
854
855
 
 
856
#ifndef __GNUC_PREREQ
 
857
# if defined __GNUC__ && defined __GNUC_MINOR__
 
858
#  define __GNUC_PREREQ(maj, min) \
 
859
         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
 
860
# else
 
861
#  define __GNUC_PREREQ(maj, min) 0
 
862
# endif
 
863
#endif
 
864
 
 
865
#if __GNUC_PREREQ (3,4)
 
866
# undef __attribute_warn_unused_result__
 
867
# define __attribute_warn_unused_result__ \
 
868
   __attribute__ ((__warn_unused_result__))
 
869
#else
 
870
# define __attribute_warn_unused_result__ /* empty */
 
871
#endif
 
872
 
855
873
#endif /*  _REGEX_INTERNAL_H */