From: jsancho Date: Sat, 30 Apr 2011 11:04:21 +0000 (+0000) Subject: Nuevo Gacela con Gnu Guile (de momento sin threads) X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=c2b3283df38412949ba1494cac299b235d1fe0ae;p=gacela.git Nuevo Gacela con Gnu Guile (de momento sin threads) --- diff --git a/gacela.c b/gacela.c deleted file mode 100644 index 45c83a1..0000000 --- a/gacela.c +++ /dev/null @@ -1,21 +0,0 @@ -#include -#include -#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 (®ister_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 index 964c0ed..0000000 --- a/gacela_SDL.c +++ /dev/null @@ -1,9 +0,0 @@ -#include -#include -#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 index 8b5e033..0000000 --- a/gacela_SDL.h +++ /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 index 0000000..45c83a1 --- /dev/null +++ b/src/gacela.c @@ -0,0 +1,21 @@ +#include +#include +#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 (®ister_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 index 0000000..964c0ed --- /dev/null +++ b/src/gacela_SDL.c @@ -0,0 +1,9 @@ +#include +#include +#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 index 0000000..8b5e033 --- /dev/null +++ b/src/gacela_SDL.h @@ -0,0 +1 @@ +static void* SDL_register_functions (void* data);