Commit d6ae22e6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Rename hack added. Include aux-item-def-parse.h instead of

aux-item-def.tab.h.  Don't redefine yylval and yyerror, and don't use
%option prefix -- this change makes it impossible to have multiple Lex
scanners, but on the other hand, it makes it possible to use automake.
parent 95f5066b
%{
/*
* $Id: aux-item-def-scan.l,v 1.2 1999/04/02 19:57:42 ceder Exp $
* $Id: aux-item-def-scan.l,v 1.3 1999/04/02 20:10:09 ceder Exp $
* Copyright (C) 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -30,13 +30,55 @@
#include <ctype.h>
/* Rename hack from the automake 1.4 manual. */
#define yymaxdepth aid_maxdepth
#define yyparse aid_parse
#define yylex aid_lex
#define yyerror aid_error
#define yylval aid_lval
#define yychar aid_char
#define yydebug aid_debug
#define yypact aid_pact
#define yyr1 aid_r1
#define yyr2 aid_r2
#define yydef aid_def
#define yychk aid_chk
#define yypgo aid_pgo
#define yyact aid_act
#define yyexca aid_exca
#define yyerrflag aid_errflag
#define yynerrs aid_nerrs
#define yyps aid_ps
#define yypv aid_pv
#define yys aid_s
#define yy_yys aid_yys
#define yystate aid_state
#define yytmp aid_tmp
#define yyv aid_v
#define yy_yyv aid_yyv
#define yyval aid_val
#define yylloc aid_lloc
#define yyreds aid_reds
#define yytoks aid_toks
#define yylhs aid_yylhs
#define yylen aid_yylen
#define yydefred aid_yydefred
#define yydgoto aid_yydgoto
#define yysindex aid_yysindex
#define yyrindex aid_yyrindex
#define yygindex aid_yygindex
#define yytable aid_yytable
#define yycheck aid_yycheck
#define yyname aid_yyname
#define yyrule aid_yyrule
extern int yylex(void);
#include "s-string.h"
#include "aux-item-def.tab.h"
#include "aux-item-def-parse.h"
#include "server/smalloc.h"
#define yylval aux_item_def_lval
#define yyerror aux_item_def_error
#if defined(HAVE_VFPRINTF) && defined(HAVE_STDARG_H)
void yyerror(const char * format, int lineno, ...)
......@@ -56,7 +98,6 @@ extern int aux_item_def_error_line;
%option yylineno
%option noyywrap
%option prefix="aux_item_def_"
%x string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment