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
--- 8 unchanged lines hidden (view full) ---
17IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
18SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
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
25const char *version = "version 20030314";
26
27#define DEBUG
28#include <stdio.h>
29#include <ctype.h>
30#include <locale.h>
31#include <stdlib.h>
32#include <string.h>
33#include <signal.h>
34#include "awk.h"
35#include "ytab.h"
36
37extern char **environ;
38extern int nfields;
--- 11 unchanged lines hidden (view full) ---
50int curpfile = 0; /* current filename */
51
52int safe = 0; /* 1 => "safe" mode */
53
54int main(int argc, char *argv[])
55{
56 const char *fs = NULL;
57
58 setlocale(LC_ALL, "");
59 setlocale(LC_COLLATE, "");
60 setlocale(LC_CTYPE, "");
61 setlocale(LC_MESSAGES, "");
62 cmdname = argv[0];
63 if (argc == 1) {
64 fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
65 exit(1);
66 }
67 signal(SIGFPE, fpecatch);
68 yyin = NULL;
69 symtab = makesymtab(NSYMTAB);
--- 121 unchanged lines hidden ---
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
--- 8 unchanged lines hidden (view full) ---
17IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
18SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
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
25const char *version = "version 20030314";
26
27#define DEBUG
28#include <stdio.h>
29#include <ctype.h>
30#include <locale.h>
31#include <stdlib.h>
32#include <string.h>
33#include <signal.h>
34#include "awk.h"
35#include "ytab.h"
36
37extern char **environ;
38extern int nfields;
--- 11 unchanged lines hidden (view full) ---
50int curpfile = 0; /* current filename */
51
52int safe = 0; /* 1 => "safe" mode */
53
54int main(int argc, char *argv[])
55{
56 const char *fs = NULL;
57
58 setlocale(LC_ALL, "");
59 setlocale(LC_COLLATE, "");
60 setlocale(LC_CTYPE, "");
61 setlocale(LC_MESSAGES, "");
62 cmdname = argv[0];
63 if (argc == 1) {
64 fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
65 exit(1);
66 }
67 signal(SIGFPE, fpecatch);
68 yyin = NULL;
69 symtab = makesymtab(NSYMTAB);
--- 121 unchanged lines hidden ---