getoff() moved to front (was called before being defined)

declaration char *pseudo[] changed to char *pseudo[5] to suppress warining
This commit is contained in:
bal 1984-11-27 14:21:55 +00:00
parent 69bdddd9ba
commit 0981b8857b

View file

@ -49,6 +49,16 @@ short getshort()
return n;
}
offset getoff()
{
register offset n;
n = (unsigned) getshort();
n |= ((offset) getshort() ) << 16;
return n;
}
int getint()
{
/* Read an integer from the input file. This routine is
@ -64,16 +74,6 @@ int getint()
}
offset getoff()
{
register offset n;
n = (unsigned) getshort();
n |= ((offset) getshort() ) << 16;
return n;
}
/* VARARGS 1 */
error(s,a) char *s,*a; {
@ -184,7 +184,7 @@ showp()
}
char *pseudo[] = {"hol", "bss", "rom", "con", "unknown" };
char *pseudo[5] = {"hol", "bss", "rom", "con", "unknown" };
showd()
{