summaryrefslogtreecommitdiff
path: root/miniemu
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-06-16 12:34:55 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-06-16 12:34:55 +0200
commitab9f793cd6d03baf97ca62afa7c42052cafa5ea4 (patch)
treee888bb259c53cb9e00f166d1d5cc023df753daba /miniemu
parent8f5b4a6408d9bc5ea372d9d8d2dcc19834068612 (diff)
downloadcompilertests-ab9f793cd6d03baf97ca62afa7c42052cafa5ea4.tar.gz
compilertests-ab9f793cd6d03baf97ca62afa7c42052cafa5ea4.tar.bz2
no extern for function prototypes in header files (no clue, why I always do that :-) )
added itoa from abaos to minilib
Diffstat (limited to 'miniemu')
-rw-r--r--miniemu/cpu.h16
-rw-r--r--miniemu/memory.h14
2 files changed, 15 insertions, 15 deletions
diff --git a/miniemu/cpu.h b/miniemu/cpu.h
index b9695c4..7d1ca2d 100644
--- a/miniemu/cpu.h
+++ b/miniemu/cpu.h
@@ -20,11 +20,11 @@ typedef struct Cpu {
int debug;
} Cpu;
-extern void cpu_init( Cpu *cpu, struct Memory *memory );
-extern void cpu_done( Cpu *cpu );
-extern void cpu_reset( Cpu *cpu );
-extern void cpu_step( Cpu *cpu );
-extern int cpu_stopped( Cpu *cpu );
-extern int cpu_has_errors( Cpu *cpu );
-extern void cpu_debug( Cpu *cpu, int enable );
-extern void cpu_print_dump( Cpu *cpu );
+void cpu_init( Cpu *cpu, struct Memory *memory );
+void cpu_done( Cpu *cpu );
+void cpu_reset( Cpu *cpu );
+void cpu_step( Cpu *cpu );
+int cpu_stopped( Cpu *cpu );
+int cpu_has_errors( Cpu *cpu );
+void cpu_debug( Cpu *cpu, int enable );
+void cpu_print_dump( Cpu *cpu );
diff --git a/miniemu/memory.h b/miniemu/memory.h
index 312a42f..e402c91 100644
--- a/miniemu/memory.h
+++ b/miniemu/memory.h
@@ -5,10 +5,10 @@ typedef struct Memory {
char *m;
} Memory;
-extern void memory_init( Memory *memory, int size );
-extern void memory_done( Memory *memory );
-extern void memory_reset( Memory *memory );
-extern void memory_write( Memory *memory, int addr, char v );
-extern char memory_read( Memory *memory, int addr );
-extern void memory_print_dump( Memory *memory );
-extern void memory_read_from_file( Memory *memory, char *filename );
+void memory_init( Memory *memory, int size );
+void memory_done( Memory *memory );
+void memory_reset( Memory *memory );
+void memory_write( Memory *memory, int addr, char v );
+char memory_read( Memory *memory, int addr );
+void memory_print_dump( Memory *memory );
+void memory_read_from_file( Memory *memory, char *filename );