From: Thorsten Alteholz Date: Sun, 26 Nov 2017 16:27:00 +0000 (-0800) Subject: parameters of this strtol() differ from strtol() in stdlib.h - rename it to a56_strtol X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=dee0ad7f76d3a2efe2852352dbeade057df66edd;p=a56.git parameters of this strtol() differ from strtol() in stdlib.h - rename it to a56_strtol --- diff --git a/lex.c b/lex.c index 72864ca..2f09a34 100644 --- a/lex.c +++ b/lex.c @@ -8,6 +8,25 @@ *******************************************************\ /* + * 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 @@ -75,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: diff --git a/subs.c b/subs.c index f0e0b9d..5166717 100644 --- a/subs.c +++ b/subs.c @@ -9,6 +9,7 @@ /* * Copyright (C) 2008 Robert Millan + * 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 @@ -151,7 +152,7 @@ int size; (c) >= 'A' && (c) <= 'Z' || \ (c) >= 'a' && (c) <= 'z') -strtol(s, p, base) +a56_strtol(s, p, base) register char *s, **p; register int base; {