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$ */
#ifndef _MODULES_H_EM_LABEL_H
#define _MODULES_H_EM_LABEL_H
typedef unsigned int label;
#endif

View file

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

View file

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