From: keie Date: Tue, 16 Apr 1985 16:14:55 +0000 (+0000) Subject: Added provision to print (possibly in mach.h defined) modhead X-Git-Tag: release-5-5~5484 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=eb3fc1d43e69e3c1f48094b6d959e389d1dac0d4;p=ack.git Added provision to print (possibly in mach.h defined) modhead on the output assmble file as the very first text. --- diff --git a/mach/proto/cg/fillem.c b/mach/proto/cg/fillem.c index 074d4454a..c4bf21d8f 100644 --- a/mach/proto/cg/fillem.c +++ b/mach/proto/cg/fillem.c @@ -111,6 +111,12 @@ in_init(filename) char *filename; { error("Bad format %s",filename); } +in_start() { +#ifdef modhead + fprintf(codefile,"%s",modhead) ; +#endif +} + in_finish() { } diff --git a/mach/proto/cg/main.c b/mach/proto/cg/main.c index 08d5c46c2..dc1c51139 100644 --- a/mach/proto/cg/main.c +++ b/mach/proto/cg/main.c @@ -67,6 +67,7 @@ main(argc,argv) char **argv; { error("Usage: %s EMfile [ asfile ]",progname); in_init(argv[0]); out_init(argv[1]); + in_start(); codegen(startupcode,maxply,TRUE,MAXINT,0); in_finish(); if (!endofprog)