Deleted Added
full compact
b.c (201989) b.c (221381)
1/****************************************************************
2Copyright (C) Lucent Technologies 1997
3All Rights Reserved
4
5Permission to use, copy, modify, and distribute this software and
6its documentation for any purpose and without fee is hereby
7granted, provided that the above copyright notice appear in all
8copies and that both that the copyright notice and this

--- 11 unchanged lines hidden (view full) ---

20IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
21ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
22THIS SOFTWARE.
23****************************************************************/
24
25/* lasciate ogne speranza, voi ch'intrate. */
26
27#include <sys/cdefs.h>
1/****************************************************************
2Copyright (C) Lucent Technologies 1997
3All Rights Reserved
4
5Permission to use, copy, modify, and distribute this software and
6its documentation for any purpose and without fee is hereby
7granted, provided that the above copyright notice appear in all
8copies and that both that the copyright notice and this

--- 11 unchanged lines hidden (view full) ---

20IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
21ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
22THIS SOFTWARE.
23****************************************************************/
24
25/* lasciate ogne speranza, voi ch'intrate. */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/contrib/one-true-awk/b.c 201989 2010-01-10 08:02:07Z ru $");
28__FBSDID("$FreeBSD: head/contrib/one-true-awk/b.c 221381 2011-05-03 11:47:19Z ru $");
29
30#define DEBUG
31
32#include <ctype.h>
33#include <stdio.h>
34#include <string.h>
35#include <stdlib.h>
36#include "awk.h"

--- 710 unchanged lines hidden (view full) ---

747 * the parentheses here are an attempt to find a path through the maze
748 * of macro definition and/or function and/or version provided. thanks
749 * to nelson beebe for the suggestion; let's see if it works everywhere.
750 */
751
752/* #define HAS_ISBLANK */
753#ifndef HAS_ISBLANK
754
29
30#define DEBUG
31
32#include <ctype.h>
33#include <stdio.h>
34#include <string.h>
35#include <stdlib.h>
36#include "awk.h"

--- 710 unchanged lines hidden (view full) ---

747 * the parentheses here are an attempt to find a path through the maze
748 * of macro definition and/or function and/or version provided. thanks
749 * to nelson beebe for the suggestion; let's see if it works everywhere.
750 */
751
752/* #define HAS_ISBLANK */
753#ifndef HAS_ISBLANK
754
755int (isblank)(int c)
755int (xisblank)(int c)
756{
757 return c==' ' || c=='\t';
758}
759
760#endif
761
762struct charclass {
763 const char *cc_name;
764 int cc_namelen;
765 int (*cc_func)(int);
766} charclasses[] = {
767 { "alnum", 5, isalnum },
768 { "alpha", 5, isalpha },
756{
757 return c==' ' || c=='\t';
758}
759
760#endif
761
762struct charclass {
763 const char *cc_name;
764 int cc_namelen;
765 int (*cc_func)(int);
766} charclasses[] = {
767 { "alnum", 5, isalnum },
768 { "alpha", 5, isalpha },
769#ifndef HAS_ISBLANK
770 { "blank", 5, isspace }, /* was isblank */
771#else
769 { "blank", 5, isblank },
772 { "blank", 5, isblank },
773#endif
770 { "cntrl", 5, iscntrl },
771 { "digit", 5, isdigit },
772 { "graph", 5, isgraph },
773 { "lower", 5, islower },
774 { "print", 5, isprint },
775 { "punct", 5, ispunct },
776 { "space", 5, isspace },
777 { "upper", 5, isupper },

--- 195 unchanged lines hidden ---
774 { "cntrl", 5, iscntrl },
775 { "digit", 5, isdigit },
776 { "graph", 5, isgraph },
777 { "lower", 5, islower },
778 { "print", 5, isprint },
779 { "punct", 5, ispunct },
780 { "space", 5, isspace },
781 { "upper", 5, isupper },

--- 195 unchanged lines hidden ---