]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
clean code
authorJavier Sancho <jsf@jsancho.org>
Tue, 12 May 2020 07:21:41 +0000 (09:21 +0200)
committerJavier Sancho <jsf@jsancho.org>
Tue, 12 May 2020 07:21:41 +0000 (09:21 +0200)
59 files changed:
src/animated-mesh-md2.cpp
src/animated-mesh-scene-node.cpp
src/animated-mesh-scene-node.h
src/animated-mesh.cpp
src/animated-mesh.h
src/box3d.cpp
src/box3d.h
src/color.cpp
src/cursor-control.cpp
src/cursor-control.h
src/device.cpp
src/device.h
src/dimension2d.cpp
src/driver-types.cpp
src/event-receiver.cpp
src/event-receiver.h
src/file-archive.cpp
src/file-system.cpp
src/file-system.h
src/gui-environment.cpp
src/gui-environment.h
src/gui-in-out-fader.cpp
src/gui-in-out-fader.h
src/gui-listbox.cpp
src/gui-listbox.h
src/gui-scrollbar.cpp
src/gui-scrollbar.h
src/gui-skin.cpp
src/gui-skin.h
src/gui-toolbar.cpp
src/gui-toolbar.h
src/gui.cpp [deleted file]
src/gui.h [deleted file]
src/guile-irrlicht.cpp
src/io.cpp [deleted file]
src/io.h [deleted file]
src/keycodes.cpp
src/material-flags.cpp
src/material-types.cpp
src/material.cpp
src/material.h
src/matrix4.cpp
src/position2d.cpp
src/primitive-types.cpp
src/rect.cpp
src/reference-counted.cpp
src/reference-counted.h
src/scene-manager.cpp
src/scene-manager.h
src/scene-node.cpp
src/scene-node.h
src/timer.cpp
src/timer.h
src/vector2d.cpp
src/vector3d.cpp
src/vertex3d.cpp
src/vertex3d.h
src/video-driver.cpp
src/video-driver.h

index 3cd2d39e82a9451566e3df83df2ee8fd8253d1b6..11e680fb11fd06e89b108972a1ad579302884d9c 100644 (file)
 #include <libguile.h>
 #include "animated-mesh-md2.h"
 
-
 using namespace irr;
 
-
 scene::EMD2_ANIMATION_TYPE
 scm_to_md2_animation_type (SCM md2_animation_type)
 {
index 498a196529e513d62c2d8828a88fd57958063f9f..3496b3a7b32ae53c4df3c35926d0321e787acd40 100644 (file)
 #include "animated-mesh-scene-node.h"
 #include "gsubr.h"
 
-
 using namespace irr;
 
-
 SCM
 IAnimatedMeshSceneNode_setFrameLoop (SCM animated_mesh_scene_node,
                                      SCM begin,
@@ -40,7 +38,6 @@ IAnimatedMeshSceneNode_setFrameLoop (SCM animated_mesh_scene_node,
                    scm_to_int32 (end)));
 }
 
-
 SCM
 IAnimatedMeshSceneNode_setMD2Animation (SCM animated_mesh_scene_node,
                                         SCM anim)
@@ -50,16 +47,11 @@ IAnimatedMeshSceneNode_setMD2Animation (SCM animated_mesh_scene_node,
      setMD2Animation (scm_to_md2_animation_type (anim)));
 }
 
-
-extern "C" {
-
-  void
-  init_animated_mesh_scene_node (void)
-  {
-    DEFINE_GSUBR ("IAnimatedMeshSceneNode_setFrameLoop", 3, 0, 0,
-                  IAnimatedMeshSceneNode_setFrameLoop);
-    DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMD2Animation", 2, 0, 0,
-                  IAnimatedMeshSceneNode_setMD2Animation);
-  }
-
+void
+init_animated_mesh_scene_node (void)
+{
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_setFrameLoop", 3, 0, 0,
+                IAnimatedMeshSceneNode_setFrameLoop);
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMD2Animation", 2, 0, 0,
+                IAnimatedMeshSceneNode_setMD2Animation);
 }
index ead8ba026963eef53497c3c3fa1cee93bd2363cb..d586ccec9efec27001100c415db3b09ea10faa2b 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
 #define __GUILE_IRRLICHT_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
 
-extern "C" {
-  void
-  init_animated_mesh_scene_node (void);
-}
+void
+init_animated_mesh_scene_node (void);
 
 #endif
index 80b6229d8adb941b85563029767dc4b6cd63a415..cb88225c9f659c564df5bbb5ed7ac72e2c8aea2c 100644 (file)
 #include "animated-mesh.h"
 #include "gsubr.h"
 
-
 using namespace irr;
 
-
 SCM
 IAnimatedMesh_setAnimationSpeed (SCM animated_mesh,
                                  SCM frames_per_second)
