Print this page
6648 illumos build should be explicit about C standards
*** 435,445 ****
static void
compile_mono(char **tokens, int cnt)
{
char *parm, *def;
int n, num;
- char tmp[128];
CHECK_COUNT(tokens, cnt, 3, 3);
parm = tokens[1];
def = tokens[2];
--- 435,444 ----
*** 603,622 ****
}
static void
compile_asm(char **tokens, int cnt)
{
- char *parms[4];
sym_t *symbols[4];
#define EMIT(o, r, a, x, y) \
fle.code[pc*2] = ((x) << 10) | (y); \
fle.code[pc*2+1] = ((o) << 20) | ((r) << 10) | a; pc++
#define EMIT_AUDIGY(o, r, a, x, y) \
fle.code[pc*2] = ((x) << 12) | (y); \
fle.code[pc*2+1] = ((o) << 24) | ((r) << 12) | a; pc++
! int i, n = 0, nerr = 0;
int ninputs = 0;
CHECK_COUNT(tokens, cnt, 5, 5);
for (i = 0; i < 4; i++) {
--- 602,620 ----
}
static void
compile_asm(char **tokens, int cnt)
{
sym_t *symbols[4];
#define EMIT(o, r, a, x, y) \
fle.code[pc*2] = ((x) << 10) | (y); \
fle.code[pc*2+1] = ((o) << 20) | ((r) << 10) | a; pc++
#define EMIT_AUDIGY(o, r, a, x, y) \
fle.code[pc*2] = ((x) << 12) | (y); \
fle.code[pc*2+1] = ((o) << 24) | ((r) << 12) | a; pc++
! int i, nerr = 0;
int ninputs = 0;
CHECK_COUNT(tokens, cnt, 5, 5);
for (i = 0; i < 4; i++) {
*** 811,821 ****
}
static void
produce_map(char *name)
{
- char fname[1024];
int i;
FILE *f;
if ((f = fopen(name, "w")) == NULL) {
perror(name);
--- 809,818 ----
*** 955,966 ****
}
int
main(int argc, char *argv[])
{
! char line[4096], *p, *s, *outfile;
! char *iline;
int i;
FILE *input;
char *tokens[10];
int tokcnt;
char *mapfile = NULL;
--- 952,962 ----
}
int
main(int argc, char *argv[])
{
! char *outfile;
int i;
FILE *input;
char *tokens[10];
int tokcnt;
char *mapfile = NULL;