Don't define functions called itoa(), because this causes problems on platforms

that define itoa() in their libcs.
This commit is contained in:
David Given 2017-07-23 21:19:07 +02:00
parent 8f79699ea8
commit f2e3d7b38c
5 changed files with 6 additions and 6 deletions

View file

@ -522,7 +522,7 @@ scanstring()
yylval.integer= genemlabel(); yylval.integer= genemlabel();
C_rom_dlb((label)i,(arith)0); C_rom_dlb((label)i,(arith)0);
C_rom_icon("9999",(arith)BEMINTSIZE); C_rom_icon("9999",(arith)BEMINTSIZE);
C_rom_icon(itoa(length),(arith)BEMINTSIZE); C_rom_icon(myitoa(length),(arith)BEMINTSIZE);
} }
#ifdef YYDEBUG #ifdef YYDEBUG
if (yydebug) print("STRVALUE found\n"); if (yydebug) print("STRVALUE found\n");

View file

@ -71,7 +71,7 @@ extern int dataused;
extern Linerecord *currline; extern Linerecord *currline;
extern char *itoa(); extern char *myitoa();
extern char *salloc(); extern char *salloc();
extern char *strcpy(); extern char *strcpy();

View file

@ -670,7 +670,7 @@ gendata()
C_df_dnam("datfdes"); C_df_dnam("datfdes");
C_rom_dnam("datfname",(arith)0); C_rom_dnam("datfname",(arith)0);
C_rom_cst((arith)1); C_rom_cst((arith)1);
C_rom_cst((arith)(itoa(strlen(datfname)))); C_rom_cst((arith)(myitoa(strlen(datfname))));
C_df_dnam("dattdes"); C_df_dnam("dattdes");
C_rom_dnam("dattyp",(arith)0); C_rom_dnam("dattyp",(arith)0);
C_rom_cst((arith)1); C_rom_cst((arith)1);

View file

@ -69,7 +69,7 @@ illegalcmd()
char *itoa(i) char *myitoa(i)
int i; int i;
{ {
static char buf[30]; static char buf[30];

View file

@ -355,7 +355,7 @@ void zgt(lab) int lab; { C_zgt((label) lab); }
void zlt(lab) int lab; { C_zlt((label) lab); } void zlt(lab) int lab; { C_zlt((label) lab); }
void zne(lab) int lab; { C_zne((label) lab); } void zne(lab) int lab; { C_zne((label) lab); }
char *itoa(i) long i; char *myitoa(i) long i;
{ {
static char a[sizeof(long)*3]; static char a[sizeof(long)*3];
sprint(a, "%ld", i); sprint(a, "%ld", i);
@ -364,7 +364,7 @@ char *itoa(i) long i;
void rom(size, c) int size; long c; void rom(size, c) int size; long c;
{ {
C_rom_icon(itoa(c), (arith) size); C_rom_icon(myitoa(c), (arith) size);
} }
void lin() void lin()