Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
parent
226d80b821
commit
cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions
|
|
@ -69,9 +69,9 @@ void redirout(char*);
|
|||
void readfname(char *);
|
||||
void reread(void);
|
||||
char* regname(int);
|
||||
//vlong rget(Map*, char*);
|
||||
/*vlong rget(Map*, char*); */
|
||||
Regdesc* rname(char*);
|
||||
//void rput(Map*, char*, vlong);
|
||||
/*void rput(Map*, char*, vlong); */
|
||||
int runpcs(int, int);
|
||||
void runrun(int);
|
||||
void runstep(ulong, int);
|
||||
|
|
|
|||
|
|
@ -96,8 +96,8 @@ cmdmap(Map *map)
|
|||
error("Invalid map name");
|
||||
|
||||
if (expr(0)) {
|
||||
// if (strcmp(name, "text") == 0)
|
||||
// textseg(expv, &fhdr);
|
||||
/* if (strcmp(name, "text") == 0) */
|
||||
/* textseg(expv, &fhdr); */
|
||||
map->seg[i].base = expv;
|
||||
} else
|
||||
error("Invalid base address");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue