[Scummvm-cvs-logs] SF.net SVN: scummvm:[38728] scummvm/trunk/engines/sci
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Feb 21 20:04:28 CET 2009
Revision: 38728
http://scummvm.svn.sourceforge.net/scummvm/?rev=38728&view=rev
Author: fingolfin
Date: 2009-02-21 19:04:27 +0000 (Sat, 21 Feb 2009)
Log Message:
-----------
SCI: Moved sci_dir_t and GTimeVal to tools.h
Modified Paths:
--------------
scummvm/trunk/engines/sci/include/sci_memory.h
scummvm/trunk/engines/sci/include/scitypes.h
scummvm/trunk/engines/sci/include/sfx_songlib.h
scummvm/trunk/engines/sci/sfx/sequencer.h
scummvm/trunk/engines/sci/tools.h
Modified: scummvm/trunk/engines/sci/include/sci_memory.h
===================================================================
--- scummvm/trunk/engines/sci/include/sci_memory.h 2009-02-21 19:02:26 UTC (rev 38727)
+++ scummvm/trunk/engines/sci/include/sci_memory.h 2009-02-21 19:04:27 UTC (rev 38728)
@@ -46,11 +46,6 @@
#include "common/scummsys.h"
#include "sci/tools.h"
-// FIXME: Get rid of the following #include
-#ifdef _MSC_VER
-# include <direct.h> // for chdir, rmdir, _gecwd, getcwd, mkdir
-#endif
-
namespace Sci {
/********** the memory allocation macros **********/
Modified: scummvm/trunk/engines/sci/include/scitypes.h
===================================================================
--- scummvm/trunk/engines/sci/include/scitypes.h 2009-02-21 19:02:26 UTC (rev 38727)
+++ scummvm/trunk/engines/sci/include/scitypes.h 2009-02-21 19:04:27 UTC (rev 38728)
@@ -28,14 +28,6 @@
#include "common/scummsys.h"
-// TODO: rework sci_dir_t to use common/fs.h and remove these includes
-#include <sys/types.h>
-#ifndef _MSC_VER
-#include <dirent.h>
-#else
-#include <io.h>
-#endif
-
namespace Sci {
typedef int8 gint8;
@@ -53,21 +45,6 @@
typedef guint8 byte;
typedef guint16 word;
-typedef struct {
- long tv_sec;
- long tv_usec;
-} GTimeVal;
-
-typedef struct {
-#ifdef WIN32
- long search;
- struct _finddata_t fileinfo;
-#else
- DIR *dir;
- char *mask_copy;
-#endif
-} sci_dir_t; /* used by sci_find_first and friends */
-
} // End of namespace Sci
#endif /* !SCI_TYPES */
Modified: scummvm/trunk/engines/sci/include/sfx_songlib.h
===================================================================
--- scummvm/trunk/engines/sci/include/sfx_songlib.h 2009-02-21 19:02:26 UTC (rev 38727)
+++ scummvm/trunk/engines/sci/include/sfx_songlib.h 2009-02-21 19:04:27 UTC (rev 38728)
@@ -30,6 +30,7 @@
#include "common/scummsys.h"
+#include "sci/tools.h" // For GTimeVal
#include "sci/include/scitypes.h"
#include "sci/include/sfx_iterator.h"
Modified: scummvm/trunk/engines/sci/sfx/sequencer.h
===================================================================
--- scummvm/trunk/engines/sci/sfx/sequencer.h 2009-02-21 19:02:26 UTC (rev 38727)
+++ scummvm/trunk/engines/sci/sfx/sequencer.h 2009-02-21 19:04:27 UTC (rev 38728)
@@ -29,6 +29,7 @@
#include "common/scummsys.h"
+#include "sci/tools.h" // For GTimeVal
#include "sci/include/sfx_core.h"
#include "sci/sfx/device.h"
#include "sci/include/scitypes.h"
Modified: scummvm/trunk/engines/sci/tools.h
===================================================================
--- scummvm/trunk/engines/sci/tools.h 2009-02-21 19:02:26 UTC (rev 38727)
+++ scummvm/trunk/engines/sci/tools.h 2009-02-21 19:04:27 UTC (rev 38728)
@@ -66,6 +66,16 @@
# include <fcntl.h>
#endif
+
+// FIXME: rework sci_dir_t to use common/fs.h and remove these includes
+#include <sys/types.h>
+#ifndef _MSC_VER
+#include <dirent.h>
+#else
+#include <io.h>
+#endif
+
+
#define GUINT16_SWAP_LE_BE_CONSTANT(val) ((((val) & 0x00ff) << 8) | (((val) & 0xff00) >> 8))
#define GUINT32_SWAP_LE_BE_CONSTANT(val) ( \
@@ -97,6 +107,24 @@
namespace Sci {
+
+typedef struct {
+ long tv_sec;
+ long tv_usec;
+} GTimeVal;
+
+typedef struct {
+#ifdef WIN32
+ long search;
+ struct _finddata_t fileinfo;
+#else
+ DIR *dir;
+ char *mask_copy;
+#endif
+} sci_dir_t; /* used by sci_find_first and friends */
+
+
+
/**** FUNCTION DECLARATIONS ****/
#define getInt16 (int16)READ_UINT16
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list