<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -21,14 +21,14 @@
                             functions:(dict)))	;; for each function, remember its signature
 
 (global import
-        (macro _ 
+        (macro-0 _ 
              (NuBridgeSupport importFramework:((margs car) stringValue) 
                   fromPath:(if (margs cdr) (then (eval ((margs cdr) car))) (else nil)) 
                   intoDictionary:BridgeSupport)))
 
 (global import-system 
-        (macro _
+        (macro-0 _
              (((NSString stringWithShellCommand:&quot;ls /System/Library/Frameworks&quot;) lines) each: 
               (do (line)
                   (set name ((line componentsSeparatedByString:&quot;.&quot;) 0))
-                  (eval (cons 'import (list name)))))))
\ No newline at end of file
+                  (eval (cons 'import (list name)))))))</diff>
      <filename>nu/bridgesupport.nu</filename>
    </modified>
    <modified>
      <diff>@@ -17,7 +17,7 @@
 ;;   See the License for the specific language governing permissions and
 ;;   limitations under the License.
 
-(macro bridge 
+(macro-0 bridge 
      (set __kind (margs first))
      (set __name (margs second))
      (set __signature (margs third))</diff>
      <filename>nu/cocoa.nu</filename>
    </modified>
    <modified>
      <diff>@@ -178,7 +178,7 @@
      (imethod (void) addClass: (id) class is (@classes addObject:class)))
 
 ;; Extract information from one line of class and method comments.
-(macro parseClassAndMethodCommentLine
+(macro-0 parseClassAndMethodCommentLine
      (cond ((line beginsWithString:&quot;@class&quot;)
             (set @class (line substringFromIndex:(+ 1 (&quot;@class&quot; length)))))
            ((line beginsWithString:&quot;@category&quot;) ;; category is an alias for class
@@ -197,7 +197,7 @@
                 (@discussion appendString:line))))
 
 ;; Extract documentation information from class and method comments.
-(macro parseClassAndMethodComments
+(macro-0 parseClassAndMethodComments
      (set @discussion (NSMutableString string))
      (if @comments
          (if (set match (objc-comment-pattern findInString:@comments))
@@ -469,7 +469,7 @@ END))
                                              (set $comments &quot;#{(match groupAtIndex:0)}&quot;))
                         (else nil)))))
 
-(macro site-header
+(macro-0 site-header
      (if (eq $sitename &quot;programming.nu&quot;)
          (then &lt;&lt;-END
 &lt;div style=&quot;float:left; margin-right:10px&quot;&gt;
@@ -790,7 +790,7 @@ END))
 ;;
 ;; Main program starts here
 ;;
-(macro nudoc
+(macro-0 nudoc
      (set $classes (NSMutableDictionary dictionary))
      (set $files (NSMutableDictionary dictionary))
      </diff>
      <filename>nu/doc.nu</filename>
    </modified>
    <modified>
      <diff>@@ -28,27 +28,27 @@
              (then (meval ((pairs cdr) cdr) (subst (pairs second) (pairs first) code)))
              (else (eval code))))
     
-    (macro class-help-0
+    (macro-0 class-help-0
          (meval (list 'className (margs first)
                       'helpText (margs second))
                 '(class className
                       (imethod (id) help is helpText))))
     
-    (macro class-help-1
+    (macro-0 class-help-1
          (eval (list 'class (margs first)
                      (list 'imethod '(id) 'help 'is (margs second)))))
     
-    (macro class-help-2
+    (macro-0 class-help-2
          (class (unquote (margs first))
               (imethod (id) help is (unquote (margs second)))))
     
     ; we might prefer this when the parser can handle commas.
-    ;(macro class-help-3
+    ;(macro-0 class-help-3
     ;     (class ,(margs first))
     ;          (imethod (id) help is ,(margs second)))
     )
 
-(macro class-help
+(macro-0 class-help
      (class (unquote (margs first))
           (imethod (id) help is (unquote (margs second)))))
 </diff>
      <filename>nu/help.nu</filename>
    </modified>
    <modified>
      <diff>@@ -77,7 +77,7 @@
 ;; We just use an &quot;_&quot; for the macro name argument because its local name is unimportant.
 ;; It does not work with the latest (more restrictive) ObjC runtimes from Apple.
 (global protocol
-        (macro _
+        (macro-0 _
              (set __signatureForIdentifier (NuBridgedFunction functionWithName:&quot;signature_for_identifier&quot; signature:&quot;@@@&quot;))
              (function __parse_signature (typeSpecifier)
                   (__signatureForIdentifier typeSpecifier (NuSymbolTable sharedSymbolTable)))</diff>
      <filename>nu/nu.nu</filename>
    </modified>
    <modified>
      <diff>@@ -101,7 +101,7 @@
           (set $assertions (+ $assertions @assertions))
           (puts &quot;#{((self class) name)}: completed #{(testcases count)} tests/#{@assertions} assertions/#{@failures} failures/#{@errors} errors&quot;)))
 
-(macro assert_equal
+(macro-0 assert_equal
      (set @assertions (+ @assertions 1))
      (set __reference (eval (car margs)))
      (set __actual (eval (car (cdr margs))))
@@ -110,7 +110,7 @@
              (set @failures (+ @failures 1)))
      nil)
 
-(macro assert_not_equal
+(macro-0 assert_not_equal
      (set @assertions (+ @assertions 1))
      (set __reference (eval (car margs)))
      (set __actual (eval (car (cdr margs))))
@@ -119,7 +119,7 @@
              (set @failures (+ @failures 1)))
      nil)
 
-(macro assert_greater_than
+(macro-0 assert_greater_than
      (set @assertions (+ @assertions 1))
      (set __reference (eval (car margs)))
      (set __actual (eval (car (cdr margs))))
@@ -128,7 +128,7 @@
              (set @failures (+ @failures 1)))
      nil)
 
-(macro assert_less_than
+(macro-0 assert_less_than
      (set @assertions (+ @assertions 1))
      (set __reference (eval (car margs)))
      (set __actual (eval (car (cdr margs))))
@@ -137,7 +137,7 @@
              (set @failures (+ @failures 1)))
      nil)
 
-(macro assert_throws
+(macro-0 assert_throws
      (set @assertions (+ @assertions 1))
      (set __desired (eval (car margs)))
      (set __block (cdr margs))
@@ -155,7 +155,7 @@
               (set @failures (+ @failures 1))))
      nil)
 
-(macro assert_in_delta
+(macro-0 assert_in_delta
      (set @assertions (+ @assertions 1))
      (set __reference (eval (car margs)))
      (set __actual (eval (car (cdr (margs)))))
@@ -166,7 +166,7 @@
          (set @failures (+ @failures 1)))
      nil)
 
-(macro assert_true
+(macro-0 assert_true
      (set @assertions (+ @assertions 1))
      (set __actual (eval (car margs)))
      (unless __actual
@@ -174,7 +174,7 @@
              (set @failures (+ @failures 1)))
      nil)
 
-(macro assert_false
+(macro-0 assert_false
      (set @assertions (+ @assertions 1))
      (set __actual (eval (car margs)))
      (if __actual</diff>
      <filename>nu/test.nu</filename>
    </modified>
    <modified>
      <diff>@@ -1874,6 +1874,7 @@ void load_builtins(NuSymbolTable *symbolTable)
     install(&quot;def&quot;,      Nu_function_operator);
     install(&quot;function&quot;, Nu_function_operator);
     install(&quot;macro&quot;,    Nu_macro_operator);
+    install(&quot;macro-0&quot;,  Nu_macro_operator);
     install(&quot;progn&quot;,    Nu_progn_operator);
     install(&quot;then&quot;,     Nu_progn_operator);
     install(&quot;else&quot;,     Nu_progn_operator);</diff>
      <filename>objc/operator.m</filename>
    </modified>
    <modified>
      <diff>@@ -133,11 +133,11 @@
      
      (imethod (id) testLoopMacro is
           ;; here is a simple macro defining an unending loop
-          (macro loop (eval (append '(while t) margs)))
+          (macro-0 loop (eval (append '(while t) margs)))
           ;; here's a macro that decrements a named value
-          (macro decrement (set (unquote (margs car)) (- (unquote (margs car)) 1)))
+          (macro-0 decrement (set (unquote (margs car)) (- (unquote (margs car)) 1)))
           ;; here's a macro that increments a named value
-          (macro increment (set (unquote (margs car)) (+ (unquote (margs car)) 1)))
+          (macro-0 increment (set (unquote (margs car)) (+ (unquote (margs car)) 1)))
           ;; run the loop, breaking out after 5 iterations
           (set count 0)
           (set x 10)</diff>
      <filename>test/test_control.nu</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@
      ;; recursive macro test case done wrong.
      ;; because x is not a gensym it keeps getting redefined in the recursive descent
      (imethod (id) testBrokenFactorialMacro is
-          (macro mfact
+          (macro-0 mfact
                (set x (eval (car margs)))
                (if (== x 0)
                    (then 1)
@@ -25,7 +25,7 @@
      ;; recursive macro test case done right.
      ;; names prefixed with the &quot;__&quot; sigil are gensyms.
      (imethod (id) testFactorialMacro is
-          (macro mfact
+          (macro-0 mfact
                (set __x (eval (car margs)))
                (if (== __x 0)
                    (then 1)
@@ -34,7 +34,7 @@
      
      ;; test string interpolation of gensyms
      (imethod (id) testGensymInterpolation is
-          (macro interpolateGensym
+          (macro-0 interpolateGensym
                (set __x 123)
                (set __y 456)
                &quot;you got #{__x} and #{__y}&quot;)
@@ -43,7 +43,7 @@
      ;; test some macro implementation details
      (imethod (id) testMacroImplementation is
           (set s (NuSymbolTable sharedSymbolTable))
-          (macro forty (set __x 22) (set __y (+ __x 18)))
+          (macro-0 forty (set __x 22) (set __y (+ __x 18)))
           (set newBody (send forty body:(send forty body) withGensymPrefix:&quot;g999&quot; symbolTable:s))
           (assert_equal &quot;((set g999__x 22) (set g999__y (+ g999__x 18)))&quot; (newBody stringValue)))
      
@@ -56,7 +56,7 @@
                (newName appendString:&quot;:&quot;)
                newName)
           
-          (macro reader
+          (macro-0 reader
                (set __name ((car margs) stringValue))
                (_class addInstanceVariable:__name
                        signature:&quot;@&quot;)
@@ -64,7 +64,7 @@
                        signature:&quot;@@:&quot;
                        body:(do () (self valueForIvar:__name))))
           
-          (macro writer
+          (macro-0 writer
                (set __name ((car margs) stringValue))
                (_class addInstanceVariable:__name
                        signature:&quot;@&quot;)
@@ -72,7 +72,7 @@
                        signature:&quot;v@:@&quot;
                        body:(do (new) (self setValue:new forIvar:__name))))
           
-          (macro accessor
+          (macro-0 accessor
                (set __name ((car margs) stringValue))
                (_class addInstanceVariable:__name
                        signature:&quot;@&quot;)</diff>
      <filename>test/test_macros.nu</filename>
    </modified>
    <modified>
      <diff>@@ -51,6 +51,7 @@ END)))
           '((&quot;void&quot; &quot;v&quot; 400)
             (&quot;id&quot; &quot;@&quot; 400)
             (&quot;int&quot; &quot;i&quot; 400)
+            (&quot;BOOL&quot; &quot;C&quot; 20)
             (&quot;float&quot; &quot;f&quot; 100)
             (&quot;double&quot; &quot;d&quot; 100)
             (&quot;CGRect&quot; &quot;{_CGRect={_CGPoint=ff}{_CGSize=ff}}&quot; 20)</diff>
      <filename>util/handlers.nu</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d0a07b287f316d60f94dfe87251469b7a6bea000</id>
    </parent>
  </parents>
  <author>
    <name>Tim Burks</name>
    <email>tim@neontology.com</email>
  </author>
  <url>http://github.com/timburks/nu/commit/ab8b5d084d5219b32f7ac72707f61528c4f33771</url>
  <id>ab8b5d084d5219b32f7ac72707f61528c4f33771</id>
  <committed-date>2008-08-04T09:39:33-07:00</committed-date>
  <authored-date>2008-08-04T09:39:33-07:00</authored-date>
  <message>Added &quot;macro-0&quot; as an alias for the existing Nu macro operator.</message>
  <tree>a3dc094bc63d6c433fc6c0915bd16bb7ce9e0d85</tree>
  <committer>
    <name>Tim Burks</name>
    <email>tim@neontology.com</email>
  </committer>
</commit>
