* 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:
+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
2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
* src/SDCC.y: fixed bug #716242, exchanged pointer and function
* char endline()
* char get()
* VOID getid(id,c)
* char endline()
* char get()
* VOID getid(id,c)
* int getmap()
* char getnb()
* VOID getst()
* int getmap()
* char getnb()
* VOID getst()
-/*)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
* 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
* 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
* 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:
* or a (0) if all files have been read.
*
* local variables:
{
loop: if (incfil >= 0) {
if (fgets(ib, sizeof ib, ifp[incfil]) == NULL) {
{
loop: if (incfil >= 0) {
if (fgets(ib, sizeof ib, ifp[incfil]) == NULL) {
extern struct lfile *filep; /* The pointers (lfile *) filep,
* (lfile *) cfp, and (FILE *) sfp
* are used in conjunction with
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
* asmlnk commands from
* (1) the standard input or
* (2) or a command file
extern VOID getfid();
extern VOID getid();
extern VOID getSid();
extern VOID getfid();
extern VOID getid();
extern VOID getSid();
+extern int as_getline();
extern int getmap();
extern char getnb();
extern int more();
extern int getmap();
extern char getnb();
extern int more();
extern char endline();
extern char get();
extern VOID getid();
extern char endline();
extern char get();
extern VOID getid();
+extern int as_getline();
extern int getmap();
extern char getnb();
extern VOID getst();
extern int getmap();
extern char getnb();
extern VOID getst();
* VOID diag() assubr.c
* VOID err() assubr.c
* int fprintf() c-library
* 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
* VOID list() aslist.c
* VOID lstsym() aslist.c
* VOID minit() ___mch.c
dot.s_area = &dca;
symp = ˙
minit();
dot.s_area = &dca;
symp = ˙
minit();
cp = cb;
cpt = cbt;
ep = eb;
cp = cb;
cpt = cbt;
ep = eb;
struct lfile *filep; /* The pointers (lfile *) filep,
* (lfile *) cfp, and (FILE *) sfp
* are used in conjunction with
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
* asmlnk commands from
* (1) the standard input or
* (2) or a command file
* VOID getfid()
* VOID getid()
* VOID getSid()
* VOID getfid()
* VOID getid()
* VOID getSid()
* int getmap()
* char getnb()
* int more()
* int getmap()
* char getnb()
* int more()
-/*)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
* .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.
* 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.
{
register int ftype;
register char *fid;
{
register int ftype;
register char *fid;
*
* The function main() evaluates the command line arguments to
* determine if the linker parameters are to input through 'stdin'
*
* 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(),
* 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(),
* FILE * afile() lkmain.c
* int fclose() c_library
* int fprintf() c_library
* 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
* VOID library() lklibr.c
* VOID link_main() lkmain.c
* VOID lkexit() lkmain.c
filep = startp;
while (1) {
ip = ib;
filep = startp;
while (1) {
ip = ib;
break;
if (pflag && sfp != stdin)
fprintf(stdout, "%s\n", ip);
break;
if (pflag && sfp != stdin)
fprintf(stdout, "%s\n", ip);
Areas51(); /*JCF: Create the default 8051 areas in the right order*/
Areas51(); /*JCF: Create the default 8051 areas in the right order*/
ip = ib;
/* pass any "magic comments" to NoICE output */
ip = ib;
/* pass any "magic comments" to NoICE output */
* char endline()
* char get()
* VOID getid(id,c)
* char endline()
* char get()
* VOID getid(id,c)
* int getmap()
* char getnb()
* VOID getst()
* int getmap()
* char getnb()
* VOID getst()
-/*)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
* 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
* 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
* 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:
* or a (0) if all files have been read.
*
* local variables:
{
loop: if (incfil >= 0) {
if (fgets(ib, sizeof ib, ifp[incfil]) == NULL) {
{
loop: if (incfil >= 0) {
if (fgets(ib, sizeof ib, ifp[incfil]) == NULL) {
extern struct lfile *filep; /* The pointers (lfile *) filep,
* (lfile *) cfp, and (FILE *) sfp
* are used in conjunction with
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
* asmlnk commands from
* (1) the standard input or
* (2) or a command file
extern VOID getfid();
extern VOID getid();
extern VOID getSid();
extern VOID getfid();
extern VOID getid();
extern VOID getSid();
+extern int as_getline();
extern int getmap();
extern char getnb();
extern int more();
extern int getmap();
extern char getnb();
extern int more();
extern char endline();
extern char get();
extern VOID getid();
extern char endline();
extern char get();
extern VOID getid();
+extern int as_getline();
extern int getmap();
extern char getnb();
extern VOID getst();
extern int getmap();
extern char getnb();
extern VOID getst();
* VOID diag() assubr.c
* VOID err() assubr.c
* int fprintf() c-library
* 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
* VOID list() aslist.c
* VOID lstsym() aslist.c
* VOID minit() ___mch.c
dot.s_area = &dca;
symp = ˙
minit();
dot.s_area = &dca;
symp = ˙
minit();
cp = cb;
cpt = cbt;
ep = eb;
cp = cb;
cpt = cbt;
ep = eb;
struct lfile *filep; /* The pointers (lfile *) filep,
* (lfile *) cfp, and (FILE *) sfp
* are used in conjunction with
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
* asmlnk commands from
* (1) the standard input or
* (2) or a command file
* VOID getfid()
* VOID getid()
* VOID getSid()
* VOID getfid()
* VOID getid()
* VOID getSid()
* int getmap()
* char getnb()
* int more()
* int getmap()
* char getnb()
* int more()
-/*)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
* .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.
* 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.
{
register int ftype;
register char *fid;
{
register int ftype;
register char *fid;
*
* The function main() evaluates the command line arguments to
* determine if the linker parameters are to input through 'stdin'
*
* 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(),
* 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(),
* FILE * afile() lkmain.c
* int fclose() c_library
* int fprintf() c_library
* 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
* VOID library() lklibr.c
* VOID link_main() lkmain.c
* VOID lkexit() lkmain.c
filep = startp;
while (1) {
ip = ib;
filep = startp;
while (1) {
ip = ib;
break;
if (pflag && sfp != stdin)
fprintf(stdout, "%s\n", ip);
break;
if (pflag && sfp != stdin)
fprintf(stdout, "%s\n", ip);
Areas51(); /*JCF: Create the default 8051 areas in the right order*/
Areas51(); /*JCF: Create the default 8051 areas in the right order*/
ip = ib;
/* pass any "magic comments" to NoICE output */
ip = ib;
/* pass any "magic comments" to NoICE output */
* char endline()
* char get()
* VOID getid(id,c)
* char endline()
* char get()
* VOID getid(id,c)
* int getmap()
* char getnb()
* VOID getst()
* int getmap()
* char getnb()
* VOID getst()
-/*)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
* 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
* 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
* 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:
* or a (0) if all files have been read.
*
* local variables:
extern char endline();
extern char get();
extern VOID getid();
extern char endline();
extern char get();
extern VOID getid();
+extern int as_getline();
extern int getmap();
extern char getnb();
extern VOID getst();
extern int getmap();
extern char getnb();
extern VOID getst();
* VOID diag() assubr.c
* VOID err() assubr.c
* int fprintf() c-library
* 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
* VOID list() aslist.c
* VOID lstsym() aslist.c
* VOID minit() ___mch.c
dot.s_area = &dca;
symp = ˙
minit();
dot.s_area = &dca;
symp = ˙
minit();
cp = cb;
cpt = cbt;
ep = eb;
cp = cb;
cpt = cbt;
ep = eb;