diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 05:05:38 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 05:05:38 +0000 |
commit | 2ad6f3dee6bc54535003f4ab26bbc587b7efa38c (patch) | |
tree | a3959baf797787918878bec6d58d6a0fb743ad0a /gnu/usr.bin/awk | |
parent | 4f960dd75f181e9fa2edc44324f15f0ab5c64b37 (diff) | |
download | FreeBSD-src-2ad6f3dee6bc54535003f4ab26bbc587b7efa38c.zip FreeBSD-src-2ad6f3dee6bc54535003f4ab26bbc587b7efa38c.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'gnu/usr.bin/awk')
-rw-r--r-- | gnu/usr.bin/awk/array.c | 20 | ||||
-rw-r--r-- | gnu/usr.bin/awk/awk.h | 16 | ||||
-rw-r--r-- | gnu/usr.bin/awk/builtin.c | 24 | ||||
-rw-r--r-- | gnu/usr.bin/awk/config.h | 10 | ||||
-rw-r--r-- | gnu/usr.bin/awk/dfa.c | 18 | ||||
-rw-r--r-- | gnu/usr.bin/awk/eval.c | 22 | ||||
-rw-r--r-- | gnu/usr.bin/awk/field.c | 14 | ||||
-rw-r--r-- | gnu/usr.bin/awk/io.c | 22 | ||||
-rw-r--r-- | gnu/usr.bin/awk/iop.c | 10 | ||||
-rw-r--r-- | gnu/usr.bin/awk/main.c | 20 | ||||
-rw-r--r-- | gnu/usr.bin/awk/msg.c | 10 | ||||
-rw-r--r-- | gnu/usr.bin/awk/node.c | 22 | ||||
-rw-r--r-- | gnu/usr.bin/awk/protos.h | 10 | ||||
-rw-r--r-- | gnu/usr.bin/awk/re.c | 12 | ||||
-rw-r--r-- | gnu/usr.bin/awk/version.c | 4 |
15 files changed, 117 insertions, 117 deletions
diff --git a/gnu/usr.bin/awk/array.c b/gnu/usr.bin/awk/array.c index d42f9a6..9166c4e 100644 --- a/gnu/usr.bin/awk/array.c +++ b/gnu/usr.bin/awk/array.c @@ -2,22 +2,22 @@ * array.c - routines for associative arrays. */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -161,7 +161,7 @@ unsigned long hsize; h = 0; #if defined(VAXC) -/* +/* * [This was an implementation of "Duff's Device", but it has been * redone, separating the switch for extra iterations from the loop. * This is necessary because the DEC VAX-C compiler is STOOPID.] @@ -251,7 +251,7 @@ int hash1; } /* - * test whether the array element symbol[subs] exists or not + * test whether the array element symbol[subs] exists or not */ int in_array(symbol, subs) @@ -276,10 +276,10 @@ NODE *symbol, *subs; /* * SYMBOL is the address of the node (or other pointer) being dereferenced. - * SUBS is a number or string used as the subscript. + * SUBS is a number or string used as the subscript. * * Find SYMBOL[SUBS] in the assoc array. Install it with value "" if it - * isn't there. Returns a pointer ala get_lhs to where its value is stored + * isn't there. Returns a pointer ala get_lhs to where its value is stored */ NODE ** assoc_lookup(symbol, subs) @@ -402,7 +402,7 @@ assoc_next(lookat) struct search *lookat; { register NODE *symbol = lookat->sym; - + if (symbol == NULL) fatal("null symbol in assoc_next"); if (symbol->var_array == NULL || lookat->idx > symbol->array_size) { diff --git a/gnu/usr.bin/awk/awk.h b/gnu/usr.bin/awk/awk.h index 1f0e2c1..453a724 100644 --- a/gnu/usr.bin/awk/awk.h +++ b/gnu/usr.bin/awk/awk.h @@ -1,23 +1,23 @@ /* - * awk.h -- Definitions for gawk. + * awk.h -- Definitions for gawk. */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -306,7 +306,7 @@ typedef enum { /* * boolean test of membership in array lnode is string-valued - * expression rnode is array name + * expression rnode is array name */ Node_in_array, @@ -523,7 +523,7 @@ struct src { #ifndef LONG_MIN #define LONG_MIN (-LONG_MAX - 1) #endif -#define HUGE INT_MAX +#define HUGE INT_MAX /* -------------------------- External variables -------------------------- */ /* gawk builtin variables */ diff --git a/gnu/usr.bin/awk/builtin.c b/gnu/usr.bin/awk/builtin.c index 96411de..a9267cb 100644 --- a/gnu/usr.bin/awk/builtin.c +++ b/gnu/usr.bin/awk/builtin.c @@ -1,23 +1,23 @@ /* - * builtin.c - Builtin functions and various utility procedures + * builtin.c - Builtin functions and various utility procedures */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -293,7 +293,7 @@ register NODE *carg; /* * Get the next arg to be formatted. If we've run out of args, - * return "" (Null string) + * return "" (Null string) */ #define parse_next_arg() {\ if(!carg) { toofew = 1; break; }\ @@ -413,7 +413,7 @@ check_pos: case ' ': /* print ' ' or '-' */ /* 'space' flag is ignored */ /* if '+' already present */ - if (signchar != 0) + if (signchar != 0) goto check_pos; /* FALL THROUGH */ case '+': /* print '+' or '-' */ @@ -447,7 +447,7 @@ check_pos: parse_next_arg(); if (arg->flags & NUMBER) { #ifdef sun386 - tmp_uval = arg->numbr; + tmp_uval = arg->numbr; uval= (unsigned long) tmp_uval; #else uval = (unsigned long) arg->numbr; @@ -769,7 +769,7 @@ NODE *tree; * From: David Trueman <emory!cs.dal.ca!david> * To: arnold@cc.gatech.edu (Arnold Robbins) * Date: Wed, 3 Nov 1993 12:49:41 -0400 - * + * * It may not be necessary to save the character, but * I'm not sure. It would normally be the field * separator. If the parse has not yet gone beyond @@ -793,7 +793,7 @@ NODE *tree; extern NODE **fmt_list; /* declared in eval.c */ -void +void do_print(tree) register NODE *tree; { @@ -1090,7 +1090,7 @@ int global; /* * create the result, copying in parts of the original - * string + * string */ len = matchstart - text + repllen + ampersands * (matchend - matchstart); diff --git a/gnu/usr.bin/awk/config.h b/gnu/usr.bin/awk/config.h index 0b3cca1..601f483 100644 --- a/gnu/usr.bin/awk/config.h +++ b/gnu/usr.bin/awk/config.h @@ -4,22 +4,22 @@ * For generic 4.4 alpha */ -/* +/* * Copyright (C) 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff --git a/gnu/usr.bin/awk/dfa.c b/gnu/usr.bin/awk/dfa.c index ffa161a..397027f 100644 --- a/gnu/usr.bin/awk/dfa.c +++ b/gnu/usr.bin/awk/dfa.c @@ -614,7 +614,7 @@ lex() notset(ccl); laststart = 0; return lasttok = CSET + charclass_index(ccl); - + case '[': if (backslash) goto normal_char; @@ -1969,7 +1969,7 @@ dfacomp(s, len, d, searchflag) lcopy = malloc(len); if (!lcopy) dfaerror("out of memory"); - + /* This is a kludge. */ case_fold = 0; for (i = 0; i < len; ++i) @@ -2059,9 +2059,9 @@ dfafree(d) Type left right is in ---- ---- ----- -- -- char c # c # c # c # c - + CSET ZERO ZERO ZERO ZERO - + STAR ZERO ZERO ZERO ZERO QMARK ZERO ZERO ZERO ZERO @@ -2072,12 +2072,12 @@ dfafree(d) p->left : q->right : q->is!=ZERO) ? q->in plus p->is##q->left p->right##q->is p->is##q->is : p->right##q->left ZERO - + OR longest common longest common (do p->is and substrings common to leading trailing q->is have same p->in and q->in - (sub)sequence (sub)sequence length and - of p->left of p->right content) ? - and q->left and q->right p->is : NULL + (sub)sequence (sub)sequence length and + of p->left of p->right content) ? + and q->left and q->right p->is : NULL If there's anything else we recognize in the tree, all four sequences get set to zero-length sequences. If there's something we don't recognize in the tree, @@ -2104,7 +2104,7 @@ dfafree(d) Does optimization actually accomplish anything, or is the automaton you get from "psi|epsilon" (for example) the same as the one you get from "psi" (for example)? - + Are optimizable r.e.'s likely to be used in real-life situations (something like 'ab*' is probably unlikely; something like is 'psi|epsilon' is likelier)? */ diff --git a/gnu/usr.bin/awk/eval.c b/gnu/usr.bin/awk/eval.c index 18f67fd..ccf4671 100644 --- a/gnu/usr.bin/awk/eval.c +++ b/gnu/usr.bin/awk/eval.c @@ -1,23 +1,23 @@ /* - * eval.c - gawk parse tree interpreter + * eval.c - gawk parse tree interpreter */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -122,7 +122,7 @@ char casetable[] = { /* * Tree is a bunch of rules to run. Returns zero if it hit an exit() - * statement + * statement */ int interpret(tree) @@ -363,7 +363,7 @@ register NODE *volatile tree; default: /* * Appears to be an expression statement. Throw away the - * value. + * value. */ if (do_lint && tree->type == Node_var) warning("statement has no effect"); @@ -685,7 +685,7 @@ register NODE *tree; * of a Node_cond_pair; whether we evaluate the lnode of that * node or the rnode depends on the triggered word. More * precisely: if we are not yet triggered, we tree_eval the - * lnode; if that returns true, we set the triggered word. + * lnode; if that returns true, we set the triggered word. * If we are triggered (not ELSE IF, note), we tree_eval the * rnode, clear triggered if it succeeds, and perform our * action (regardless of success or failure). We want to be @@ -705,7 +705,7 @@ register NODE *tree; /* * Could just be J.random expression. in which case, null and 0 are - * false, anything else is true + * false, anything else is true */ t1 = tree_eval(tree); @@ -1016,7 +1016,7 @@ NODE *arg_list; /* Node_expression_list of calling args. */ /* * This returns a POINTER to a node pointer. get_lhs(ptr) is the current - * value of the var, or where to store the var's new value + * value of the var, or where to store the var's new value */ NODE ** diff --git a/gnu/usr.bin/awk/field.c b/gnu/usr.bin/awk/field.c index 17dce9b..b1a709e 100644 --- a/gnu/usr.bin/awk/field.c +++ b/gnu/usr.bin/awk/field.c @@ -2,22 +2,22 @@ * field.c - routines for dealing with fields and record parsing */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -305,7 +305,7 @@ NODE *n; *end = ' '; /* sentinel character */ for (; nf < up_to; scan++) { /* - * special case: fs is single space, strip leading whitespace + * special case: fs is single space, strip leading whitespace */ while (scan < end && (*scan == ' ' || *scan == '\t')) scan++; @@ -466,7 +466,7 @@ Func_ptr *assign; /* this field is on the LHS of an assign */ save_FS, FS_regexp, set_field, (NODE *)NULL); /* - * if we reached the end of the record, set NF to the number of + * if we reached the end of the record, set NF to the number of * fields so far. Note that requested might actually refer to * a field that is beyond the end of the record, but we won't * set NF to that value at this point, since this is only a diff --git a/gnu/usr.bin/awk/io.c b/gnu/usr.bin/awk/io.c index 93cc3ae..7f92556 100644 --- a/gnu/usr.bin/awk/io.c +++ b/gnu/usr.bin/awk/io.c @@ -2,22 +2,22 @@ * io.c --- routines for dealing with input and output and records */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -240,7 +240,7 @@ IOBUF *iop; if ((fields_arr[0]->stptr >= iop->buf) && (fields_arr[0]->stptr < iop->end)) { NODE *t; - + t = make_string(fields_arr[0]->stptr, fields_arr[0]->stlen); unref(fields_arr[0]); @@ -463,7 +463,7 @@ close_one() } if (rp == NULL) /* surely this is the only reason ??? */ - fatal("too many pipes or input files open"); + fatal("too many pipes or input files open"); } NODE * @@ -516,7 +516,7 @@ int exitwarn; what = (rp->flag & RED_PIPE) ? "pipe" : "file"; - if (exitwarn) + if (exitwarn) warning("no explicit close of %s \"%s\" provided", what, rp->value); @@ -666,7 +666,7 @@ const char *name, *mode; openfd = fileno(stdin); else if (STREQN(name, "/dev/", 5) && stat((char *) name, &buf) == -1) { cp = name + 5; - + if (STREQ(cp, "stdin") && (flag & O_RDONLY) == O_RDONLY) openfd = fileno(stdin); else if (STREQ(cp, "stdout") && (flag & O_WRONLY) == O_WRONLY) @@ -684,7 +684,7 @@ const char *name, *mode; strictopen: if (openfd == INVALID_HANDLE) openfd = open(name, flag, 0666); - if (openfd != INVALID_HANDLE && fstat(openfd, &buf) > 0) + if (openfd != INVALID_HANDLE && fstat(openfd, &buf) > 0) if (S_ISDIR(buf.st_mode)) fatal("file `%s' is a directory", name); return openfd; @@ -897,7 +897,7 @@ const char *name, *mode; strictopen: if (openfd == INVALID_HANDLE) openfd = open(name, flag, 0666); - if (openfd != INVALID_HANDLE && fstat(openfd, &buf) > 0) + if (openfd != INVALID_HANDLE && fstat(openfd, &buf) > 0) if ((buf.st_mode & S_IFMT) == S_IFDIR) fatal("file `%s' is a directory", name); iop = iop_alloc(openfd); diff --git a/gnu/usr.bin/awk/iop.c b/gnu/usr.bin/awk/iop.c index 897daef..6b6a03b 100644 --- a/gnu/usr.bin/awk/iop.c +++ b/gnu/usr.bin/awk/iop.c @@ -2,22 +2,22 @@ * iop.c - do i/o related things. */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff --git a/gnu/usr.bin/awk/main.c b/gnu/usr.bin/awk/main.c index a14efff..ff9426e 100644 --- a/gnu/usr.bin/awk/main.c +++ b/gnu/usr.bin/awk/main.c @@ -1,23 +1,23 @@ /* - * main.c -- Expression tree constructors and main program for gawk. + * main.c -- Expression tree constructors and main program for gawk. */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -67,7 +67,7 @@ char *CONVFMT; /* * The parse tree and field nodes are stored here. Parse_end is a dummy item - * used to free up unneeded fields without freeing the program being run + * used to free up unneeded fields without freeing the program being run */ int errcount = 0; /* error counter, used by yyerror() */ @@ -176,7 +176,7 @@ char **argv; /* Set up the special variables */ /* * Note that this must be done BEFORE arg parsing else -F - * breaks horribly + * breaks horribly */ init_vars(); @@ -553,7 +553,7 @@ load_environ() NODE **aptr; register int i; - ENVIRON_node = install("ENVIRON", + ENVIRON_node = install("ENVIRON", node(Nnull_string, Node_var, (NODE *) NULL)); for (i = 0; environ[i]; i++) { static char nullstr[] = ""; @@ -782,7 +782,7 @@ gawk_name(filespec) char *filespec; { char *p; - + #ifdef VMS /* "device:[root.][directory.subdir]GAWK.EXE;n" -> "GAWK" */ char *q; diff --git a/gnu/usr.bin/awk/msg.c b/gnu/usr.bin/awk/msg.c index 4bd9f90..4244fd3 100644 --- a/gnu/usr.bin/awk/msg.c +++ b/gnu/usr.bin/awk/msg.c @@ -2,22 +2,22 @@ * msg.c - routines for error messages */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff --git a/gnu/usr.bin/awk/node.c b/gnu/usr.bin/awk/node.c index dca4ad1..748028b 100644 --- a/gnu/usr.bin/awk/node.c +++ b/gnu/usr.bin/awk/node.c @@ -2,22 +2,22 @@ * node.c -- routines for node management */ -/* +/* * Copyright (C) 1986, 1988, 1989, 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -99,7 +99,7 @@ register NODE *n; /* * the following lookup table is used as an optimization in force_string - * (more complicated) variations on this theme didn't seem to pay off, but + * (more complicated) variations on this theme didn't seem to pay off, but * systematic testing might be in order at some point */ static const char *values[] = { @@ -260,7 +260,7 @@ int flags; memcpy(r->stptr, s, len); } r->stptr[len] = '\0'; - + if (flags & SCAN) { /* scan for escape sequences */ char *pf; register char *ptm; @@ -368,16 +368,16 @@ register NODE *tmp; /* * Parse a C escape sequence. STRING_PTR points to a variable containing a * pointer to the string to parse. That pointer is updated past the - * characters we use. The value of the escape sequence is returned. + * characters we use. The value of the escape sequence is returned. * * A negative value means the sequence \ newline was seen, which is supposed to - * be equivalent to nothing at all. + * be equivalent to nothing at all. * * If \ is followed by a null character, we return a negative value and leave - * the string pointer pointing at the null character. + * the string pointer pointing at the null character. * * If \ is followed by 000, we return 0 and leave the string pointer after the - * zeros. A value of 0 does not mean end of string. + * zeros. A value of 0 does not mean end of string. * * Posix doesn't allow \x. */ diff --git a/gnu/usr.bin/awk/protos.h b/gnu/usr.bin/awk/protos.h index 1d4ac99..62e933a 100644 --- a/gnu/usr.bin/awk/protos.h +++ b/gnu/usr.bin/awk/protos.h @@ -2,22 +2,22 @@ * protos.h -- function prototypes for when the headers don't have them. */ -/* +/* * Copyright (C) 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. diff --git a/gnu/usr.bin/awk/re.c b/gnu/usr.bin/awk/re.c index 4ea22c2..5ee1c43 100644 --- a/gnu/usr.bin/awk/re.c +++ b/gnu/usr.bin/awk/re.c @@ -2,22 +2,22 @@ * re.c - compile regular expressions. */ -/* +/* * Copyright (C) 1991, 1992, 1993 the Free Software Foundation, Inc. - * + * * This file is part of GAWK, the GNU implementation of the * AWK Progamming Language. - * + * * GAWK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * GAWK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with GAWK; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. @@ -46,7 +46,7 @@ int dfa; /* Build a copy of the string (in dest) with the escaped characters translated, and generate the regex - from that. + from that. */ emalloc(dest, char *, len + 2, "make_regexp"); temp = dest; diff --git a/gnu/usr.bin/awk/version.c b/gnu/usr.bin/awk/version.c index 89b6cc0..ffcd8e1 100644 --- a/gnu/usr.bin/awk/version.c +++ b/gnu/usr.bin/awk/version.c @@ -7,11 +7,11 @@ char *version_string = "@(#)Gnu Awk (gawk) 2.15"; the split char is ' '. Added -v option to print version number - + Fixed bug that caused rounding when printing large numbers */ /* 2.00beta Incorporated the functionality of the "new" awk as described - the book (reference not handy). Extensively tested, but no + the book (reference not handy). Extensively tested, but no doubt still buggy. Badly needs tuning and cleanup, in particular in memory management which is currently almost non-existent. */ |