aboutsummaryrefslogtreecommitdiff
path: root/src/guile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/guile.c')
-rw-r--r--src/guile.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/guile.c b/src/guile.c
index 7c898d5..7883117 100644
--- a/src/guile.c
+++ b/src/guile.c
@@ -2,7 +2,7 @@
guile.c
This file is part of GNU Anubis.
- Copyright (C) 2003-2014 The Anubis Team.
+ Copyright (C) 2003-2024 The Anubis Team.
GNU Anubis is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -22,8 +22,6 @@
#include "extern.h"
#include "rcfile.h"
-#ifdef WITH_GUILE
-
static void guile_ports_open (void);
static void guile_ports_close (void);
@@ -83,8 +81,7 @@ init_guile ()
{
scm_init_guile ();
scm_load_goops ();
- guile_init_anubis_info_port ();
- guile_init_anubis_error_port ();
+ guile_init_anubis_log_port ();
}
@@ -110,7 +107,7 @@ guile_ports_open ()
if (fd >= 0)
{
- port = scm_fdes_to_port (fd, "a", scm_makfrom0str (name));
+ port = scm_fdes_to_port (fd, "a", scm_from_locale_string (name));
guile_ports_close ();
scm_set_current_error_port (port);
scm_set_current_output_port (port);
@@ -157,7 +154,7 @@ guile_load_path_append_handler (void *data)
pscm = SCM_VARIABLE_LOC (scm_c_lookup ("%load-path"));
*pscm = scm_append (scm_list_3 (path_scm,
- scm_list_1 (scm_makfrom0str (path)),
+ scm_list_1 (scm_from_locale_string (path)),
SCM_EOL));
return SCM_UNSPECIFIED;
}
@@ -267,7 +264,7 @@ list_to_args (ANUBIS_LIST arglist)
switch (p[1])
{
case ':':
- val = scm_c_make_keyword (p + 2);
+ val = scm_from_locale_keyword (p + 2);
break;
case 'f':
@@ -491,10 +488,12 @@ guile_parser (EVAL_ENV env, int key, ANUBIS_LIST arglist, void *inv_data)
}
if (setjmp (jmp_env) == 0)
- scm_internal_lazy_catch (SCM_BOOL_T,
- inner_catch_body,
- &closure,
- eval_catch_handler, &jmp_env);
+ {
+ scm_c_catch (SCM_BOOL_T,
+ inner_catch_body, &closure,
+ eval_catch_handler, &jmp_env,
+ NULL, NULL);
+ }
}
static struct rc_secdef_child guile_secdef_child = {
@@ -522,6 +521,4 @@ guile_section_init (void)
rc_secdef_add_child (sp, &guile_rule_secdef_child);
}
-#endif /* WITH_GUILE */
-
/* EOF */

Return to:

Send suggestions and report system problems to the System administrator.