Ansification, warning fixes, C89ification.
This commit is contained in:
parent
b79d9fd7f4
commit
789f79b369
|
@ -4,5 +4,9 @@
|
|||
*/
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef _MODULES_H_EM_LABEL_H
|
||||
#define _MODULES_H_EM_LABEL_H
|
||||
|
||||
typedef unsigned int label;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue