* src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
[fw/sdcc] / as / mcs51 / aslex.c
index a0af00c61d26c4cc9685f012d974472d4393e333..42a66ab1262ec214e2810c75641c8be72c4950ac 100644 (file)
@@ -15,9 +15,6 @@
 #include <stdio.h>
 #include <setjmp.h>
 #include <string.h>
-#if !defined(_MSC_VER)
-#include <alloc.h>
-#endif
 #include "asm.h"
 
 /*)Module      aslex.c
@@ -29,7 +26,7 @@
  *             char    endline()
  *             char    get()
  *             VOID    getid(id,c)
- *             int     getline()
+ *             int     as_getline()
  *             int     getmap()
  *             char    getnb()
  *             VOID    getst()
@@ -355,9 +352,9 @@ getmap(d)
        return (c);
 }
 
-/*)Function    int     getline()
+/*)Function    int     as_getline()
  *
- *     The function getline() reads a line of assembler-source text
+ *     The function as_getline() reads a line of assembler-source text
  *     from an assembly source text file or an include file.
  *     Lines of text are processed from assembler-source files until
  *     all files have been read.  If an include file is opened then
@@ -365,7 +362,7 @@ getmap(d)
  *     include file) until the end of the include file is found.
  *     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
+ *     as_getline() returns a (1) after succesfully reading a line
  *     or a (0) if all files have been read.
  *
  *     local variables:
@@ -402,7 +399,7 @@ getmap(d)
  */
 
 int
-getline()
+as_getline()
 {
 loop:  if (incfil >= 0) {
                if (fgets(ib, sizeof ib, ifp[incfil]) == NULL) {