summaryrefslogtreecommitdiff
path: root/src/guile/guiledefs.c
diff options
context:
space:
mode:
authorQrius <[email protected]>2024-12-18 20:21:44 +0100
committerQrius <[email protected]>2024-12-18 20:21:44 +0100
commit861779e4c6b82f9f4bf09fd7e714ac5106b4455d (patch)
tree516fc9af893870bded3988e174f081f0d3d0b796 /src/guile/guiledefs.c
parent1b59010b7da3b86aea6eb929d7efe37bdf735cd6 (diff)
downloadskaldpress-861779e4c6b82f9f4bf09fd7e714ac5106b4455d.tar.gz
skaldpress-861779e4c6b82f9f4bf09fd7e714ac5106b4455d.zip
Add some bindings and a workaround for resetting
Diffstat (limited to 'src/guile/guiledefs.c')
-rw-r--r--src/guile/guiledefs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/guile/guiledefs.c b/src/guile/guiledefs.c
index 9f52c43..a0e9bd2 100644
--- a/src/guile/guiledefs.c
+++ b/src/guile/guiledefs.c
@@ -1,3 +1,12 @@
#include <libguile.h>
struct scm_unused_struct * scm_undefined = SCM_UNDEFINED;
+struct scm_unused_struct * scm_unspecified = SCM_UNSPECIFIED;
+
+int defs_scm_is_eq(SCM x, SCM y) {
+ return scm_is_eq(x, y);
+}
+
+void defs_scm_define_string(const char* name, const char* value) {
+ scm_c_define(name, scm_from_utf8_string(value));
+}