summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6d080aa)
* link/z80/lklex.c,
* link/z80/lkdata.c,
* link/z80/aslink.h: fixed build on current cygwin: replaced getline() by lk_getline()
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4031
4a8a32a2-be11-0410-ad9d-
d568d2c75423
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 lk_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 char get();
extern VOID getfid();
extern VOID getid();
extern char get();
extern VOID getfid();
extern VOID getid();
+extern int lk_getline();
extern int getmap();
extern char getnb();
extern int more();
extern int getmap();
extern char getnb();
extern int more();
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 lk_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
* char get()
* VOID getfid()
* VOID getid()
* char get()
* VOID getfid()
* VOID getid()
* int getmap()
* char getnb()
* int more()
* int getmap()
* char getnb()
* int more()
-/*)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
* .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.
* 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 i, ftype;
register char *fid;
{
register int i, 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 lk_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 lk_getline() lklex.c
* VOID library() lklibr.c
* VOID link() lkmain.c
* VOID lkexit() lkmain.c
* VOID library() lklibr.c
* VOID link() 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);