]> git.sesse.net Git - pistorm/blobdiff - emulator.h
tidy up headers, remove extraneous duplicate decls
[pistorm] / emulator.h
similarity index 81%
rename from main.h
rename to emulator.h
index 49944b00b57f9cec258dca9606698ab412670f50..328e4a4173bc6f3a58a3e4f327dbf264cd51eb99 100644 (file)
--- a/main.h
@@ -1,11 +1,13 @@
-//
-// BCM283x SMI interface 
-// Derived from Documentation
-// GVL 15-Oct-2014 
-//
-#ifndef MAIN__HEADER
-#define MAIN__HEADER
+/**
+ * pistorm
+ * emulator function declarations
+ */
 
+#ifndef _EMULATOR_H
+#define _EMULATOR_H
+
+// see feature_set_macros(7)
+#define _GNU_SOURCE
 
 #include <stdint.h>
 
@@ -19,7 +21,6 @@ void write8(uint32_t address,uint16_t data);
 uint16_t read8(uint32_t address);
 */
 
-
 void cpu_pulse_reset(void);
 void m68ki_int_ack(uint8_t int_level);
 int cpu_irq_ack(int level);
@@ -30,7 +31,4 @@ void m68k_write_memory_8(unsigned int address, unsigned int value);
 void m68k_write_memory_16(unsigned int address, unsigned int value);
 void m68k_write_memory_32(unsigned int address, unsigned int value);
 
-
-
-#endif /* MAIN__HEADER */
-
+#endif /* _EMULATOR_H */