diff options
Diffstat (limited to 'guile_interface.scm.c')
-rw-r--r-- | guile_interface.scm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/guile_interface.scm.c b/guile_interface.scm.c index a4eb7f8b..6b9de8dc 100644 --- a/guile_interface.scm.c +++ b/guile_interface.scm.c @@ -47,6 +47,7 @@ SCM_DEFINE (vcomponent_get_attribute, "vcomponent-get-attribute", 2, 0, 0, if (c == NULL) return SCM_BOOL_F; + // TODO returns the car of list if list is one long. SCM llist = SCM_EOL; FOR (LLIST, content_set, v, &c->val) { llist = scm_cons(scm_from_strbuf(&v->key), llist); @@ -65,9 +66,9 @@ SCM_DEFINE (vcomponent_set_attr_x, "vcomponent-set-attribute!", 3, 0, 0, content_line* c = get_property (com, key); free(key); - c->val.cur->value->key.mem = (char*) new_value; - - + // TODO if list is a value store it as is, else wrap it in a list + // of length one. + c->val.cur->value->key.scm = new_value; return SCM_UNSPECIFIED; } |