* as/hc08/aslex.c,
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 28 Jan 2006 10:02:29 +0000 (10:02 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 28 Jan 2006 10:02:29 +0000 (10:02 +0000)
* as/hc08/aslink.h,
* as/hc08/asm.h,
* as/hc08/asmain.c,
* as/hc08/lkdata.c,
* as/hc08/lklex.c,
* as/hc08/lkmain.c,
* as/mcs51/aslex.c,
* as/mcs51/aslink.h,
* as/mcs51/asm.h,
* as/mcs51/asmain.c,
* as/mcs51/lkdata.c,
* as/mcs51/lklex.c,
* as/mcs51/lkmain.c,
* as/z80/aslex.c,
* as/z80/asm.h,
* as/z80/asmain.c: fixed build on current cygwin: replaced getline() by as_getline()

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4027 4a8a32a2-be11-0410-ad9d-d568d2c75423

18 files changed:
ChangeLog
as/hc08/aslex.c
as/hc08/aslink.h
as/hc08/asm.h
as/hc08/asmain.c
as/hc08/lkdata.c
as/hc08/lklex.c
as/hc08/lkmain.c
as/mcs51/aslex.c
as/mcs51/aslink.h
as/mcs51/asm.h
as/mcs51/asmain.c
as/mcs51/lkdata.c
as/mcs51/lklex.c
as/mcs51/lkmain.c
as/z80/aslex.c
as/z80/asm.h
as/z80/asmain.c

index 48183fe74dc9f91b5d06e59cad4e27c53d8c21a6..0e4e6e4889c5aaa10e115ecbdbf0762645c82f98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
+
+       * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
+       ((void (code *) (void)) 0) ();
+       * as/hc08/aslex.c,
+       * as/hc08/aslink.h,
+       * as/hc08/asm.h,
+       * as/hc08/asmain.c,
+       * as/hc08/lkdata.c,
+       * as/hc08/lklex.c,
+       * as/hc08/lkmain.c,
+       * as/mcs51/aslex.c,
+       * as/mcs51/aslink.h,
+       * as/mcs51/asm.h,
+       * as/mcs51/asmain.c,
+       * as/mcs51/lkdata.c,
+       * as/mcs51/lklex.c,
+       * as/mcs51/lkmain.c,
+       * as/z80/aslex.c,
+       * as/z80/asm.h,
+       * as/z80/asmain.c: fixed build on current cygwin:
+       replaced getline() by as_getline()
+
 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
 
        * src/SDCC.y: fixed bug #716242, exchanged pointer and function
index 4f774c424d03a17495448fb949ea42567cb72374..42a66ab1262ec214e2810c75641c8be72c4950ac 100644 (file)
@@ -26,7 +26,7 @@
  *             char    endline()
  *             char    get()
  *             VOID    getid(id,c)
- *             int     getline()
+ *             int     as_getline()
  *             int     getmap()
  *             char    getnb()
  *             VOID    getst()
@@ -352,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
@@ -362,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:
@@ -399,7 +399,7 @@ getmap(d)
  */
 
 int
-getline()
+as_getline()
 {
 loop:  if (incfil >= 0) {
                if (fgets(ib, sizeof ib, ifp[incfil]) == NULL) {
index a2dd2083d8c61fb12a7b7455d7bab2dccdf21f94..7a4dd81dbbcbac8cbfedb03be740c3b604c8ca50 100644 (file)
@@ -497,7 +497,7 @@ extern      char    ccase[];        /*      an array of characters which
 extern struct  lfile   *filep; /*      The pointers (lfile *) filep,
                                 *      (lfile *) cfp, and (FILE *) sfp
                                 *      are used in conjunction with
-                                *      the routine getline() to read
+                                *      the routine as_getline() to read
                                 *      asmlnk commands from
                                 *      (1) the standard input or
                                 *      (2) or a command file
@@ -679,7 +679,7 @@ extern      char            get();
 extern VOID            getfid();
 extern VOID            getid();
 extern VOID            getSid();
-extern int             getline();
+extern int             as_getline();
 extern int             getmap();
 extern char            getnb();
 extern int             more();
index c7b1b6c7a85f21738317276ce787aa93765b5ff9..ad5f1714d70b1b39c5ed0e800545b4e2b47c8e92 100644 (file)
@@ -592,7 +592,7 @@ extern      VOID            usage();
 extern char            endline();
 extern char            get();
 extern VOID            getid();
-extern int             getline();
+extern int             as_getline();
 extern int             getmap();
 extern char            getnb();
 extern VOID            getst();
index 2ed786af3ca01b1b0030f0d979ee1faa426f9147..08a5f11a8cd6a897ded1af31bfcc9edae7677315 100644 (file)
  *             VOID    diag()          assubr.c
  *             VOID    err()           assubr.c
  *             int     fprintf()       c-library
- *             int     getline()       aslex.c
+ *             int     as_getline()    aslex.c
  *             VOID    list()          aslist.c
  *             VOID    lstsym()        aslist.c
  *             VOID    minit()         ___mch.c
@@ -289,7 +289,7 @@ char *argv[];
                dot.s_area = &dca;
                symp = &dot;
                minit();
-               while (getline()) {
+               while (as_getline()) {
                        cp = cb;
                        cpt = cbt;
                        ep = eb;
index d6a3517539160973f779e6521f2244f90549519a..44e44233ec9c719444ee1f43f033943bb9221885 100644 (file)
@@ -118,7 +118,7 @@ long        code_size=-1;   /*      code size
 struct lfile   *filep; /*      The pointers (lfile *) filep,
                         *      (lfile *) cfp, and (FILE *) sfp
                         *      are used in conjunction with
-                        *      the routine getline() to read
+                        *      the routine as_getline() to read
                         *      asmlnk commands from
                         *      (1) the standard input or
                         *      (2) or a command file
index f7de6d3c2b45831e0476cbf30c3e76743475274e..7c481300bbd6c595a0f7e1dc4592c82f4b0d0ac3 100644 (file)
@@ -24,7 +24,7 @@
  *             VOID    getfid()
  *             VOID    getid()
  *             VOID    getSid()
- *             int     getline()
+ *             int     as_getline()
  *             int     getmap()
  *             char    getnb()
  *             int     more()
@@ -425,15 +425,15 @@ getmap(d)
        return (c);
 }
 
-/*)Function    int     getline()
+/*)Function    int     as_getline()
  *
- *     The function getline() reads a line of input text from a
+ *     The function as_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
+ *     as_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.
@@ -479,7 +479,7 @@ getmap(d)
  */
 
 int
-getline()
+as_getline()
 {
        register int ftype;
        register char *fid;
index 14003b7e22d4038e334d01d953413284aec5e6a9..401916a51b397764f6ac190720567f12edcb4d21 100644 (file)
@@ -116,7 +116,7 @@ void Areas51 (void)
  *
  *     The function main() evaluates the command line arguments to
  *     determine if the linker parameters are to input through 'stdin'
- *     or read from a command file.  The functiond getline() and parse()
+ *     or read from a command file.  The functiond as_getline() and parse()
  *     are to input and evaluate the linker parameters.  The linking process
  *     proceeds by making the first pass through each .rel file in the order
  *     presented to the linker.  At the end of the first pass the setbase(),
@@ -170,7 +170,7 @@ void Areas51 (void)
  *             FILE *  afile()         lkmain.c
  *             int     fclose()        c_library
  *             int     fprintf()       c_library
- *             int     getline()       lklex.c
+ *             int     as_getline()    lklex.c
  *             VOID    library()       lklibr.c
  *             VOID    link_main()     lkmain.c
  *             VOID    lkexit()        lkmain.c
@@ -252,7 +252,7 @@ char *argv[];
        filep = startp;
        while (1) {
                ip = ib;
-               if (getline() == 0)
+               if (as_getline() == 0)
                        break;
                if (pflag && sfp != stdin)
                        fprintf(stdout, "%s\n", ip);
@@ -287,7 +287,7 @@ char *argv[];
                
                Areas51(); /*JCF: Create the default 8051 areas in the right order*/
 
-               while (getline()) {
+               while (as_getline()) {
                        ip = ib;
 
                         /* pass any "magic comments" to NoICE output */
index 4f774c424d03a17495448fb949ea42567cb72374..42a66ab1262ec214e2810c75641c8be72c4950ac 100644 (file)
@@ -26,7 +26,7 @@
  *             char    endline()
  *             char    get()
  *             VOID    getid(id,c)
- *             int     getline()
+ *             int     as_getline()
  *             int     getmap()
  *             char    getnb()
  *             VOID    getst()
@@ -352,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
@@ -362,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:
@@ -399,7 +399,7 @@ getmap(d)
  */
 
 int
-getline()
+as_getline()
 {
 loop:  if (incfil >= 0) {
                if (fgets(ib, sizeof ib, ifp[incfil]) == NULL) {
index 1833938ea856895e7791469bd37033ce620567b4..bcd921d9a9299202c0ffe2eb6cdb06c9b5fff864 100644 (file)
@@ -497,7 +497,7 @@ extern  char    ccase[];        /*      an array of characters which
 extern  struct  lfile   *filep; /*      The pointers (lfile *) filep,
                                  *      (lfile *) cfp, and (FILE *) sfp
                                  *      are used in conjunction with
-                                 *      the routine getline() to read
+                                 *      the routine as_getline() to read
                                  *      asmlnk commands from
                                  *      (1) the standard input or
                                  *      (2) or a command file
@@ -683,7 +683,7 @@ extern  char            get();
 extern  VOID            getfid();
 extern  VOID            getid();
 extern  VOID            getSid();
-extern  int             getline();
+extern  int             as_getline();
 extern  int             getmap();
 extern  char            getnb();
 extern  int             more();
index 415250be051a55d5d0d3c615f7dc6823bde17d1c..3d4cd97ec95498b8b3b95098a1a826b20c936c99 100644 (file)
@@ -593,7 +593,7 @@ extern  VOID            usage();
 extern  char            endline();
 extern  char            get();
 extern  VOID            getid();
-extern  int             getline();
+extern  int             as_getline();
 extern  int             getmap();
 extern  char            getnb();
 extern  VOID            getst();
index cb987f551b2701cd40458bba93173117ea7936c2..3d31bf03b5776e3f2e1eaf51ed2cccf3242304df 100644 (file)
  *             VOID    diag()          assubr.c
  *             VOID    err()           assubr.c
  *             int     fprintf()       c-library
- *             int     getline()       aslex.c
+ *             int     as_getline()    aslex.c
  *             VOID    list()          aslist.c
  *             VOID    lstsym()        aslist.c
  *             VOID    minit()         ___mch.c
@@ -289,7 +289,7 @@ char *argv[];
                dot.s_area = &dca;
                symp = &dot;
                minit();
-               while (getline()) {
+               while (as_getline()) {
                        cp = cb;
                        cpt = cbt;
                        ep = eb;
index 5edb74a6739c096710d9d6b1e1610d575f444748..64af18b255218da56ecad0bad8fbe948af7b7107 100644 (file)
@@ -122,7 +122,7 @@ long    code_size=-1;   /*      code size
 struct  lfile   *filep; /*      The pointers (lfile *) filep,
                          *      (lfile *) cfp, and (FILE *) sfp
                          *      are used in conjunction with
-                         *      the routine getline() to read
+                         *      the routine as_getline() to read
                          *      asmlnk commands from
                          *      (1) the standard input or
                          *      (2) or a command file
index f7de6d3c2b45831e0476cbf30c3e76743475274e..7c481300bbd6c595a0f7e1dc4592c82f4b0d0ac3 100644 (file)
@@ -24,7 +24,7 @@
  *             VOID    getfid()
  *             VOID    getid()
  *             VOID    getSid()
- *             int     getline()
+ *             int     as_getline()
  *             int     getmap()
  *             char    getnb()
  *             int     more()
@@ -425,15 +425,15 @@ getmap(d)
        return (c);
 }
 
-/*)Function    int     getline()
+/*)Function    int     as_getline()
  *
- *     The function getline() reads a line of input text from a
+ *     The function as_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
+ *     as_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.
@@ -479,7 +479,7 @@ getmap(d)
  */
 
 int
-getline()
+as_getline()
 {
        register int ftype;
        register char *fid;
index 0e96f0957989cced60c60a7fc61f9dd31de48509..9adbde049f50fc3389f15c32e7b2723c511e86ee 100644 (file)
@@ -155,7 +155,7 @@ void Areas51 (void)
  *
  *  The function main() evaluates the command line arguments to
  *  determine if the linker parameters are to input through 'stdin'
- *  or read from a command file.  The functiond getline() and parse()
+ *  or read from a command file.  The functiond as_getline() and parse()
  *  are to input and evaluate the linker parameters.  The linking process
  *  proceeds by making the first pass through each .rel file in the order
  *  presented to the linker.  At the end of the first pass the setbase(),
@@ -209,7 +209,7 @@ void Areas51 (void)
  *      FILE *  afile()     lkmain.c
  *      int     fclose()    c_library
  *      int     fprintf()   c_library
- *      int     getline()   lklex.c
+ *      int     as_getline()   lklex.c
  *      VOID    library()   lklibr.c
  *      VOID    link_main() lkmain.c
  *      VOID    lkexit()    lkmain.c
@@ -290,7 +290,7 @@ main(int argc, char *argv[])
     filep = startp;
     while (1) {
         ip = ib;
-        if (getline() == 0)
+        if (as_getline() == 0)
             break;
         if (pflag && sfp != stdin)
             fprintf(stdout, "%s\n", ip);
@@ -325,7 +325,7 @@ main(int argc, char *argv[])
 
         Areas51(); /*JCF: Create the default 8051 areas in the right order*/
 
-        while (getline()) {
+        while (as_getline()) {
             ip = ib;
 
             /* pass any "magic comments" to NoICE output */
index 4181427131e9880cc58b2546e9c3c577b49b372e..0a4323ec4523d21e418543a7fbc829869fab494c 100644 (file)
@@ -28,7 +28,7 @@
  *             char    endline()
  *             char    get()
  *             VOID    getid(id,c)
- *             int     getline()
+ *             int     as_getline()
  *             int     getmap()
  *             char    getnb()
  *             VOID    getst()
@@ -354,9 +354,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
@@ -364,7 +364,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:
@@ -401,7 +401,7 @@ getmap(d)
  */
 
 int
-getline()
+as_getline()
 {
 register int i;
 
index d179177a2c53ea38ded1563d4ae9a8e0939a3674..30bad90655965e1c39d77f3974956549ab4808b1 100644 (file)
@@ -524,7 +524,7 @@ extern      VOID            usage();
 extern char            endline();
 extern char            get();
 extern VOID            getid();
-extern int             getline();
+extern int             as_getline();
 extern int             getmap();
 extern char            getnb();
 extern VOID            getst();
index 72c5b98958e12a1925025331a0ef67f60820afd1..3972b0df3546841a41bbd3603765b3cc5eb19911 100644 (file)
  *             VOID    diag()          assubr.c
  *             VOID    err()           assubr.c
  *             int     fprintf()       c-library
- *             int     getline()       aslex.c
+ *             int     as_getline()    aslex.c
  *             VOID    list()          aslist.c
  *             VOID    lstsym()        aslist.c
  *             VOID    minit()         ___mch.c
@@ -311,7 +311,7 @@ main(int argc, char **argv)
                dot.s_area = &dca;
                symp = &dot;
                minit();
-               while (getline()) {
+               while (as_getline()) {
                        cp = cb;
                        cpt = cbt;
                        ep = eb;