From a6aa6ff2fffe298b90788a07059902d85e3a1391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 26 Feb 2019 01:14:02 +0100 Subject: Add %vcomponent-parent. --- vcalendar.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vcalendar.scm') diff --git a/vcalendar.scm b/vcalendar.scm index b80e40e6..c6aee02c 100644 --- a/vcalendar.scm +++ b/vcalendar.scm @@ -18,6 +18,9 @@ ;; Also removes the abstract ROOT component, but also ;; merges all VCALENDAR's children into the first ;; VCALENDAR, and return that VCALENDAR. + ;; + ;; TODO the other VCALENDAR components might not get thrown away, + ;; this since I protect them from the GC in the C code. (reduce (lambda (cal accum) (for-each (cut %vcomponent-push-child! accum <>) (%vcomponent-children cal)) @@ -28,7 +31,7 @@ (define set-attr! %vcomponent-set-attribute!) (define get-attr %vcomponent-get-attribute) (define type %vcomponent-type) - +(define parent %vcomponent-parent) (define push-child! %vcomponent-push-child!) (define (transform-attr! ev field transformer) -- cgit v1.2.3