]> git.jsancho.org Git - gacela.git/commitdiff
Nuevo Gacela con Gnu Guile (de momento sin threads)
authorjsancho <devnull@localhost>
Sat, 30 Apr 2011 11:04:21 +0000 (11:04 +0000)
committerjsancho <devnull@localhost>
Sat, 30 Apr 2011 11:04:21 +0000 (11:04 +0000)
gacela.c [deleted file]
gacela_SDL.c [deleted file]
gacela_SDL.h [deleted file]
src/gacela.c [new file with mode: 0644]
src/gacela_SDL.c [new file with mode: 0644]
src/gacela_SDL.h [new file with mode: 0644]

diff --git a/gacela.c b/gacela.c
deleted file mode 100644 (file)
index 45c83a1..0000000
--- a/gacela.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <GL/gl.h>
-#include <libguile.h>
-#include "gacela_SDL.h"
-
-static void*
-register_functions (void* data)
-{
-  SDL_register_functions (NULL);
-  return NULL;
-}
-
-int
-main (int argc, char *argv[])
-{
-  scm_with_guile (&register_functions, NULL);
-  scm_init_guile ();
-  scm_c_eval_string ("(set-repl-prompt! \"gacela>\")");
-  scm_c_eval_string ("(use-modules (ice-9 readline))");
-  scm_c_eval_string ("(activate-readline)");
-  scm_shell (argc, argv);
-}
diff --git a/gacela_SDL.c b/gacela_SDL.c
deleted file mode 100644 (file)
index 964c0ed..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <libguile.h>
-#include <SDL/SDL.h>
-#include "gacela_SDL.h"
-
-static void*
-SDL_register_functions (void* data)
-{
-  return NULL;
-}
diff --git a/gacela_SDL.h b/gacela_SDL.h
deleted file mode 100644 (file)
index 8b5e033..0000000
+++ /dev/null
@@ -1 +0,0 @@
-static void* SDL_register_functions (void* data);
diff --git a/src/gacela.c b/src/gacela.c
new file mode 100644 (file)
index 0000000..45c83a1
--- /dev/null
@@ -0,0 +1,21 @@
+#include <GL/gl.h>
+#include <libguile.h>
+#include "gacela_SDL.h"
+
+static void*
+register_functions (void* data)
+{
+  SDL_register_functions (NULL);
+  return NULL;
+}
+
+int
+main (int argc, char *argv[])
+{
+  scm_with_guile (&register_functions, NULL);
+  scm_init_guile ();
+  scm_c_eval_string ("(set-repl-prompt! \"gacela>\")");
+  scm_c_eval_string ("(use-modules (ice-9 readline))");
+  scm_c_eval_string ("(activate-readline)");
+  scm_shell (argc, argv);
+}
diff --git a/src/gacela_SDL.c b/src/gacela_SDL.c
new file mode 100644 (file)
index 0000000..964c0ed
--- /dev/null
@@ -0,0 +1,9 @@
+#include <libguile.h>
+#include <SDL/SDL.h>
+#include "gacela_SDL.h"
+
+static void*
+SDL_register_functions (void* data)
+{
+  return NULL;
+}
diff --git a/src/gacela_SDL.h b/src/gacela_SDL.h
new file mode 100644 (file)
index 0000000..8b5e033
--- /dev/null
@@ -0,0 +1 @@
+static void* SDL_register_functions (void* data);