Ansification, warning fixes, C89ification.

This commit is contained in:
David Given 2017-08-06 12:42:17 +02:00
parent b79d9fd7f4
commit 789f79b369
3 changed files with 18 additions and 16 deletions

View file

@ -4,5 +4,9 @@
*/ */
/* $Id$ */ /* $Id$ */
#ifndef _MODULES_H_EM_LABEL_H
#define _MODULES_H_EM_LABEL_H
typedef unsigned int label; typedef unsigned int label;
#endif

View file

@ -109,7 +109,7 @@ char *temp_arch = &temp_buf[0];
extern char *mktemp(); extern char *mktemp();
extern char *ctime(); extern char *ctime();
void do_object(); void do_object(int f, long size);
void write_symdef(); void write_symdef();
void add(); void add();
@ -689,9 +689,7 @@ is_outhead(headp)
return !BADMAGIC(*headp) && headp->oh_nname != 0; return !BADMAGIC(*headp) && headp->oh_nname != 0;
} }
void void do_object(int f, long size)
do_object(f, size)
long size;
{ {
struct outhead headbuf; struct outhead headbuf;

View file

@ -1276,10 +1276,10 @@ static void emitinsndata(Rule rules)
{ {
Tree node; Tree node;
int index = 0; int index = 0;
Nonterm nt;
if (!find_child_index(r->pattern, label, &index, &node)) if (!find_child_index(r->pattern, label, &index, &node))
label_not_found(r, label); label_not_found(r, label);
Nonterm nt = node->op;
if (nt->kind == NONTERM) if (nt->kind == NONTERM)
{ {
if (nt->is_fragment) if (nt->is_fragment)