awk/awk.patch

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

     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