X-Git-Url: https://jxself.org/git/?p=a56.git;a=blobdiff_plain;f=lex.c;h=2f09a345c1755057b1a5c87c6bf087853f763fc7;hp=519579358f45cb5ecb6c44e288ae8da50a85e5a1;hb=c6db6f4c5cb82f5e09472163bf11be0c165965ee;hpb=2d044bfe809be2fb02ae5aa8540cd57f7af407a1 diff --git a/lex.c b/lex.c index 5195793..2f09a34 100644 --- a/lex.c +++ b/lex.c @@ -7,6 +7,38 @@ * *******************************************************\ +/* + * Copyright (C) 2012 Thorsten Alteholz + * + * This file 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 3 of the License, + * or (at your option) any later version. + * + * This program 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 this program. If not, see + * . + * + * This file incorporates work covered by the following copyright and + * permission notice: + * + * Copyright (C) 1990-1998 Quinn C. Jensen + * + * Permission to use, copy, modify, distribute, and sell this + * software and its documentation for any purpose is hereby granted + * without fee, provided that the above copyright notice appear in + * all copies and that both that copyright notice and this permission + * notice appear in supporting documentation. The author makes no + * representations about the suitability of this software for any + * purpose. It is provided "as is" without express or implied + * warranty. + */ + /* * lex.c - lexical analyzer envelope. lexyy.c, included below, * is the LEX-generated code. @@ -62,7 +94,7 @@ yylex() case CHEX: yylval.n.type = INT; yylval.n.seg = ANY; - yylval.n.val.i = strtol(tok, 0, 16); + yylval.n.val.i = a56_strtol(tok, 0, 16); RET(CHEX); break; case CDEC: