Added provision to print (possibly in mach.h defined) modhead
authorkeie <none@none>
Tue, 16 Apr 1985 16:14:55 +0000 (16:14 +0000)
committerkeie <none@none>
Tue, 16 Apr 1985 16:14:55 +0000 (16:14 +0000)
on the output assmble file as the very first text.

mach/proto/cg/fillem.c
mach/proto/cg/main.c

index 074d445..c4bf21d 100644 (file)
@@ -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() {
 }
 
index 08d5c46..dc1c511 100644 (file)
@@ -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)