stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus/src/include ccl_helpers.h ccl_sound.h...


From: Jimmy Salmon
Subject: [Stratagus-CVS] stratagus/src/include ccl_helpers.h ccl_sound.h...
Date: Wed, 12 Nov 2003 15:14:56 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Jimmy Salmon <address@hidden>   03/11/12 15:14:56

Modified files:
        src/include    : ccl_helpers.h ccl_sound.h spells.h 

Log message:
        Started lua support

Patches:
Index: stratagus/src/include/ccl_helpers.h
diff -u stratagus/src/include/ccl_helpers.h:1.3 
stratagus/src/include/ccl_helpers.h:1.4
--- stratagus/src/include/ccl_helpers.h:1.3     Sun Oct 26 10:34:59 2003
+++ stratagus/src/include/ccl_helpers.h Wed Nov 12 15:14:55 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: ccl_helpers.h,v 1.3 2003/10/26 15:34:59 pludov Exp $
+//      $Id: ccl_helpers.h,v 1.4 2003/11/12 20:14:55 jsalmon3 Exp $
 
 #ifndef __CCL_HELPERS__
 #define __CCL_HELPERS__
@@ -113,8 +113,11 @@
 */
 typedef struct _io_field_def_ {
     char*              name;           /// Name of the field ( used as ccl 
ident )
+#if defined(USE_GUILE) || defined(USE_SIOD)
     void                (*convertfunc) (SCM scmfrom, void* binaryform, void* 
para);
                                        /// Function to load/save the field
+#elif defined(USE_LUA)
+#endif
     void*              offset;         /// Offset of the field in the structure
     void*              para;           /// Parameter passed to the field
 } IOFieldDef;
@@ -145,6 +148,7 @@
 
     /// Print "IOTabLevel" tabs on the ccl output
 extern void IOPrintTabs();
+#if defined(USE_GUILE) || defined(USE_SIOD)
     /// Handle saving/loading of structure
 extern void IOStruct(SCM scmform, void* binaryform, void* para);
     /// Handle saving/loading a pointer to a structure.
@@ -183,6 +187,8 @@
 extern void IOUpgradePtr(SCM scmfrom, void* binaryform, void* para);
     /// Handle saving/loading a reference to a player (Player*)
 extern void IOPlayerPtr(SCM scmfrom, void* binaryform, void* para);
+#elif defined(USE_LUA)
+#endif
 
 //@}
 
Index: stratagus/src/include/ccl_sound.h
diff -u stratagus/src/include/ccl_sound.h:1.18 
stratagus/src/include/ccl_sound.h:1.19
--- stratagus/src/include/ccl_sound.h:1.18      Fri Jul 11 10:35:30 2003
+++ stratagus/src/include/ccl_sound.h   Wed Nov 12 15:14:55 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: ccl_sound.h,v 1.18 2003/07/11 14:35:30 n0body Exp $
+//     $Id: ccl_sound.h,v 1.19 2003/11/12 20:14:55 jsalmon3 Exp $
 
 #ifndef __CCL_SOUND_H__
 #define __CCL_SOUND_H__
@@ -45,9 +45,12 @@
 --     Functions
 ----------------------------------------------------------------------------*/
 
+#if defined(USE_GUILE) || defined(USE_SIOD)
 extern int ccl_sound_p(SCM sound);     /// is it a ccl sound?
 
 extern SoundId ccl_sound_id(SCM sound);        /// scheme -> sound id
+#elif defined(USE_LUA)
+#endif
 
 extern void SoundCclRegister(void);    /// register ccl features
 
Index: stratagus/src/include/spells.h
diff -u stratagus/src/include/spells.h:1.37 stratagus/src/include/spells.h:1.38
--- stratagus/src/include/spells.h:1.37 Tue Oct 28 20:55:32 2003
+++ stratagus/src/include/spells.h      Wed Nov 12 15:14:55 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: spells.h,v 1.37 2003/10/29 01:55:32 n0body Exp $
+//     $Id: spells.h,v 1.38 2003/11/12 20:14:55 jsalmon3 Exp $
 
 #ifndef __SPELLS_H__
 #define __SPELLS_H__
@@ -322,10 +322,13 @@
 /// return spell type by spell id
 extern SpellType* SpellTypeById(int Id);
 
+#if defined(USE_GUILE) || defined(USE_SIOD)
 extern unsigned CclGetSpellByIdent(SCM value);
 
 // return 0, 1, 2 for true, only, false.
 extern char Scm2Condition(SCM value);
+#elif defined(USE_LUA)
+#endif
 
 /*
 **     Spelltype to cast.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]