guix-commits
[Top][All Lists]
Advanced

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

53/197: installer: Change N_ from a procedure to a macro.


From: Danny Milosavljevic
Subject: 53/197: installer: Change N_ from a procedure to a macro.
Date: Mon, 3 Jul 2017 20:36:59 -0400 (EDT)

dannym pushed a commit to branch wip-installer-2
in repository guix.

commit 8d3be87bc96f532f52e81c2e37fa6423a6086b6e
Author: John Darrington <address@hidden>
Date:   Fri Dec 30 15:08:35 2016 +0100

    installer: Change N_ from a procedure to a macro.
    
    * gnu/system/installer/utils.scm (N_): Remove procedure. (N_): New macro.
---
 gnu/system/installer/utils.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/system/installer/utils.scm b/gnu/system/installer/utils.scm
index 04f53ab..25a8390 100644
--- a/gnu/system/installer/utils.scm
+++ b/gnu/system/installer/utils.scm
@@ -53,8 +53,10 @@
             (ncurses form)
              (ncurses curses))
 
-(define (N_ str) str)
-
+(define-syntax N_
+  (syntax-rules ()
+    ((N_ str)
+     str)))
 
 (define (make-window-port win)
   "Return a port which writes to the curses window WIN"



reply via email to

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