Explorar el Código

Allow for machine-dependent options

ceriel hace 32 años
padre
commit
4e1fd547da
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  1. 6 0
      mach/proto/cg/main.c
  2. 6 0
      mach/proto/ncg/main.c

+ 6 - 0
mach/proto/cg/main.c

@@ -3,6 +3,7 @@ static char rcsid[] = "$Header$";
 #endif
 
 #include "param.h"
+#include "mach.h"
 
 /*
  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
@@ -49,7 +50,12 @@ main(argc,argv) char **argv; {
 			cc4 /= n;
 			break;
 		default:
+#ifdef MACH_OPTIONS
+			mach_option(argv[0]);
+#else
 			error("Unknown flag %c",argv[0][1]);
+#endif
+			break;
 		}
 	}
 	if (argc < 1 || argc > 2)

+ 6 - 0
mach/proto/ncg/main.c

@@ -4,6 +4,7 @@ static char rcsid[] = "$Header$";
 
 #include "param.h"
 #include "tables.h"
+#include "mach.h"
 
 /*
  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
@@ -64,7 +65,12 @@ main(argc,argv) char **argv; {
 			cc4 /= n;
 			break;
 		default:
+#ifdef MACH_OPTIONS
+			mach_option(argv[0]);
+#else
 			error("Unknown flag %c",argv[0][1]);
+#endif
+			break;
 		}
 	}
 	if (argc > 2)