X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=link%2Fz80%2Flklex.c;h=1ccdeea8b375bfd4486e9bdef956b4131e3821b1;hb=1f6f478ebf8fd533e2819f9558e90de1b6bee503;hp=0fe342c330dc5c65d3739e52d887c7c6138f2546;hpb=bc5bf0f1e806d8ada408e5bdb22fca59fc38d770;p=fw%2Fsdcc diff --git a/link/z80/lklex.c b/link/z80/lklex.c index 0fe342c3..1ccdeea8 100644 --- a/link/z80/lklex.c +++ b/link/z80/lklex.c @@ -28,7 +28,7 @@ * char get() * VOID getfid() * VOID getid() - * int getline() + * int lk_getline() * int getmap() * char getnb() * int more() @@ -144,6 +144,9 @@ char *str; if (p < &str[FILSPC-1]) *p++ = c; c = get(); + if (c == ';') + while (c) + c = get(); #ifdef SDK } while (c); #else /* SDK */ @@ -367,15 +370,15 @@ getmap(d) return (c); } -/*)Function int getline() +/*)Function int lk_getline() * - * The function getline() reads a line of input text from a + * The function lk_getline() reads a line of input text from a * .rel source text file, a .lnk command file or from stdin. * Lines of text are processed from a single .lnk file or * multiple .rel files until all files have been read. * The input text line is copied into the global string ib[] * and converted to a NULL terminated string. The function - * getline() returns a (1) after succesfully reading a line + * lk_getline() returns a (1) after succesfully reading a line * or a (0) if all files have been read. * This function also opens each input .lst file and output * .rst file as each .rel file is processed. @@ -421,7 +424,7 @@ getmap(d) */ int -getline() +lk_getline() { register int i, ftype; register char *fid;