awk/awk.patch

Sat, 01 Sep 2012 12:17:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 01 Sep 2012 12:17:10 +0200
changeset 653
9d74c60eb90e
permissions
-rw-r--r--

Back out attempt to repair gets(3) redefinition and correct rather by
avoiding detection of gets(3) as a method with no macro, otherwise
leading to definition of HAVE_RAW_DECL_GETS and redefition of gets(3)
in lib/stdio.h(.in) caused by 'a split double-inclusion guard' and
a seemingly multiple '#include_next <stdio.h>' reference. Quatch.

     1 Index: b.c
     2 --- b.c.orig	2005-02-08 20:21:44 +0100
     3 +++ b.c	2006-09-15 19:24:23 +0200
     4 @@ -720,7 +720,7 @@
     6  #ifndef HAS_ISBLANK
     8 -int (isblank)(int c)
     9 +static int (awk_isblank)(int c)
    10  {
    11  	return c==' ' || c=='\t';
    12  }
    13 @@ -734,7 +734,7 @@
    14  } charclasses[] = {
    15  	{ "alnum",	5,	isalnum },
    16  	{ "alpha",	5,	isalpha },
    17 -	{ "blank",	5,	isblank },
    18 +	{ "blank",	5,	awk_isblank },
    19  	{ "cntrl",	5,	iscntrl },
    20  	{ "digit",	5,	isdigit },
    21  	{ "graph",	5,	isgraph },

mercurial