X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=link%2Fz80%2Flklibr.c;h=832af6f56fcf901be7e665dcba0b438190175811;hb=88e560b915dc753c85898e35af1e0a751a4cf723;hp=94b54da551ddc6a8508b7f3b529d6c1ba30c8e09;hpb=bd89c62b363f19b5d7af0cfcbd81dff870a389f7;p=fw%2Fsdcc diff --git a/link/z80/lklibr.c b/link/z80/lklibr.c index 94b54da5..832af6f5 100644 --- a/link/z80/lklibr.c +++ b/link/z80/lklibr.c @@ -175,16 +175,20 @@ addlib() unget(getnb()); - if (lbphead == NULL) { - addfile(NULL,ip); - return; - } - for (lbph=lbphead; lbph; lbph=lbph->next) { - foundcount+=addfile(lbph->path,ip); + if (lbphead == NULL) + { + foundcount=addfile(NULL, ip); } - if(foundcount==0) + else + { + for (lbph=lbphead; lbph; lbph=lbph->next) + { + foundcount+=addfile(lbph->path, ip); + } + } + if(foundcount == 0) { - printf("?ASlink-Warning-Couldn't find library '%s'\n", ip); + printf("\n?ASlink-Warning-Couldn't find library '%s'", ip); } }