(svn r2863) Move some type declarations into saveload.c, should've been part of r2819
authortron
Sat, 13 Aug 2005 21:34:05 +0000
changeset 2337 a4587769d43a
parent 2336 48ace1344af0
child 2338 8b953706648a
(svn r2863) Move some type declarations into saveload.c, should've been part of r2819
saveload.c
saveload.h
--- a/saveload.c	Sat Aug 13 16:23:07 2005 +0000
+++ b/saveload.c	Sat Aug 13 21:34:05 2005 +0000
@@ -38,6 +38,12 @@
 byte   _sl_version;      /// the major savegame version identifier
 uint16 _sl_full_version; /// the full version of the savegame
 
+typedef void WriterProc(uint len);
+typedef uint ReaderProc(void);
+
+typedef uint ReferenceToIntProc(const void *obj, SLRefType rt);
+typedef void *IntToReferenceProc(uint index, SLRefType rt);
+
 /** The saveload struct, containing reader-writer functions, bufffer, version, etc. */
 static struct {
 	bool save;                           /// are we doing a save or a load atm. True when saving
--- a/saveload.h	Sat Aug 13 16:23:07 2005 +0000
+++ b/saveload.h	Sat Aug 13 21:34:05 2005 +0000
@@ -41,9 +41,6 @@
 	byte null;
 } NullStruct;
 
-typedef void WriterProc(uint len);
-typedef uint ReaderProc(void);
-
 typedef enum SLRefType {
 	REF_ORDER       = 0,
 	REF_VEHICLE     = 1,
@@ -53,9 +50,6 @@
 	REF_ROADSTOPS   = 5
 } SLRefType;
 
-typedef uint ReferenceToIntProc(const void *obj, SLRefType rt);
-typedef void *IntToReferenceProc(uint index, SLRefType rt);
-
 
 extern byte   _sl_version;      /// the major savegame version identifier
 extern uint16 _sl_full_version; /// the full version of the savegame