@@ -37,13 +35,8 @@ IAnimatedMesh_setAnimationSpeed (SCM animated_mesh,
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_animated_mesh (void)
-  {
-    DEFINE_GSUBR ("IAnimatedMesh_setAnimationSpeed", 2, 0, 0, IAnimatedMesh_setAnimationSpeed);
-  }
-
+void
+init_animated_mesh (void)
+{
+  DEFINE_GSUBR ("IAnimatedMesh_setAnimationSpeed", 2, 0, 0, IAnimatedMesh_setAnimationSpeed);
 }
index f44df1d0067b0553c639935b997443d23de04ba7..3a4966b07bedd4c2a4c7ee2a116feaae60f98b85 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_ANIMATED_MESH_H_INCLUDED__
 #define __GUILE_IRRLICHT_ANIMATED_MESH_H_INCLUDED__
 
-extern "C" {
-  void
-  init_animated_mesh (void);
-}
+void
+init_animated_mesh (void);
 
 #endif
index 71571b1013b9e59772ca4ac1b02e20e787039fd3..ed56fdc3228f514e9bbf52f30c5d153c5200f69e 100644 (file)
 #include "gsubr.h"
 #include "vector3d.h"
 
-
 using namespace irr;
 
-
 SCM
 aabbox3d_addInternalPoint (SCM box3d,
                            SCM point)
@@ -37,7 +35,6 @@ aabbox3d_addInternalPoint (SCM box3d,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 aabbox3d_make ()
 {
@@ -45,7 +42,6 @@ aabbox3d_make ()
   return scm_from_pointer ((void*)aabbox, NULL);
 }
 
-
 SCM
 aabbox3d_reset (SCM box3d,
                 SCM init_value)
@@ -54,15 +50,10 @@ aabbox3d_reset (SCM box3d,
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_box3d (void)
-  {
-    DEFINE_GSUBR ("aabbox3d_addInternalPoint", 2, 0, 0, aabbox3d_addInternalPoint);
-    DEFINE_GSUBR ("aabbox3d_make", 0, 0, 0, aabbox3d_make);
-    DEFINE_GSUBR ("aabbox3d_reset", 2, 0, 0, aabbox3d_reset);
-  }
-
+void
+init_box3d (void)
+{
+  DEFINE_GSUBR ("aabbox3d_addInternalPoint", 2, 0, 0, aabbox3d_addInternalPoint);
+  DEFINE_GSUBR ("aabbox3d_make", 0, 0, 0, aabbox3d_make);
+  DEFINE_GSUBR ("aabbox3d_reset", 2, 0, 0, aabbox3d_reset);
 }
index ce91f676cf1e647aa6545ebaad7bbe837bce5784..cfcde7b6eb4a44b336536fe77ebdf6ce4a67f846 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_AABBOX_3D_H_INCLUDED__
 #define __GUILE_IRRLICHT_AABBOX_3D_H_INCLUDED__
 
-extern "C" {
-  void
-  init_box3d (void);
-}
+void
+init_box3d (void);
 
 #endif
index 6d836d3d4f40138eb220db3d068aa72a29404405..9308abc696d671f793dc231f599c71630cb50a6d 100644 (file)
 #include <libguile.h>
 #include "color.h"
 
-
 using namespace irr;
 
-
 SCM
 scm_from_color (video::SColor color)
 {
@@ -36,7 +34,6 @@ scm_from_color (video::SColor color)
                      scm_from_uint32 (color.getBlue ()));
 }
 
-
 video::SColor
 scm_to_color (SCM color)
 {
index 79e31d9806bc5ca246673de2da2fd2262c39340e..55f6622e8997350ebfd0d0ef5f5911acc084bfe8 100644 (file)
 #include "gsubr.h"
 #include "position2d.h"
 
-
 using namespace irr;
 
-
 SCM
 ICursorControl_getPosition (SCM cursor_control)
 {
@@ -36,7 +34,6 @@ ICursorControl_getPosition (SCM cursor_control)
     (((gui::ICursorControl*)scm_to_pointer (cursor_control))->getPosition ());
 }
 
-
 SCM
 ICursorControl_setPosition (SCM cursor_control,
                             SCM position)
@@ -46,14 +43,9 @@ ICursorControl_setPosition (SCM cursor_control,
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_cursor_control (void)
-  {
-    DEFINE_GSUBR ("ICursorControl_getPosition", 1, 0, 0, ICursorControl_getPosition);
-    DEFINE_GSUBR ("ICursorControl_setPosition", 2, 0, 0, ICursorControl_setPosition);
-  }
-
+void
+init_cursor_control (void)
+{
+  DEFINE_GSUBR ("ICursorControl_getPosition", 1, 0, 0, ICursorControl_getPosition);
+  DEFINE_GSUBR ("ICursorControl_setPosition", 2, 0, 0, ICursorControl_setPosition);
 }
index 73e3537cedef1570f34e639ece2c8dceb12a8a8e..f01bd78c2f419df02fc1c728d48e65d91b323cfe 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_CURSOR_CONTROL_H_INCLUDED__
 #define __GUILE_IRRLICHT_CURSOR_CONTROL_H_INCLUDED__
 
-extern "C" {
-  void
-  init_cursor_control (void);
-}
+void
+init_cursor_control (void);
 
 #endif
index ed551705389337c09e789d110d54ba0ac2f6ac1b..55c752fec4b1866a097dfd86a2169601d91297c2 100644 (file)
 #include "gsubr.h"
 #include "wchar.h"
 
-
 using namespace irr;
 
-
 SCM
 irr_createDevice (SCM device_type,
                   SCM window_size,
@@ -51,7 +49,6 @@ irr_createDevice (SCM device_type,
   return scm_from_pointer ((void*)device, NULL);
 }
 
-
 SCM
 IrrlichtDevice_getCursorControl (SCM device)
 {
@@ -60,7 +57,6 @@ IrrlichtDevice_getCursorControl (SCM device)
   return scm_from_pointer ((void*)cursor_control, NULL);
 }
 
-
 SCM
 IrrlichtDevice_getFileSystem (SCM device)
 {
@@ -69,7 +65,6 @@ IrrlichtDevice_getFileSystem (SCM device)
   return scm_from_pointer ((void*)file_system, NULL);
 }
 
-
 SCM
 IrrlichtDevice_getGUIEnvironment (SCM device)
 {
@@ -78,7 +73,6 @@ IrrlichtDevice_getGUIEnvironment (SCM device)
   return scm_from_pointer ((void*)gui_env, NULL);
 }
 
-
 SCM
 IrrlichtDevice_getSceneManager (SCM device)
 {
@@ -87,7 +81,6 @@ IrrlichtDevice_getSceneManager (SCM device)
   return scm_from_pointer ((void*)manager, NULL);
 }
 
-
 SCM
 IrrlichtDevice_getTimer (SCM device)
 {
@@ -96,7 +89,6 @@ IrrlichtDevice_getTimer (SCM device)
   return scm_from_pointer ((void*)timer, NULL);
 }
 
-
 SCM
 IrrlichtDevice_getVideoDriver (SCM device)
 {
@@ -105,7 +97,6 @@ IrrlichtDevice_getVideoDriver (SCM device)
   return scm_from_pointer ((void*)driver, NULL);
 }
 
-
 SCM
 IrrlichtDevice_isWindowActive (SCM device)
 {
@@ -113,7 +104,6 @@ IrrlichtDevice_isWindowActive (SCM device)
     (((IrrlichtDevice*)scm_to_pointer (device))->isWindowActive ());
 }
 
-
 SCM
 IrrlichtDevice_run (SCM device)
 {
@@ -121,7 +111,6 @@ IrrlichtDevice_run (SCM device)
     (((IrrlichtDevice*)scm_to_pointer (device))->run ());
 }
 
-
 template <typename TEventReceiver>
 SCM
 IrrlichtDevice_setEventReceiver (SCM device,
@@ -132,7 +121,6 @@ IrrlichtDevice_setEventReceiver (SCM device,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 IrrlichtDevice_setResizable (SCM device,
                              SCM resize)
@@ -142,7 +130,6 @@ IrrlichtDevice_setResizable (SCM device,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 IrrlichtDevice_setWindowCaption (SCM device,
                                  SCM text)
@@ -152,7 +139,6 @@ IrrlichtDevice_setWindowCaption (SCM device,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 IrrlichtDevice_yield (SCM device)
 {
@@ -160,26 +146,21 @@ IrrlichtDevice_yield (SCM device)
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_device (void)
-  {
-    DEFINE_GSUBR ("createDevice", 7, 0, 0, irr_createDevice);
-    DEFINE_GSUBR ("IrrlichtDevice_getCursorControl", 1, 0, 0, IrrlichtDevice_getCursorControl);
-    DEFINE_GSUBR ("IrrlichtDevice_getFileSystem", 1, 0, 0, IrrlichtDevice_getFileSystem);
-    DEFINE_GSUBR ("IrrlichtDevice_getGUIEnvironment", 1, 0, 0, IrrlichtDevice_getGUIEnvironment);
-    DEFINE_GSUBR ("IrrlichtDevice_getSceneManager", 1, 0, 0, IrrlichtDevice_getSceneManager);
-    DEFINE_GSUBR ("IrrlichtDevice_getTimer", 1, 0, 0, IrrlichtDevice_getTimer);
-    DEFINE_GSUBR ("IrrlichtDevice_getVideoDriver", 1, 0, 0, IrrlichtDevice_getVideoDriver);
-    DEFINE_GSUBR ("IrrlichtDevice_isWindowActive", 1, 0, 0, IrrlichtDevice_isWindowActive);
-    DEFINE_GSUBR ("IrrlichtDevice_run", 1, 0, 0, IrrlichtDevice_run);
-    DEFINE_GSUBR ("IrrlichtDevice_setEventReceiver_IEventReceiver", 2, 0, 0,
-                  IrrlichtDevice_setEventReceiver<IEventReceiver*>);
-    DEFINE_GSUBR ("IrrlichtDevice_setResizable", 2, 0, 0, IrrlichtDevice_setResizable);
-    DEFINE_GSUBR ("IrrlichtDevice_setWindowCaption", 2, 0, 0, IrrlichtDevice_setWindowCaption);
-    DEFINE_GSUBR ("IrrlichtDevice_yield", 1, 0, 0, IrrlichtDevice_yield);
-  }
-
+void
+init_device (void)
+{
+  DEFINE_GSUBR ("createDevice", 7, 0, 0, irr_createDevice);
+  DEFINE_GSUBR ("IrrlichtDevice_getCursorControl", 1, 0, 0, IrrlichtDevice_getCursorControl);
+  DEFINE_GSUBR ("IrrlichtDevice_getFileSystem", 1, 0, 0, IrrlichtDevice_getFileSystem);
+  DEFINE_GSUBR ("IrrlichtDevice_getGUIEnvironment", 1, 0, 0, IrrlichtDevice_getGUIEnvironment);
+  DEFINE_GSUBR ("IrrlichtDevice_getSceneManager", 1, 0, 0, IrrlichtDevice_getSceneManager);
+  DEFINE_GSUBR ("IrrlichtDevice_getTimer", 1, 0, 0, IrrlichtDevice_getTimer);
+  DEFINE_GSUBR ("IrrlichtDevice_getVideoDriver", 1, 0, 0, IrrlichtDevice_getVideoDriver);
+  DEFINE_GSUBR ("IrrlichtDevice_isWindowActive", 1, 0, 0, IrrlichtDevice_isWindowActive);
+  DEFINE_GSUBR ("IrrlichtDevice_run", 1, 0, 0, IrrlichtDevice_run);
+  DEFINE_GSUBR ("IrrlichtDevice_setEventReceiver_IEventReceiver", 2, 0, 0,
+                IrrlichtDevice_setEventReceiver<IEventReceiver*>);
+  DEFINE_GSUBR ("IrrlichtDevice_setResizable", 2, 0, 0, IrrlichtDevice_setResizable);
+  DEFINE_GSUBR ("IrrlichtDevice_setWindowCaption", 2, 0, 0, IrrlichtDevice_setWindowCaption);
+  DEFINE_GSUBR ("IrrlichtDevice_yield", 1, 0, 0, IrrlichtDevice_yield);
 }
index 6c6a1d9c9500499d668649b8ef3591ed2827dc55..5081ccd572c92c6d0d38736b7cd7120e9fcbb95f 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_DEVICE_H_INCLUDED__
 #define __GUILE_IRRLICHT_DEVICE_H_INCLUDED__
 
-extern "C" {
-  void
-  init_device (void);
-}
+void
+init_device (void);
 
 #endif
index 03d4fa653bf015d333ee85941dc373dc8ce4e304..7db4cfc2ea70210ab72e5ae5cc6bc16cc1b5c89e 100644 (file)
 #include <libguile.h>
 #include "dimension2d.h"
 
-
 using namespace irr;
 
-
 core::dimension2d<u32>
 scm_to_dimension2d_u32 (SCM dimension2d)
 {
index d0fec5065d042bf6e3990f48d045fffa3cd73cf9..d18ecfa34952f9404ed41140146d85465ef50307 100644 (file)
 #include <libguile.h>
 #include "driver-types.h"
 
-
 using namespace irr;
 
-
 video::E_DRIVER_TYPE
 scm_to_driver_type (SCM driver_type)
 {
index 293f48f794f1a6b028003aa50c9b5ad2d438f11e..cae9191691668a98a28a146b8c85e381dd6dcfc8 100644 (file)
 #include "gsubr.h"
 #include "keycodes.h"
 
-
 using namespace irr;
 
-
 SCM
 IEventRecevier_make (SCM proc_on_event)
 {
@@ -52,7 +50,6 @@ IEventRecevier_make (SCM proc_on_event)
   return scm_from_pointer ((void*)receiver, NULL);
 }
 
-
 SCM
 SEvent_EventType (SCM event)
 {
@@ -60,7 +57,6 @@ SEvent_EventType (SCM event)
     (((SEvent*)scm_to_pointer (event))->EventType);
 }
 
-
 SCM
 SEvent_SGUIEvent_Caller (SCM event)
 {
@@ -69,7 +65,6 @@ SEvent_SGUIEvent_Caller (SCM event)
   return scm_from_pointer ((void*)caller, NULL);
 }
 
-
 SCM
 SEvent_SGUIEvent_EventType (SCM event)
 {
@@ -77,7 +72,6 @@ SEvent_SGUIEvent_EventType (SCM event)
     (((SEvent*)scm_to_pointer (event))->GUIEvent.EventType);
 }
 
-
 SCM
 SEvent_SKeyInput_Key (SCM event)
 {
@@ -85,7 +79,6 @@ SEvent_SKeyInput_Key (SCM event)
     (((SEvent*)scm_to_pointer (event))->KeyInput.Key);
 }
 
-
 SCM
 SEvent_SKeyInput_PressedDown (SCM event)
 {
@@ -93,20 +86,15 @@ SEvent_SKeyInput_PressedDown (SCM event)
     (((SEvent*)scm_to_pointer (event))->KeyInput.PressedDown);
 }
 
-
-extern "C" {
-
-  void
-  init_event_receiver (void)
-  {
-    DEFINE_GSUBR ("IEventRecevier_make", 1, 0, 0, IEventRecevier_make);
-    DEFINE_GSUBR ("SEvent_EventType", 1, 0, 0, SEvent_EventType);
-    DEFINE_GSUBR ("SEvent_SGUIEvent_Caller", 1, 0, 0, SEvent_SGUIEvent_Caller);
-    DEFINE_GSUBR ("SEvent_SGUIEvent_EventType", 1, 0, 0, SEvent_SGUIEvent_EventType);
-    DEFINE_GSUBR ("SEvent_SKeyInput_Key", 1, 0, 0, SEvent_SKeyInput_Key);
-    DEFINE_GSUBR ("SEvent_SKeyInput_PressedDown", 1, 0, 0, SEvent_SKeyInput_PressedDown);
-  }
-
+void
+init_event_receiver (void)
+{
+  DEFINE_GSUBR ("IEventRecevier_make", 1, 0, 0, IEventRecevier_make);
+  DEFINE_GSUBR ("SEvent_EventType", 1, 0, 0, SEvent_EventType);
+  DEFINE_GSUBR ("SEvent_SGUIEvent_Caller", 1, 0, 0, SEvent_SGUIEvent_Caller);
+  DEFINE_GSUBR ("SEvent_SGUIEvent_EventType", 1, 0, 0, SEvent_SGUIEvent_EventType);
+  DEFINE_GSUBR ("SEvent_SKeyInput_Key", 1, 0, 0, SEvent_SKeyInput_Key);
+  DEFINE_GSUBR ("SEvent_SKeyInput_PressedDown", 1, 0, 0, SEvent_SKeyInput_PressedDown);
 }
 
 SCM
@@ -145,7 +133,6 @@ scm_from_event_type (EEVENT_TYPE event_type)
     }
 }
 
-
 SCM
 scm_from_gui_event_type (gui::EGUI_EVENT_TYPE gui_event_type)
 {
index 510f6dc1dc63645aedc06cf31ca082ad116d71d9..5df68b751ad496b8416f81a36bbc6aba1eb3ecf0 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-extern "C" {
-  void
-  init_event_receiver (void);
-}
+void
+init_event_receiver (void);
 
 SCM
 scm_from_event_type (irr::EEVENT_TYPE event_type);
index 10d3dbde2162924920f2ea92efd442c5f54a95da..1527520bf850e0484979c97735d00a16b5d796f9 100644 (file)
 #include <libguile.h>
 #include "file-archive.h"
 
-
 using namespace irr;
 
-
 io::E_FILE_ARCHIVE_TYPE
 scm_to_file_archive_type (SCM file_archive_type)
 {
index 5b872a5d1fbb5ffc9085c1ede2d25911c6544920..204e25dabad0985bcd17662b552f3695eb5894f2 100644 (file)
 #include "file-system.h"
 #include "gsubr.h"
 
-
 using namespace irr;
 
-
 SCM
 IFileSystem_addFileArchive (SCM file_system,
                             SCM filename,
@@ -55,13 +53,8 @@ IFileSystem_addFileArchive (SCM file_system,
                      retArchiveReference));
 }
 
-
-extern "C" {
-
-  void
-  init_file_system (void)
-  {
-    DEFINE_GSUBR ("IFileSystem_addFileArchive", 7, 0, 0, IFileSystem_addFileArchive);
-  }
-
+void
+init_file_system (void)
+{
+  DEFINE_GSUBR ("IFileSystem_addFileArchive", 7, 0, 0, IFileSystem_addFileArchive);
 }
index b05df205c039ed3c80744c9252a5c51b4c80bf53..947c8cceb2e61b8169724910e9ca0b274f787265 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_FILE_SYSTEM_H_INCLUDED__
 #define __GUILE_IRRLICHT_FILE_SYSTEM_H_INCLUDED__
 
-extern "C" {
-  void
-  init_file_system (void);
-}
+void
+init_file_system (void);
 
 #endif
index 92e4a7b5b6a08a0e3d3d2096f11d1c1547d9236d..9c45b3574aac9058947a7ffe97b217eefa9f6363 100644 (file)
 #include "rect.h"
 #include "wchar.h"
 
-
 using namespace irr;
 
-
 template <typename TParent>
 SCM
 IGUIEnvironment_addButton (SCM gui_environment,
@@ -50,7 +48,6 @@ IGUIEnvironment_addButton (SCM gui_environment,
   return scm_from_pointer ((void*)button, NULL);
 }
 
-
 template <typename TParent>
 SCM
 IGUIEnvironment_addEditBox (SCM gui_environment,
@@ -70,7 +67,6 @@ IGUIEnvironment_addEditBox (SCM gui_environment,
   return scm_from_pointer ((void*)editbox, NULL);
 }
 
-
 template <typename TParent>
 SCM
 IGUIEnvironment_addImage (SCM gui_environment,
@@ -92,7 +88,6 @@ IGUIEnvironment_addImage (SCM gui_environment,
   return scm_from_pointer ((void*) new_image, NULL);
 }
 
-
 template <typename TParent>
 SCM
 IGUIEnvironment_addListBox (SCM gui_environment,
@@ -110,7 +105,6 @@ IGUIEnvironment_addListBox (SCM gui_environment,
   return scm_from_pointer ((void*)listbox, NULL);
 }
 
-
 template <typename TParent>
 SCM
 IGUIEnvironment_addScrollBar (SCM gui_environment,
@@ -128,7 +122,6 @@ IGUIEnvironment_addScrollBar (SCM gui_environment,
   return scm_from_pointer ((void*)scrollbar, NULL);
 }
 
-
 template <typename TParent>
 SCM
 IGUIEnvironment_addStaticText (SCM gui_environment,
@@ -152,7 +145,6 @@ IGUIEnvironment_addStaticText (SCM gui_environment,
   return scm_from_pointer ((void*)static_text, NULL);
 }
 
-
 template <typename TParent>
 SCM
 IGUIEnvironment_addWindow (SCM gui_environment,
@@ -172,7 +164,6 @@ IGUIEnvironment_addWindow (SCM gui_environment,
   return scm_from_pointer ((void*)window, NULL);
 }
 
-
 SCM
 IGUIEnvironment_drawAll (SCM gui_environment)
 {
@@ -180,7 +171,6 @@ IGUIEnvironment_drawAll (SCM gui_environment)
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 IGUIEnvironment_getBuiltInFont (SCM gui_environment)
 {
@@ -189,7 +179,6 @@ IGUIEnvironment_getBuiltInFont (SCM gui_environment)
   return scm_from_pointer ((void*)font, NULL);
 }
 
-
 SCM
 IGUIEnvironment_getFont (SCM gui_environment,
                          SCM filename)
@@ -200,7 +189,6 @@ IGUIEnvironment_getFont (SCM gui_environment,
   return scm_from_pointer ((void*)font, NULL);
 }
 
-
 SCM
 IGUIEnvironment_getSkin (SCM gui_environment)
 {
@@ -209,30 +197,25 @@ IGUIEnvironment_getSkin (SCM gui_environment)
   return scm_from_pointer ((void*)skin, NULL);
 }
 
-
-extern "C" {
-
-  void
-  init_gui_environment (void)
-  {
-    DEFINE_GSUBR ("IGUIEnvironment_addButton_IGUIElement", 6, 0, 0,
-                  IGUIEnvironment_addButton<gui::IGUIElement*>);
-    DEFINE_GSUBR ("IGUIEnvironment_addEditBox_IGUIElement", 6, 0, 0,
-                  IGUIEnvironment_addEditBox<gui::IGUIElement*>);
-    DEFINE_GSUBR ("IGUIEnvironment_addImage_IGUIElement", 7, 0, 0,
-                  IGUIEnvironment_addImage<gui::IGUIElement*>);
-    DEFINE_GSUBR ("IGUIEnvironment_addListBox_IGUIElement", 5, 0, 0,
-                  IGUIEnvironment_addListBox<gui::IGUIElement*>);
-    DEFINE_GSUBR ("IGUIEnvironment_addScrollBar_IGUIElement", 5, 0, 0,
-                  IGUIEnvironment_addScrollBar<gui::IGUIElement*>);
-    DEFINE_GSUBR ("IGUIEnvironment_addStaticText_IGUIElement", 8, 0, 0,
-                  IGUIEnvironment_addStaticText<gui::IGUIElement*>);
-    DEFINE_GSUBR ("IGUIEnvironment_addWindow_IGUIElement", 6, 0, 0,
-                  IGUIEnvironment_addWindow<gui::IGUIElement*>);
-    DEFINE_GSUBR ("IGUIEnvironment_drawAll", 1, 0, 0, IGUIEnvironment_drawAll);
-    DEFINE_GSUBR ("IGUIEnvironment_getBuiltInFont", 1, 0, 0, IGUIEnvironment_getBuiltInFont);
-    DEFINE_GSUBR ("IGUIEnvironment_getFont", 2, 0, 0, IGUIEnvironment_getFont);
-    DEFINE_GSUBR ("IGUIEnvironment_getSkin", 1, 0, 0, IGUIEnvironment_getSkin);
-  }
-
+void
+init_gui_environment (void)
+{
+  DEFINE_GSUBR ("IGUIEnvironment_addButton_IGUIElement", 6, 0, 0,
+                IGUIEnvironment_addButton<gui::IGUIElement*>);
+  DEFINE_GSUBR ("IGUIEnvironment_addEditBox_IGUIElement", 6, 0, 0,
+                IGUIEnvironment_addEditBox<gui::IGUIElement*>);
+  DEFINE_GSUBR ("IGUIEnvironment_addImage_IGUIElement", 7, 0, 0,
+                IGUIEnvironment_addImage<gui::IGUIElement*>);
+  DEFINE_GSUBR ("IGUIEnvironment_addListBox_IGUIElement", 5, 0, 0,
+                IGUIEnvironment_addListBox<gui::IGUIElement*>);
+  DEFINE_GSUBR ("IGUIEnvironment_addScrollBar_IGUIElement", 5, 0, 0,
+                IGUIEnvironment_addScrollBar<gui::IGUIElement*>);
+  DEFINE_GSUBR ("IGUIEnvironment_addStaticText_IGUIElement", 8, 0, 0,
+                IGUIEnvironment_addStaticText<gui::IGUIElement*>);
+  DEFINE_GSUBR ("IGUIEnvironment_addWindow_IGUIElement", 6, 0, 0,
+                IGUIEnvironment_addWindow<gui::IGUIElement*>);
+  DEFINE_GSUBR ("IGUIEnvironment_drawAll", 1, 0, 0, IGUIEnvironment_drawAll);
+  DEFINE_GSUBR ("IGUIEnvironment_getBuiltInFont", 1, 0, 0, IGUIEnvironment_getBuiltInFont);
+  DEFINE_GSUBR ("IGUIEnvironment_getFont", 2, 0, 0, IGUIEnvironment_getFont);
+  DEFINE_GSUBR ("IGUIEnvironment_getSkin", 1, 0, 0, IGUIEnvironment_getSkin);
 }
index 95b927745360dd415ba731b1165c73eb80468ea2..d621b84284ad32cd358184a67e47cea09ee7df58 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_GUI_ENVIRONMENT_H_INCLUDED__
 #define __GUILE_IRRLICHT_GUI_ENVIRONMENT_H_INCLUDED__
 
-extern "C" {
-  void
-  init_gui_environment (void);
-}
+void
+init_gui_environment (void);
 
 #endif
index 028c84d19a705a8271fe46c4ac35653c31067be9..0e39bca7462f144111fc2df1305f1204c411fd03 100644 (file)
 #include "gsubr.h"
 #include "gui-in-out-fader.h"
 
-
 using namespace irr;
 
-
 SCM
 IGUIInOutFader_setColor (SCM in_out_fader,
                          SCM color,
@@ -47,13 +45,8 @@ IGUIInOutFader_setColor (SCM in_out_fader,
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_gui_in_out_fader (void)
-  {
-    DEFINE_GSUBR ("IGUIInOutFader_setColor", 2, 1, 0, IGUIInOutFader_setColor);
-  }
-
+void
+init_gui_in_out_fader (void)
+{
+  DEFINE_GSUBR ("IGUIInOutFader_setColor", 2, 1, 0, IGUIInOutFader_setColor);
 }
index 5f0db12306475f9b64f9127bcceedc23908ed2bf..1e9c4d19b7f8bb8f83ee157c56fc21f1a0d96068 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_GUI_IN_OUT_FADER_H_INCLUDED__
 #define __GUILE_IRRLICHT_GUI_IN_OUT_FADER_H_INCLUDED__
 
-extern "C" {
-  void
-  init_gui_in_out_fader (void);
-}
+void
+init_gui_in_out_fader (void);
 
 #endif
index 08b3b2230c3b981d44bbe11430b4f367968f85e7..e53ba49d0cb5139fdab0c04b766c585421cd6f22 100644 (file)
 #include "gsubr.h"
 #include "wchar.h"
 
-
 using namespace irr;
 
-
 SCM
 IGUIListBox_addItem (SCM gui_listbox,
                      SCM text,
@@ -48,13 +46,8 @@ IGUIListBox_addItem (SCM gui_listbox,
   return scm_from_uint32 (item_id);
 }
 
-
-extern "C" {
-
-  void
-  init_gui_listbox (void)
-  {
-    DEFINE_GSUBR ("IGUIListBox_addItem", 2, 1, 0, IGUIListBox_addItem);
-  }
-
+void
+init_gui_listbox (void)
+{
+  DEFINE_GSUBR ("IGUIListBox_addItem", 2, 1, 0, IGUIListBox_addItem);
 }
index 4eb425f4906bdfb19b9893598913eec8a5bce0e8..0a6d016034974ad8ab6dc7243766e4a5d31f969f 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_GUI_LISTBOX_H_INCLUDED__
 #define __GUILE_IRRLICHT_GUI_LISTBOX_H_INCLUDED__
 
-extern "C" {
-  void
-  init_gui_listbox (void);
-}
+void
+init_gui_listbox (void);
 
 #endif
index 37f4f951ff0c0e9b49100e139c8fd89c5edb9027..236dd757b8f7d139332725a2d21002cc726fec7c 100644 (file)
 #include "gui-scrollbar.h"
 #include "gsubr.h"
 
-
 using namespace irr;
 
-
 SCM
 IGUIScrollBar_getPos (SCM gui_scrollbar)
 {
@@ -35,7 +33,6 @@ IGUIScrollBar_getPos (SCM gui_scrollbar)
     (((gui::IGUIScrollBar*)scm_to_pointer (gui_scrollbar))->getPos ());
 }
 
-
 SCM
 IGUIScrollBar_setMax (SCM gui_scrollbar,
                       SCM max)
@@ -44,7 +41,6 @@ IGUIScrollBar_setMax (SCM gui_scrollbar,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 IGUIScrollBar_setPos (SCM gui_scrollbar,
                       SCM pos)
@@ -53,15 +49,10 @@ IGUIScrollBar_setPos (SCM gui_scrollbar,
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_gui_scrollbar (void)
-  {
-    DEFINE_GSUBR ("IGUIScrollBar_getPos", 1, 0, 0, IGUIScrollBar_getPos);
-    DEFINE_GSUBR ("IGUIScrollBar_setMax", 2, 0, 0, IGUIScrollBar_setMax);
-    DEFINE_GSUBR ("IGUIScrollBar_setPos", 2, 0, 0, IGUIScrollBar_setPos);
-  }
-
+void
+init_gui_scrollbar (void)
+{
+  DEFINE_GSUBR ("IGUIScrollBar_getPos", 1, 0, 0, IGUIScrollBar_getPos);
+  DEFINE_GSUBR ("IGUIScrollBar_setMax", 2, 0, 0, IGUIScrollBar_setMax);
+  DEFINE_GSUBR ("IGUIScrollBar_setPos", 2, 0, 0, IGUIScrollBar_setPos);
 }
index 421d8f3c42bf5f8c7dcedcd02d797c3a1f24e7c0..5c55a43a2855c3340b8e63ad51ccac90fc10b473 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_GUI_SCROLLBAR_H_INCLUDED__
 #define __GUILE_IRRLICHT_GUI_SCROLLBAR_H_INCLUDED__
 
-extern "C" {
-  void
-  init_gui_scrollbar (void);
-}
+void
+init_gui_scrollbar (void);
 
 #endif
index abe13f554f9e600634959e20ed0a2b1d493affb1..f6628f1b4a1eeda6a67de1377910ef8738ee5da0 100644 (file)
 #include "gsubr.h"
 #include "gui-skin.h"
 
-
 using namespace irr;
 
-
 SCM
 IGUISkin_getColor (SCM gui_skin,
                    SCM color)
@@ -38,7 +36,6 @@ IGUISkin_getColor (SCM gui_skin,
   return scm_from_color (scolor);
 }
 
-
 SCM
 IGUISkin_getFont (SCM gui_skin,
                   SCM which)
@@ -48,7 +45,6 @@ IGUISkin_getFont (SCM gui_skin,
   return scm_from_pointer ((void*) font, NULL);
 }
 
-
 SCM
 IGUISkin_setColor (SCM gui_skin,
                    SCM which,
@@ -60,7 +56,6 @@ IGUISkin_setColor (SCM gui_skin,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 IGUISkin_setFont (SCM gui_skin,
                   SCM font,
@@ -72,18 +67,13 @@ IGUISkin_setFont (SCM gui_skin,
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_gui_skin (void)
-  {
-    DEFINE_GSUBR ("IGUISkin_getColor", 2, 0, 0, IGUISkin_getColor);
-    DEFINE_GSUBR ("IGUISkin_getFont", 2, 0, 0, IGUISkin_getFont);
-    DEFINE_GSUBR ("IGUISkin_setColor", 3, 0, 0, IGUISkin_setColor);
-    DEFINE_GSUBR ("IGUISkin_setFont", 3, 0, 0, IGUISkin_setFont);
-  }
-
+void
+init_gui_skin (void)
+{
+  DEFINE_GSUBR ("IGUISkin_getColor", 2, 0, 0, IGUISkin_getColor);
+  DEFINE_GSUBR ("IGUISkin_getFont", 2, 0, 0, IGUISkin_getFont);
+  DEFINE_GSUBR ("IGUISkin_setColor", 3, 0, 0, IGUISkin_setColor);
+  DEFINE_GSUBR ("IGUISkin_setFont", 3, 0, 0, IGUISkin_setFont);
 }
 
 gui::EGUI_DEFAULT_COLOR
@@ -197,7 +187,6 @@ scm_to_default_color (SCM default_color)
     }
 }
 
-
 gui::EGUI_DEFAULT_FONT
 scm_to_default_font (SCM default_font)
 {
index 6b3a3d86851deb8f6e92b539b9c403d2647c38d1..57a31d956b7b0a6e3289615b73de303bc9c9256d 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-extern "C" {
-  void
-  init_gui_skin (void);
-}
+void
+init_gui_skin (void);
 
 irr::gui::EGUI_DEFAULT_COLOR
 scm_to_default_color (SCM default_color);
index fb3ca10862ff8ad2b5b4f0d0081e7e513a4d8345..997de689b6cc1ac84e3584fb7c3bd320c2189ef4 100644 (file)
 #include "gui-toolbar.h"
 #include "wchar.h"
 
-
 using namespace irr;
 
-
 SCM
 IGUIToolBar_addButton (SCM gui_toolbar,
                        SCM id,
@@ -51,13 +49,8 @@ IGUIToolBar_addButton (SCM gui_toolbar,
   return scm_from_pointer ((void*) button, NULL);
 }
 
-
-extern "C" {
-
-  void
-  init_gui_toolbar (void)
-  {
-    DEFINE_GSUBR ("IGUIToolBar_addButton", 8, 0, 0, IGUIToolBar_addButton);
-  }
-
+void
+init_gui_toolbar (void)
+{
+  DEFINE_GSUBR ("IGUIToolBar_addButton", 8, 0, 0, IGUIToolBar_addButton);
 }
index 537f9ce78032356a969e9804a298da0d18a59870..9f5b5749f616511084c36e0be9b73ca7184b5771 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_GUI_TOOLBAR_H_INCLUDED__
 #define __GUILE_IRRLICHT_GUI_TOOLBAR_H_INCLUDED__
 
-extern "C" {
-  void
-  init_gui_toolbar (void);
-}
+void
+init_gui_toolbar (void);
 
 #endif
diff --git a/src/gui.cpp b/src/gui.cpp
deleted file mode 100644 (file)
index 8b435df..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
-
-   Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
-
-   This file is part of guile-irrlicht.
-
-   guile-irrlicht is free software; you can redistribute it and/or modify
-   it under the terms of the GNU Lesser General Public License as
-   published by the Free Software Foundation; either version 3 of the
-   License, or (at your option) any later version.
-
-   guile-irrlicht is distributed in the hope that it will be useful, but
-   WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with guile-irrlicht. If not, see
-   <http://www.gnu.org/licenses/>.
-*/
-
-#include <irrlicht/irrlicht.h>
-#include <libguile.h>
-#include "gui.h"
-#include "gui-environment.h"
-#include "gui-in-out-fader.h"
-#include "gui-listbox.h"
-#include "gui-scrollbar.h"
-#include "gui-skin.h"
-#include "gui-toolbar.h"
-
-
-extern "C" {
-
-  void
-  init_gui (void)
-  {
-    init_gui_environment ();
-    init_gui_in_out_fader ();
-    init_gui_listbox ();
-    init_gui_scrollbar ();
-    init_gui_skin ();
-    init_gui_toolbar ();
-  }
-
-}
diff --git a/src/gui.h b/src/gui.h
deleted file mode 100644 (file)
index b1a3bea..0000000
--- a/src/gui.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
-
-   Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
-
-   This file is part of guile-irrlicht.
-
-   guile-irrlicht is free software; you can redistribute it and/or modify
-   it under the terms of the GNU Lesser General Public License as
-   published by the Free Software Foundation; either version 3 of the
-   License, or (at your option) any later version.
-
-   guile-irrlicht is distributed in the hope that it will be useful, but
-   WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with guile-irrlicht. If not, see
-   <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __GUILE_IRRLICHT_GUI_H_INCLUDED__
-#define __GUILE_IRRLICHT_GUI_H_INCLUDED__
-
-extern "C" {
-  void
-  init_gui (void);
-}
-
-#endif
index ea8aa852ddf1b7bcf12ac896e1e6c31caf40a425..be39e7f458eff78587b349471db1c52f20c85967 100644 (file)
 #include "cursor-control.h"
 #include "device.h"
 #include "event-receiver.h"
-#include "gui.h"
+#include "file-system.h"
+#include "gui-environment.h"
+#include "gui-in-out-fader.h"
+#include "gui-listbox.h"
+#include "gui-scrollbar.h"
+#include "gui-skin.h"
+#include "gui-toolbar.h"
 #include "guile-irrlicht.h"
-#include "io.h"
 #include "material.h"
 #include "reference-counted.h"
 #include "scene-manager.h"
@@ -49,8 +54,13 @@ extern "C" {
     init_cursor_control ();
     init_device ();
     init_event_receiver ();
-    init_gui ();
-    init_io ();
+    init_file_system ();
+    init_gui_environment ();
+    init_gui_in_out_fader ();
+    init_gui_listbox ();
+    init_gui_scrollbar ();
+    init_gui_skin ();
+    init_gui_toolbar ();
     init_material ();
     init_reference_counted ();
     init_scene_manager ();
diff --git a/src/io.cpp b/src/io.cpp
deleted file mode 100644 (file)
index caa8ea1..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
-
-   Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
-
-   This file is part of guile-irrlicht.
-
-   guile-irrlicht is free software; you can redistribute it and/or modify
-   it under the terms of the GNU Lesser General Public License as
-   published by the Free Software Foundation; either version 3 of the
-   License, or (at your option) any later version.
-
-   guile-irrlicht is distributed in the hope that it will be useful, but
-   WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with guile-irrlicht. If not, see
-   <http://www.gnu.org/licenses/>.
-*/
-
-#include "file-system.h"
-#include "io.h"
-
-extern "C" {
-
-  void
-  init_io (void)
-  {
-    init_file_system ();
-  }
-
-}
diff --git a/src/io.h b/src/io.h
deleted file mode 100644 (file)
index d854d6f..0000000
--- a/src/io.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
-
-   Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
-
-   This file is part of guile-irrlicht.
-
-   guile-irrlicht is free software; you can redistribute it and/or modify
-   it under the terms of the GNU Lesser General Public License as
-   published by the Free Software Foundation; either version 3 of the
-   License, or (at your option) any later version.
-
-   guile-irrlicht is distributed in the hope that it will be useful, but
-   WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with guile-irrlicht. If not, see
-   <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef __GUILE_IRRLICHT_IO_H_INCLUDED__
-#define __GUILE_IRRLICHT_IO_H_INCLUDED__
-
-extern "C" {
-  void
-  init_io (void);
-}
-
-#endif
index 372ac5a61390b2bc830c280ff13c7af7b294f961..0f1d13294284053a753ea03695910c7906711d34 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-
 using namespace irr;
 
-
 SCM
 scm_from_key_code (EKEY_CODE key_code)
 {
index 71fe9a42a215db5ea4e62870c7e51d5336dfd784..0b28f00d31e6d98c97022aada9f218b9244e8669 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-
 using namespace irr;
 
-
 video::E_MATERIAL_FLAG
 scm_to_material_flag (SCM material_flag)
 {
index 07d3b618ac94c616cec04a1952964276230eff40..19511f888bb5df97193c5ef0bcefa59945d34d1a 100644 (file)
 #include <libguile.h>
 #include "material-types.h"
 
-
 using namespace irr;
 
-
 video::E_MATERIAL_TYPE
 scm_to_material_type (SCM material_type)
 {
index 4be4054a550d9e7a7893fc44edadbccbc9e1fdd6..72467acc7f39572b50a8c3f53ccc0404b1fd8578 100644 (file)
 #include "material.h"
 #include "material-types.h"
 
-
 using namespace irr;
 
-
 SCM
 video_SMaterial_make (SCM rest)
 {
@@ -121,18 +119,12 @@ video_SMaterial_make (SCM rest)
   return scm_from_pointer ((void*) material, NULL);
 }
 
-
-extern "C" {
-
-  void
-  init_material (void)
-  {
-    DEFINE_GSUBR ("video_SMaterial_make", 0, 0, 1, video_SMaterial_make);
-  }
-
+void
+init_material (void)
+{
+  DEFINE_GSUBR ("video_SMaterial_make", 0, 0, 1, video_SMaterial_make);
 }
 
-
 video::E_ANTI_ALIASING_MODE
 scm_to_anti_aliasing_mode (SCM anti_aliasing_mode)
 {
@@ -172,7 +164,6 @@ scm_to_anti_aliasing_mode (SCM anti_aliasing_mode)
     }
 }
 
-
 video::E_BLEND_OPERATION
 scm_to_blend_operation (SCM blend_operation)
 {
@@ -224,7 +215,6 @@ scm_to_blend_operation (SCM blend_operation)
     }
 }
 
-
 video::E_COLOR_MATERIAL
 scm_to_color_material (SCM color_material)
 {
@@ -260,7 +250,6 @@ scm_to_color_material (SCM color_material)
     }
 }
 
-
 video::E_COLOR_PLANE
 scm_to_color_plane (SCM color_plane)
 {
@@ -300,7 +289,6 @@ scm_to_color_plane (SCM color_plane)
     }
 }
 
-
 video::E_COMPARISON_FUNC
 scm_to_comparison_func (SCM comparison_func)
 {
@@ -344,7 +332,6 @@ scm_to_comparison_func (SCM comparison_func)
     }
 }
 
-
 video::E_POLYGON_OFFSET
 scm_to_polygon_offset (SCM polygon_offset)
 {
index b94ffb1daeaae14e14247e13bf1483dde7350821..15c63452eae36256d814b58568a6913ee3481fac 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-extern "C" {
-  void
-  init_material (void);
-}
+void
+init_material (void);
 
 irr::video::E_ANTI_ALIASING_MODE
 scm_to_anti_aliasing_mode (SCM anti_aliasing_mode);
index 67d58ed81aff315ce9960e87ad75a22ad34b7200..4506166cd138ef08cacbbf66f42806f3bb96eb8d 100644 (file)
 #include <libguile.h>
 #include "matrix4.h"
 
-
 using namespace irr;
 
-
 SCM
 scm_from_matrix4 (core::matrix4 cmatrix)
 {
@@ -48,7 +46,6 @@ scm_from_matrix4 (core::matrix4 cmatrix)
                                  scm_from_double (cmatrix[15])));
 }
 
-
 core::matrix4
 scm_to_matrix4 (SCM matrix)
 {
index 0e41c50047e75da3f98b002241e6dd3ff6c2047b..4d063d434b51bc9b35fdd2fbd16821a52b736418 100644 (file)
 #include <libguile.h>
 #include "position2d.h"
 
-
 using namespace irr;
 
-
 SCM
 scm_from_position2d_s32 (core::position2d<s32> position2d)
 {
index 8cd2a505abdfe3714fe51b01b17456af30991e8c..9704803ad49ad2319a50412274a232f6c4e6d963 100644 (file)
 #include <libguile.h>
 #include "primitive-types.h"
 
-
 using namespace irr;
 
-
 scene::E_PRIMITIVE_TYPE
 scm_to_primitive_type (SCM primitive_type)
 {
index 892afc8a4687b4ce42dcb04b51a79d528879bb0f..ce109c613c925ff78ad45299844389fb1b7c2982 100644 (file)
 #include <libguile.h>
 #include "rect.h"
 
-
 using namespace irr;
 
-
 core::rect<s32>
 scm_to_rect_s32 (SCM rect)
 {
index ea019b0d27418139cc68c187eab4d221bf1e2f5d..1bdc8daf8737de65dc5791d363a18a6f68d29262 100644 (file)
 #include "gsubr.h"
 #include "reference-counted.h"
 
-
 using namespace irr;
 
-
 template <typename T>
 SCM
 IReferenceCounted_drop (SCM obj)
@@ -35,13 +33,8 @@ IReferenceCounted_drop (SCM obj)
   return scm_from_bool (((T) scm_to_pointer (obj))->drop ());
 }
 
-
-extern "C" {
-
-  void
-  init_reference_counted (void)
-  {
-    DEFINE_GSUBR ("IrrlichtDevice_drop", 1, 0, 0, IReferenceCounted_drop<IrrlichtDevice*>);
-  }
-
+void
+init_reference_counted (void)
+{
+  DEFINE_GSUBR ("IrrlichtDevice_drop", 1, 0, 0, IReferenceCounted_drop<IrrlichtDevice*>);
 }
index 47cf799ca2d1712a67c963bddb95453eb5bd7b5f..6c0a87f4aca53d419c585075c4912aa1ae94c31f 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_REFERENCE_COUNTED_H_INCLUDED__
 #define __GUILE_IRRLICHT_REFERENCE_COUNTED_H_INCLUDED__
 
-extern "C" {
-  void
-  init_reference_counted (void);
-}
+void
+init_reference_counted (void);
 
 #endif
index f96938389ceeb51816574eb28f56924882cf693f..427faf57c5e7fb0b9031086d2d2412e2fe5b8b65 100644 (file)
 #include "scene-manager.h"
 #include "vector3d.h"
 
-
 using namespace irr;
 
-
 template <typename TParent>
 SCM
 ISceneManager_addAnimatedMeshSceneNode (SCM scene_manager,
@@ -52,7 +50,6 @@ ISceneManager_addAnimatedMeshSceneNode (SCM scene_manager,
   return scm_from_pointer ((void*) node, NULL);
 }
 
-
 template <typename TParent>
 SCM
 ISceneManager_addCameraSceneNode (SCM scene_manager,
@@ -72,7 +69,6 @@ ISceneManager_addCameraSceneNode (SCM scene_manager,
   return scm_from_pointer ((void*) camera, NULL);
 }
 
-
 template <typename TParent>
 SCM
 ISceneManager_addCameraSceneNodeFPS (SCM scene_manager,
@@ -118,7 +114,6 @@ ISceneManager_addCameraSceneNodeFPS (SCM scene_manager,
   return scm_from_pointer ((void*) camera, NULL);
 }
 
-
 template <typename TParent>
 SCM
 ISceneManager_addCubeSceneNode (SCM scene_manager,
@@ -140,7 +135,6 @@ ISceneManager_addCubeSceneNode (SCM scene_manager,
   return scm_from_pointer ((void*) node, NULL);
 }
 
-
 template <typename TParent>
 SCM
 ISceneManager_addCustomSceneNode (SCM scene_manager,
@@ -226,7 +220,6 @@ ISceneManager_addCustomSceneNode (SCM scene_manager,
   return scm_from_pointer ((void*) node, NULL);
 }
 
-
 template <typename TParent, typename TMesh>
 SCM
 ISceneManager_addOctreeSceneNode (SCM scene_manager,
@@ -246,7 +239,6 @@ ISceneManager_addOctreeSceneNode (SCM scene_manager,
   return scm_from_pointer ((void*) node, NULL);
 }
 
-
 template <typename TParent>
 SCM
 ISceneManager_addSphereSceneNode (SCM scene_manager,
@@ -270,7 +262,6 @@ ISceneManager_addSphereSceneNode (SCM scene_manager,
   return scm_from_pointer ((void*) node, NULL);
 }
 
-
 SCM
 ISceneManager_createFlyCircleAnimator (SCM scene_manager,
                                        SCM center,
@@ -291,7 +282,6 @@ ISceneManager_createFlyCircleAnimator (SCM scene_manager,
   return scm_from_pointer ((void*) anim, NULL);
 }
 
-
 SCM
 ISceneManager_createFlyStraightAnimator (SCM scene_manager,
                                          SCM start_point,
@@ -310,7 +300,6 @@ ISceneManager_createFlyStraightAnimator (SCM scene_manager,
   return scm_from_pointer ((void*) anim, NULL);
 }
 
-
 SCM
 ISceneManager_createRotationAnimator (SCM scene_manager,
                                       SCM rotation_speed)
@@ -321,7 +310,6 @@ ISceneManager_createRotationAnimator (SCM scene_manager,
   return scm_from_pointer ((void*) anim, NULL);
 }
 
-
 SCM
 ISceneManager_drawAll (SCM scene_manager)
 {
@@ -329,7 +317,6 @@ ISceneManager_drawAll (SCM scene_manager)
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 ISceneManager_getMesh (SCM scene_manager,
                        SCM filename)
@@ -339,7 +326,6 @@ ISceneManager_getMesh (SCM scene_manager,
   return scm_from_pointer ((void*) mesh, NULL);
 }
 
-
 SCM
 ISceneManager_getRootSceneNode (SCM scene_manager)
 {
@@ -347,37 +333,32 @@ ISceneManager_getRootSceneNode (SCM scene_manager)
   return scm_from_pointer ((void*) smgr->getRootSceneNode (), NULL);
 }
 
-
-extern "C" {
-
-  void
-  init_scene_manager (void)
-  {
-    DEFINE_GSUBR ("ISceneManager_addAnimatedMeshSceneNode_ISceneNode", 8, 0, 0,
-                  ISceneManager_addAnimatedMeshSceneNode<scene::ISceneNode*>);
-    DEFINE_GSUBR ("ISceneManager_addCameraSceneNode_ISceneNode", 6, 0, 0,
-                  ISceneManager_addCameraSceneNode<scene::ISceneNode*>);
-    DEFINE_GSUBR ("ISceneManager_addCameraSceneNodeFPS_ISceneNode", 1, 0, 1,
-                  ISceneManager_addCameraSceneNodeFPS<scene::ISceneNode*>);
-    DEFINE_GSUBR ("ISceneManager_addCubeSceneNode_ISceneNode", 7, 0, 0,
-                  ISceneManager_addCubeSceneNode<scene::ISceneNode*>);
-    DEFINE_GSUBR ("ISceneManager_addCustomSceneNode_ISceneNode", 10, 0, 0,
-                  ISceneManager_addCustomSceneNode<scene::ISceneNode*>);
-    DEFINE_GSUBR ("ISceneManager_addOctreeSceneNode_ISceneNode_IAnimatedMesh", 6, 0, 0,
-                  (ISceneManager_addOctreeSceneNode<scene::ISceneNode*, scene::IAnimatedMesh*>));
-    DEFINE_GSUBR ("ISceneManager_addOctreeSceneNode_ISceneNode_IMesh", 6, 0, 0,
-                  (ISceneManager_addOctreeSceneNode<scene::ISceneNode*, scene::IMesh*>));
-    DEFINE_GSUBR ("ISceneManager_addSphereSceneNode_ISceneNode", 8, 0, 0,
-                  ISceneManager_addSphereSceneNode<scene::ISceneNode*>);
-    DEFINE_GSUBR ("ISceneManager_createFlyCircleAnimator", 7, 0, 0,
-                  ISceneManager_createFlyCircleAnimator);
-    DEFINE_GSUBR ("ISceneManager_createFlyStraightAnimator", 6, 0, 0,
-                  ISceneManager_createFlyStraightAnimator);
-    DEFINE_GSUBR ("ISceneManager_createRotationAnimator", 2, 0, 0,
-                  ISceneManager_createRotationAnimator);
-    DEFINE_GSUBR ("ISceneManager_drawAll", 1, 0, 0, ISceneManager_drawAll);
-    DEFINE_GSUBR ("ISceneManager_getMesh", 2, 0, 0, ISceneManager_getMesh);
-    DEFINE_GSUBR ("ISceneManager_getRootSceneNode", 1, 0, 0, ISceneManager_getRootSceneNode);
-  }
-
+void
+init_scene_manager (void)
+{
+  DEFINE_GSUBR ("ISceneManager_addAnimatedMeshSceneNode_ISceneNode", 8, 0, 0,
+                ISceneManager_addAnimatedMeshSceneNode<scene::ISceneNode*>);
+  DEFINE_GSUBR ("ISceneManager_addCameraSceneNode_ISceneNode", 6, 0, 0,
+                ISceneManager_addCameraSceneNode<scene::ISceneNode*>);
+  DEFINE_GSUBR ("ISceneManager_addCameraSceneNodeFPS_ISceneNode", 1, 0, 1,
+                ISceneManager_addCameraSceneNodeFPS<scene::ISceneNode*>);
+  DEFINE_GSUBR ("ISceneManager_addCubeSceneNode_ISceneNode", 7, 0, 0,
+                ISceneManager_addCubeSceneNode<scene::ISceneNode*>);
+  DEFINE_GSUBR ("ISceneManager_addCustomSceneNode_ISceneNode", 10, 0, 0,
+                ISceneManager_addCustomSceneNode<scene::ISceneNode*>);
+  DEFINE_GSUBR ("ISceneManager_addOctreeSceneNode_ISceneNode_IAnimatedMesh", 6, 0, 0,
+                (ISceneManager_addOctreeSceneNode<scene::ISceneNode*, scene::IAnimatedMesh*>));
+  DEFINE_GSUBR ("ISceneManager_addOctreeSceneNode_ISceneNode_IMesh", 6, 0, 0,
+                (ISceneManager_addOctreeSceneNode<scene::ISceneNode*, scene::IMesh*>));
+  DEFINE_GSUBR ("ISceneManager_addSphereSceneNode_ISceneNode", 8, 0, 0,
+                ISceneManager_addSphereSceneNode<scene::ISceneNode*>);
+  DEFINE_GSUBR ("ISceneManager_createFlyCircleAnimator", 7, 0, 0,
+                ISceneManager_createFlyCircleAnimator);
+  DEFINE_GSUBR ("ISceneManager_createFlyStraightAnimator", 6, 0, 0,
+                ISceneManager_createFlyStraightAnimator);
+  DEFINE_GSUBR ("ISceneManager_createRotationAnimator", 2, 0, 0,
+                ISceneManager_createRotationAnimator);
+  DEFINE_GSUBR ("ISceneManager_drawAll", 1, 0, 0, ISceneManager_drawAll);
+  DEFINE_GSUBR ("ISceneManager_getMesh", 2, 0, 0, ISceneManager_getMesh);
+  DEFINE_GSUBR ("ISceneManager_getRootSceneNode", 1, 0, 0, ISceneManager_getRootSceneNode);
 }
index 8722c8f5c21358a33dae231c5ada60be7a568d33..4643336a6f5892000e4e6567d71abeb2ea5b2d84 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_SCENE_MANAGER_H_INCLUDED__
 #define __GUILE_IRRLICHT_SCENE_MANAGER_H_INCLUDED__
 
-extern "C" {
-  void
-  init_scene_manager (void);
-}
+void
+init_scene_manager (void);
 
 #endif
index 0caea376d6837f06d7a8d70c32bd92ca35cac3f8..29d5214b208b418c417be8d2dfc22fc4d91c6b51 100644 (file)
 #include "scene-node.h"
 #include "vector3d.h"
 
-
 using namespace irr;
 
-
 template <typename TSceneNode>
 SCM
 ISceneNode_addAnimator (SCM scene_node,
@@ -41,7 +39,6 @@ ISceneNode_addAnimator (SCM scene_node,
   return SCM_UNSPECIFIED;
 }
 
-
 template <typename TSceneNode>
 SCM
 ISceneNode_getAbsoluteTransformation (SCM scene_node)
@@ -50,7 +47,6 @@ ISceneNode_getAbsoluteTransformation (SCM scene_node)
   return scm_from_matrix4 (node->getAbsoluteTransformation ());
 }
 
-
 template <typename TSceneNode>
 SCM
 ISceneNode_getPosition (SCM scene_node)
@@ -59,7 +55,6 @@ ISceneNode_getPosition (SCM scene_node)
   return scm_from_vector3df (node->getPosition ());
 }
 
-
 template <typename TSceneNode>
 SCM
 ISceneNode_setMaterialFlag (SCM scene_node,
@@ -71,7 +66,6 @@ ISceneNode_setMaterialFlag (SCM scene_node,
   return SCM_UNSPECIFIED;
 }
 
-
 template <typename TSceneNode>
 SCM
 ISceneNode_setMaterialTexture (SCM scene_node,
@@ -84,7 +78,6 @@ ISceneNode_setMaterialTexture (SCM scene_node,
   return SCM_UNSPECIFIED;
 }
 
-
 template <typename TSceneNode>
 SCM
 ISceneNode_setPosition (SCM scene_node,
@@ -95,7 +88,6 @@ ISceneNode_setPosition (SCM scene_node,
   return SCM_UNSPECIFIED;
 }
 
-
 template <typename TSceneNode>
 SCM
 ISceneNode_setRotation (SCM scene_node,
@@ -106,7 +98,6 @@ ISceneNode_setRotation (SCM scene_node,
   return SCM_UNSPECIFIED;
 }
 
-
 template <typename TSceneNode>
 SCM
 ISceneNode_setScale (SCM scene_node,
@@ -117,57 +108,52 @@ ISceneNode_setScale (SCM scene_node,
   return SCM_UNSPECIFIED;
 }
 
-
-extern "C" {
-
-  void
-  init_scene_node (void)
-  {
-    DEFINE_GSUBR ("IAnimatedMeshSceneNode_addAnimator", 2, 0, 0,
-                  ISceneNode_addAnimator<scene::IAnimatedMeshSceneNode*>);
-    DEFINE_GSUBR ("IMeshSceneNode_addAnimator", 2, 0, 0,
-                  ISceneNode_addAnimator<scene::IMeshSceneNode*>);
-    DEFINE_GSUBR ("ISceneNode_addAnimator", 2, 0, 0,
-                  ISceneNode_addAnimator<scene::ISceneNode*>);
-
-    DEFINE_GSUBR ("ISceneNode_getAbsoluteTransformation", 1, 0, 0,
-                  ISceneNode_getAbsoluteTransformation<scene::ISceneNode*>);
-
-    DEFINE_GSUBR ("IMeshSceneNode_getPosition", 1, 0, 0,
-                  ISceneNode_getPosition<scene::IMeshSceneNode*>);
-    DEFINE_GSUBR ("ISceneNode_getPosition", 1, 0, 0,
-                  ISceneNode_getPosition<scene::ISceneNode*>);
-
-    DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMaterialFlag", 3, 0, 0,
-                  ISceneNode_setMaterialFlag<scene::IAnimatedMeshSceneNode*>);
-    DEFINE_GSUBR ("IMeshSceneNode_setMaterialFlag", 3, 0, 0,
-                  ISceneNode_setMaterialFlag<scene::IMeshSceneNode*>);
-    DEFINE_GSUBR ("ISceneNode_setMaterialFlag", 3, 0, 0,
-                  ISceneNode_setMaterialFlag<scene::ISceneNode*>);
-
-    DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMaterialTexture", 3, 0, 0,
-                  ISceneNode_setMaterialTexture<scene::IAnimatedMeshSceneNode*>);
-    DEFINE_GSUBR ("IMeshSceneNode_setMaterialTexture", 3, 0, 0,
-                  ISceneNode_setMaterialTexture<scene::IMeshSceneNode*>);
-    DEFINE_GSUBR ("ISceneNode_setMaterialTexture", 3, 0, 0,
-                  ISceneNode_setMaterialTexture<scene::ISceneNode*>);
-
-    DEFINE_GSUBR ("IMeshSceneNode_setPosition", 2, 0, 0,
-                  ISceneNode_setPosition<scene::IMeshSceneNode*>);
-    DEFINE_GSUBR ("ISceneNode_setPosition", 2, 0, 0,
-                  ISceneNode_setPosition<scene::ISceneNode*>);
-
-    DEFINE_GSUBR ("IAnimatedMeshSceneNode_setRotation", 2, 0, 0,
-                  ISceneNode_setRotation<scene::IAnimatedMeshSceneNode*>);
-    DEFINE_GSUBR ("ICameraSceneNode_setRotation", 2, 0, 0,
-                  ISceneNode_setRotation<scene::ICameraSceneNode*>);
-    DEFINE_GSUBR ("ISceneNode_setRotation", 2, 0, 0,
-                  ISceneNode_setRotation<scene::ISceneNode*>);
-
-    DEFINE_GSUBR ("IAnimatedMeshSceneNode_setScale", 2, 0, 0,
-                  ISceneNode_setScale<scene::IAnimatedMeshSceneNode*>);
-    DEFINE_GSUBR ("ISceneNode_setScale", 2, 0, 0,
-                  ISceneNode_setScale<scene::ISceneNode*>);
-  }
-
+void
+init_scene_node (void)
+{
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_addAnimator", 2, 0, 0,
+                ISceneNode_addAnimator<scene::IAnimatedMeshSceneNode*>);
+  DEFINE_GSUBR ("IMeshSceneNode_addAnimator", 2, 0, 0,
+                ISceneNode_addAnimator<scene::IMeshSceneNode*>);
+  DEFINE_GSUBR ("ISceneNode_addAnimator", 2, 0, 0,
+                ISceneNode_addAnimator<scene::ISceneNode*>);
+
+  DEFINE_GSUBR ("ISceneNode_getAbsoluteTransformation", 1, 0, 0,
+                ISceneNode_getAbsoluteTransformation<scene::ISceneNode*>);
+
+  DEFINE_GSUBR ("IMeshSceneNode_getPosition", 1, 0, 0,
+                ISceneNode_getPosition<scene::IMeshSceneNode*>);
+  DEFINE_GSUBR ("ISceneNode_getPosition", 1, 0, 0,
+                ISceneNode_getPosition<scene::ISceneNode*>);
+
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMaterialFlag", 3, 0, 0,
+                ISceneNode_setMaterialFlag<scene::IAnimatedMeshSceneNode*>);
+  DEFINE_GSUBR ("IMeshSceneNode_setMaterialFlag", 3, 0, 0,
+                ISceneNode_setMaterialFlag<scene::IMeshSceneNode*>);
+  DEFINE_GSUBR ("ISceneNode_setMaterialFlag", 3, 0, 0,
+                ISceneNode_setMaterialFlag<scene::ISceneNode*>);
+
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_setMaterialTexture", 3, 0, 0,
+                ISceneNode_setMaterialTexture<scene::IAnimatedMeshSceneNode*>);
+  DEFINE_GSUBR ("IMeshSceneNode_setMaterialTexture", 3, 0, 0,
+                ISceneNode_setMaterialTexture<scene::IMeshSceneNode*>);
+  DEFINE_GSUBR ("ISceneNode_setMaterialTexture", 3, 0, 0,
+                ISceneNode_setMaterialTexture<scene::ISceneNode*>);
+
+  DEFINE_GSUBR ("IMeshSceneNode_setPosition", 2, 0, 0,
+                ISceneNode_setPosition<scene::IMeshSceneNode*>);
+  DEFINE_GSUBR ("ISceneNode_setPosition", 2, 0, 0,
+                ISceneNode_setPosition<scene::ISceneNode*>);
+
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_setRotation", 2, 0, 0,
+                ISceneNode_setRotation<scene::IAnimatedMeshSceneNode*>);
+  DEFINE_GSUBR ("ICameraSceneNode_setRotation", 2, 0, 0,
+                ISceneNode_setRotation<scene::ICameraSceneNode*>);
+  DEFINE_GSUBR ("ISceneNode_setRotation", 2, 0, 0,
+                ISceneNode_setRotation<scene::ISceneNode*>);
+
+  DEFINE_GSUBR ("IAnimatedMeshSceneNode_setScale", 2, 0, 0,
+                ISceneNode_setScale<scene::IAnimatedMeshSceneNode*>);
+  DEFINE_GSUBR ("ISceneNode_setScale", 2, 0, 0,
+                ISceneNode_setScale<scene::ISceneNode*>);
 }
index 0ff17be556c435cab2c59aff5af9990200fb6549..e333075676148a642d657346010f47338e454032 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_SCENE_NODE_H_INCLUDED__
 #define __GUILE_IRRLICHT_SCENE_NODE_H_INCLUDED__
 
-extern "C" {
-  void
-  init_scene_node (void);
-}
+void
+init_scene_node (void);
 
 #endif
index 48ea549e1c234f0e557e854723b5630858d8ef62..4a042543fae29f0d5c9a32fea95500deb3600b74 100644 (file)
 #include "gsubr.h"
 #include "timer.h"
 
-
 using namespace irr;
 
-
 SCM
 ITimer_getTime (SCM timer)
 {
   return scm_from_uint32 (((ITimer*) scm_to_pointer (timer))->getTime());
 }
 
-
-extern "C" {
-
-  void
-  init_timer (void)
-  {
-    DEFINE_GSUBR ("ITimer_getTime", 1, 0, 0, ITimer_getTime);
-  }
-
+void
+init_timer (void)
+{
+  DEFINE_GSUBR ("ITimer_getTime", 1, 0, 0, ITimer_getTime);
 }
index fbae584b36388543c6e136ae9a8d89addc49b0a4..501bf137c893b0c1cc1cd6a3c33dfce1c908c9c7 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef __GUILE_IRRLICHT_TIMER_H_INCLUDED__
 #define __GUILE_IRRLICHT_TIMER_H_INCLUDED__
 
-extern "C" {
-  void
-  init_timer (void);
-}
+void
+init_timer (void);
 
 #endif
index 4e08818ee56dc7cdd520aa23e276b71ca4fd798c..52e8dcce4b686e52750b67a598d7f512f0389bf0 100644 (file)
 #include <libguile.h>
 #include "vector2d.h"
 
-
 using namespace irr;
 
-
 core::vector2df
 scm_to_vector2df (SCM vector2d)
 {
index a192ca6a7b9fc72b433ff7477a1c46722cfac1c8..566a441e19ce2dd22a135c319b38dc0cc85451f6 100644 (file)
 #include <libguile.h>
 #include "vector3d.h"
 
-
 using namespace irr;
 
-
 SCM
 scm_from_vector3df (core::vector3df vector3d)
 {
@@ -35,7 +33,6 @@ scm_from_vector3df (core::vector3df vector3d)
                      scm_from_double (vector3d.Z));
 }
 
-
 core::vector3df
 scm_to_vector3df (SCM vector3d)
 {
index d7629eafc43f5c7ba3ce720b819df45d5da4418d..649bc56e3f458d6a9d0510774cfaad8ff6c3c83a 100644 (file)
 #include "vector3d.h"
 #include "vertex3d.h"
 
-
 using namespace irr;
 
-
 SCM
 video_S3DVertex_make (SCM position,
                       SCM normal,
@@ -45,26 +43,19 @@ video_S3DVertex_make (SCM position,
   return scm_from_pointer ((void*) vertex, NULL);
 }
 
-
 SCM
 video_S3DVertex_Pos (SCM vertex) {
   video::S3DVertex* s3dvertex = (video::S3DVertex*) scm_to_pointer (vertex);
   return scm_from_vector3df (s3dvertex->Pos);
 }
 
-
-extern "C" {
-
-  void
-  init_vertex3d (void)
-  {
-    DEFINE_GSUBR ("video_S3DVertex_make", 4, 0, 0, video_S3DVertex_make);
-    DEFINE_GSUBR ("video_S3DVertex_Pos", 1, 0, 0, video_S3DVertex_Pos);
-  }
-
+void
+init_vertex3d (void)
+{
+  DEFINE_GSUBR ("video_S3DVertex_make", 4, 0, 0, video_S3DVertex_make);
+  DEFINE_GSUBR ("video_S3DVertex_Pos", 1, 0, 0, video_S3DVertex_Pos);
 }
 
-
 video::E_VERTEX_TYPE
 scm_to_vertex_type (SCM vertex_type)
 {
index 4e8bb2076e79c7f745457a62e70097c8e700f33d..adca1ea79bed3bdf74a5e2e055a5594ab6390039 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-extern "C" {
-  void
-  init_vertex3d (void);
-}
+void
+init_vertex3d (void);
 
 irr::video::E_VERTEX_TYPE
 scm_to_vertex_type (SCM vertex_type);
index e2cb9cf332809d62f82a4adb01966ae40a8e0bda..6ec018338454b7c408a2ca27e7e15690488db7c7 100644 (file)
 #include "vertex3d.h"
 #include "video-driver.h"
 
-
 using namespace irr;
 
-
 SCM
 IVideoDriver_beginScene (SCM video_driver,
                          SCM back_buffer,
@@ -58,7 +56,6 @@ IVideoDriver_beginScene (SCM video_driver,
                                             sourceRectAddress));
 }
 
-
 SCM
 IVideoDriver_drawVertexPrimitiveList (SCM video_driver,
                                       SCM vertices,
@@ -102,7 +99,6 @@ IVideoDriver_drawVertexPrimitiveList (SCM video_driver,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 IVideoDriver_endScene (SCM video_driver)
 {
@@ -110,7 +106,6 @@ IVideoDriver_endScene (SCM video_driver)
   return scm_from_bool (driver->endScene ());
 }
 
-
 SCM
 IVideoDriver_getFPS (SCM video_driver)
 {
@@ -118,7 +113,6 @@ IVideoDriver_getFPS (SCM video_driver)
   return scm_from_int32 (driver->getFPS ());
 }
 
-
 SCM
 IVideoDriver_getTexture (SCM video_driver,
                          SCM filename)
@@ -128,7 +122,6 @@ IVideoDriver_getTexture (SCM video_driver,
   return scm_from_pointer ((void*) texture, NULL);
 }
 
-
 SCM
 IVideoDriver_setMaterial (SCM video_driver,
                           SCM material)
@@ -138,7 +131,6 @@ IVideoDriver_setMaterial (SCM video_driver,
   return SCM_UNSPECIFIED;
 }
 
-
 SCM
 IVideoDriver_setTransform (SCM video_driver,
                            SCM state,
@@ -151,21 +143,17 @@ IVideoDriver_setTransform (SCM video_driver,
 }
 
 
-extern "C" {
-
-  void
-  init_video_driver (void)
-  {
-    DEFINE_GSUBR ("IVideoDriver_beginScene", 6, 0, 0, IVideoDriver_beginScene);
-    DEFINE_GSUBR ("IVideoDriver_drawVertexPrimitiveList", 5, 0, 1,
-                  IVideoDriver_drawVertexPrimitiveList);
-    DEFINE_GSUBR ("IVideoDriver_endScene", 1, 0, 0, IVideoDriver_endScene);
-    DEFINE_GSUBR ("IVideoDriver_getFPS", 1, 0, 0, IVideoDriver_getFPS);
-    DEFINE_GSUBR ("IVideoDriver_getTexture", 2, 0, 0, IVideoDriver_getTexture);
-    DEFINE_GSUBR ("IVideoDriver_setMaterial", 2, 0, 0, IVideoDriver_setMaterial);
-    DEFINE_GSUBR ("IVideoDriver_setTransform", 3, 0, 0, IVideoDriver_setTransform);
-  }
-
+void
+init_video_driver (void)
+{
+  DEFINE_GSUBR ("IVideoDriver_beginScene", 6, 0, 0, IVideoDriver_beginScene);
+  DEFINE_GSUBR ("IVideoDriver_drawVertexPrimitiveList", 5, 0, 1,
+                IVideoDriver_drawVertexPrimitiveList);
+  DEFINE_GSUBR ("IVideoDriver_endScene", 1, 0, 0, IVideoDriver_endScene);
+  DEFINE_GSUBR ("IVideoDriver_getFPS", 1, 0, 0, IVideoDriver_getFPS);
+  DEFINE_GSUBR ("IVideoDriver_getTexture", 2, 0, 0, IVideoDriver_getTexture);
+  DEFINE_GSUBR ("IVideoDriver_setMaterial", 2, 0, 0, IVideoDriver_setMaterial);
+  DEFINE_GSUBR ("IVideoDriver_setTransform", 3, 0, 0, IVideoDriver_setTransform);
 }
 
 video::E_TRANSFORMATION_STATE
index d1b4babf824029369d95a192b786c59e6f5871f6..05dcf137a21f98a9d357aadcf841b918e3866203 100644 (file)
 #include <irrlicht/irrlicht.h>
 #include <libguile.h>
 
-extern "C" {
-  void
-  init_video_driver (void);
-}
+void
+init_video_driver (void);
 
 irr::video::E_TRANSFORMATION_STATE
 scm_to_transformation_state (SCM transformation_state);