static int pushback = -1;
-static char
-input(void)
+static char input()
{
int c;
return(c);
}
-static void
-unput(int c)
+static void unput(c)
+ int c;
{
#ifdef DEBUG
if (pushback != -1) {
* a file. Resets current line # to 1.
*/
-void
-lex_open(FILE *file)
+void lex_open(file)
+ FILE *file;
{
/*
* Initialize I/O:
#define is_octal_digit(c) (((c)>='0') && ((c)<='7'))
-static char
-eat_escape_code(void)
+static char eat_escape_code()
{
int c, coded_char;
* string we are eating started on.
*/
-static char *
-eat_string(int starting_line)
+static char *eat_string(starting_line)
+ int starting_line;
{
int c;
char buffer[500];
* instead of doing the above, we just eat the "endshow" & return 0.
*/
-static char *
-eat_show_line(int test_for_endshow)
+static char *eat_show_line(test_for_endshow)
+ int test_for_endshow;
{
int c;
int saw_escape_code = 0;
* messages.
*/
-static char *
-eat_til_endshow(int start_line_no)
+static char *eat_til_endshow(start_line_no)
+ int start_line_no;
{
register int c;
string text_so_far = string_Copy("");
* returned.
*/
-static int
-handle_show(void)
+static int handle_show()
{
int c;
int start_line_no = yylineno;
if (c!='\n')
unput(c);
- yylval.text = eat_til_endshow(start_line_no);
- if (yylval.text)
+ if (yylval.text = eat_til_endshow(start_line_no))
return(SHOW);
else
return(ERROR);
* yylex - performs as per. the yacc manual's requirements
*/
-int yylex(void)
+int yylex()
{
register int c, last_char;
register char *ptr;
* Handle constant strings:
*/
case '"':
- yylval.text = eat_string(yylineno);
- if (yylval.text)
+ if (yylval.text = eat_string(yylineno))
return(STRING);
else
return(ERROR);