Commits

Jake Todd committed e7a2d0f

Fix more of the include madness

Comments (0)

Files changed (3)

+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <ctype.h>
+#include <time.h>
+#include <stdarg.h>
+#include <unistd.h>
+#include "../common/cmdlib.h"
+#include "pr_comp.h"
 #include "qcc.h"
 
 int pr_source_line;
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <ctype.h>
+#include <time.h>
+#include <stdarg.h>
+#include <unistd.h>
+#include "../common/cmdlib.h"
+#include <setjmp.h>
+#include "pr_comp.h"
 #include "qcc.h"
 
 char sourcedir[1024];
 	return crc;
 }
 
-
 void
 PrintFunction(char *name)
 {
 	}
 }
 
-/*
-============
-main
-============
-*/
 void
 main(int argc, char **argv)
 {
-
-#include "cmdlib.h"
-#include <stdio.h>
-#include <setjmp.h>
-
-#include "pr_comp.h"
+/* cmdlib.h pr_comp.h setjmp.h need to be included before this file */
 
 /*
 
 	int			initialized;	// 1 when a declaration included "= immediate"
 } def_t;
 
-//============================================================================
-
 // pr_loc.h -- program local defs
 
 #define	MAX_ERRORS		10
 
 #define	MAX_REGS		16384
 
-//=============================================================================
-
 typedef union eval_s
 {
 	string_t			string;
 	def_t		*type_a, *type_b, *type_c;
 } opcode_t;
 
-//============================================================================
-
-
 extern	opcode_t	pr_opcodes[99];		// sized by initialization
 
 extern	qboolean	pr_dumpasm;