blob: 0353a88a0d9e7f1682e16704c04c68e872d7504d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "guile_type_helpers.h"
#include "guile_interface.h"
#include "macro.h"
SCM scm_from_strbuf(strbuf* s) {
if (s->scm == NULL) {
s->scm = scm_from_utf8_stringn (s->mem, s->len);
scm_gc_protect_object(s->scm);
}
return s->scm;
}
SCM scm_from_strbuf_symbol(strbuf* s) {
return scm_string_to_symbol(scm_from_strbuf(s));
}
|