X-Git-Url: https://jxself.org/git/?p=a56.git;a=blobdiff_plain;f=main.c;h=2d6b759c34f6fa58d37b92e34207235de208393d;hp=e85f8a10fca24b1adf88d3f2204755a9d57b9547;hb=c6db6f4c5cb82f5e09472163bf11be0c165965ee;hpb=2d044bfe809be2fb02ae5aa8540cd57f7af407a1 diff --git a/main.c b/main.c index e85f8a1..2d6b759 100644 --- a/main.c +++ b/main.c @@ -8,6 +8,27 @@ *******************************************************\ /* + * Copyright (C) 2008 Robert Millan + * Copyright (C) 2012 Thorsten Alteholz + * Copyright (C) 2014 Arthur Marble + * + * 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-1994 Quinn C. Jensen * * Permission to use, copy, modify, distribute, and sell this software @@ -32,14 +53,13 @@ static char *Copyright = "Copyright (C) 1990-1994 Quinn C. Jensen"; int pass; int error, warning; -extern unsigned long pc; +extern unsigned int pc; extern int seg; BOOL binary_listing = FALSE; BOOL list_includes = FALSE; FILE *obj = NULL; extern BOOL list_on; BOOL list_on_next = TRUE; -char *alloc(); main(argc,argv) int argc; @@ -186,7 +206,7 @@ double f; pass = 2; /* what a kludge */ yyerror("%s: multiply defined symbol", sym); pass = 1; - return; + return 1; } stop = &symtab[HASH(sym)]; sp = NEW(struct sym); @@ -396,7 +416,7 @@ struct psect *pp; int used, avail, of; if(pp == NULL) - return; + return 1; used = pp->pc - pp->bottom; avail = pp->top - pp->pc;