*/
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
struct exec {
short a_magic;
short n_value;
};
+#include <object.h>
#include <out.h>
#ifndef NORCSID
}
/* Action at last */
- wr_int2(e->a_magic);
- wr_int2(e->a_text);
- wr_int2(e->a_data);
- wr_int2(e->a_bss);
- wr_int2(e->a_syms);
- wr_int2(e->a_entry);
- wr_int2(e->a_unused);
- wr_int2(e->a_flag);
+ cv_int2(e->a_magic);
+ cv_int2(e->a_text);
+ cv_int2(e->a_data);
+ cv_int2(e->a_bss);
+ cv_int2(e->a_syms);
+ cv_int2(e->a_entry);
+ cv_int2(e->a_unused);
+ cv_int2(e->a_flag);
emits(&outsect[TEXTSG]) ;
emits(&outsect[ROMSG]) ;
emits(&outsect[DATASG]) ;
return 0;
}
-wr_int2(n)
+cv_int2(n)
{
putc(n, output);
putc((n>>8), output);
}
/*
-wr_long(l)
+cv_long(l)
long l;
{
putc((int)(l >> 16), output);
struct nlist PDP_name; /* symbol table entry in PDP V7 format */
register unsigned short i;
- extern char *malloc();
char *chars;
long l;
long off = OFF_CHAR(outhead);
PDP_name.n_name[j] = 0;
}
fwrite((char *) &PDP_name, sizeof(char), 8, output);
- wr_int2(PDP_name.n_type);
- wr_int2(PDP_name.n_value);
+ cv_int2(PDP_name.n_type);
+ cv_int2(PDP_name.n_value);
}
}
int runphase(trf *);
/* scan.c */
-enum f_path { F_OK, F_NOMATCH, F_NOPATH } ;
+enum f_path { F_TRANSFORM, F_NOMATCH, F_NOPATH } ;
enum f_path getpath(trf **);
/* trans.c */
#endif
*/
+#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <signal.h>
#include <arch.h>
+#include <object.h>
#include <ranlib.h>
#include <unistd.h>
#ifdef AAL
return;
}
else if (u_fl && status.st_mtime <= member.ar_date) {
- wr_arhdr(fd, member);
+ wr_arhdr(fd, &member);
copy_member(member, ar_fd, fd, 0);
return;
}