]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - src/gui-skin.cpp
clean code
[guile-irrlicht.git] / src / gui-skin.cpp
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)
 {