=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/compile_et/Attic/error_table.y,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/compile_et/Attic/error_table.y 1996/11/11 05:06:35 1.1 --- src/usr.bin/compile_et/Attic/error_table.y 1998/05/13 17:54:21 1.2 *************** *** 1,5 **** %{ ! /* $OpenBSD: error_table.y,v 1.1 1996/11/11 05:06:35 downsj Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board --- 1,5 ---- %{ ! /* $OpenBSD: error_table.y,v 1.2 1998/05/13 17:54:21 art Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board *************** *** 101,107 **** #ifndef lint static char const rcsid_error_table_y[] = ! "$Id: error_table.y,v 1.1 1996/11/11 05:06:35 downsj Exp $"; #endif #include "et_lex.lex.c" --- 101,107 ---- #ifndef lint static char const rcsid_error_table_y[] = ! "$Id: error_table.y,v 1.2 1998/05/13 17:54:21 art Exp $"; #endif #include "et_lex.lex.c" *************** *** 148,157 **** return(rv); } ! long table_number; int current = 0; char **error_codes = (char **)NULL; add_ec(name, description) char const *name, *description; { --- 148,158 ---- return(rv); } ! int table_number; int current = 0; char **error_codes = (char **)NULL; + void add_ec(name, description) char const *name, *description; { *************** *** 166,171 **** --- 167,173 ---- error_codes[current] = (char *)NULL; } + void add_ec_val(name, val, description) char const *name, *val, *description; { *************** *** 190,201 **** error_codes[current] = (char *)NULL; } put_ecs() { int i; for (i = 0; i < current; i++) { if (error_codes[i] != (char *)NULL) ! fprintf(hfile, "#define %-40s (%ldL)\n", error_codes[i], table_number + i); } } --- 192,204 ---- error_codes[current] = (char *)NULL; } + void put_ecs() { int i; for (i = 0; i < current; i++) { if (error_codes[i] != (char *)NULL) ! fprintf(hfile, "#define %-40s (%d)\n", error_codes[i], table_number + i); } } *************** *** 234,239 **** --- 237,243 ---- exit (1); } + void set_table_num(string) char *string; {