unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: David Pirotte <david@altosw.be>
To: guile-devel <guile-devel@gnu.org>
Subject: guile-gnome, master: fix unless macro definition for guile prior to guile-2 only
Date: Fri, 2 May 2014 16:14:51 -0300	[thread overview]
Message-ID: <20140502161451.33c2c8b3@capac> (raw)

[-- Attachment #1: Type: text/plain, Size: 132 bytes --]

Hello,

	guile-gnome
	  master: fix unless macro definition for guile prior to guile-2 only

Patch review solicited.

Thanks,
David

[-- Attachment #2: 0002-fix-unless-macro-definition-for-guile-prior-to-guile.patch --]
[-- Type: text/x-patch, Size: 1394 bytes --]

From 910343bf6793d512979af851b504b83b06a10ed2 Mon Sep 17 00:00:00 2001
From: David PIROTTE <david@altosw.be>
Date: Fri, 2 May 2014 16:01:30 -0300
Subject: [PATCH 2/2] fix unless macro definition for guile prior to guile-2
 only

* glib/gnome/gobject/utils.scm: moving the unless macro definition in
  the conditonal expansion section for guile prior to guile-2.
---
 glib/gnome/gobject/utils.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/glib/gnome/gobject/utils.scm b/glib/gnome/gobject/utils.scm
index fd88c8f..7a36bbb 100644
--- a/glib/gnome/gobject/utils.scm
+++ b/glib/gnome/gobject/utils.scm
@@ -35,7 +35,7 @@
                 re-export-modules
                 define-macro-with-docs define-with-docs
                 define-generic-with-docs define-class-with-docs
-                unless with-accessors))
+                with-accessors))
 
 ;;;
 ;;; {Miscellaneous}
@@ -54,7 +54,10 @@
   (define-macro (define-macro-with-docs form docs . body)
   `(begin
      (define-macro ,form ,@body)
-     (set-object-property! ,(car form) 'documentation ,docs)))))
+     (set-object-property! ,(car form) 'documentation ,docs)))
+  (define-macro (unless test . body)
+    `(if (not ,test) (begin ,@body)))
+  (export unless)))
 
 (define-macro-with-docs (define-with-docs name docs val)
   "Define @var{name} as @var{val}, documenting the value with
-- 
1.9.2


                 reply	other threads:[~2014-05-02 19:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140502161451.33c2c8b3@capac \
    --to=david@altosw.be \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).