gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet-scheme] 02/08: utils/records: Fix auto-generated constructor/cop


From: gnunet
Subject: [gnunet-scheme] 02/08: utils/records: Fix auto-generated constructor/copy docstring.
Date: Thu, 09 Feb 2023 15:47:59 +0100

This is an automated email from the git hooks/post-receive script.

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit 6144a9e2704e5c18687500f014ada033c4c6d641
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Wed Feb 8 15:41:21 2023 +0100

    utils/records: Fix auto-generated constructor/copy docstring.
    
    Previously, ony a single value was returned, while two were needed.
    
    * gnu/gnunet/utils/records.scm (copy*, copy-docstring):
    Set the docstring to #false if 'copy' is unset and
    constructor/copy is set.
---
 gnu/gnunet/utils/records.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/gnunet/utils/records.scm b/gnu/gnunet/utils/records.scm
index becf263..590f308 100644
--- a/gnu/gnunet/utils/records.scm
+++ b/gnu/gnunet/utils/records.scm
@@ -104,7 +104,7 @@
        ;; The generated code for 'constructor/copy*' expects
        ;; a 'copy' procedure to exist.
        (if (and (eq? copy unset) (not (eq? constructor/copy unset)))
-           (car (generate-temporaries '(copy)))
+           (values (car (generate-temporaries '(copy))) #false)
            (maybe-identifier-maybe-with-docstring copy)))
       (define-values (constructor/copy* constructor/copy-docstring)
        (maybe-identifier-maybe-with-docstring constructor/copy))

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]