]> Shamusworld >> Repos - rmac/blobdiff - macro.c
Expand \~ in .REPTs to unique label names as in macros. (issue #75)
[rmac] / macro.c
diff --git a/macro.c b/macro.c
index 3d2ea0945648230473e731e1574ed26e2c87f4f5..8da9bcb540223b19b32f16c45ba5ff968d50f5e5 100644 (file)
--- a/macro.c
+++ b/macro.c
@@ -22,11 +22,12 @@ int macnum;                                 // Unique number for macro definition
 
 static LONG macuniq;           // Unique-per-macro number
 static SYM * curmac;           // Macro currently being defined
-static uint32_t argno;                 // Formal argument count
+static uint32_t argno;         // Formal argument count
+LONG reptuniq;                         // Unique-per-rept number
 
 static LLIST * firstrpt;       // First .rept line
 static LLIST * nextrpt;                // Last .rept line
-static int rptlevel;           // .rept nesting level
+int rptlevel;                          // .rept nesting level
 
 // Function prototypes
 static int KWMatch(char *, char *);
@@ -40,6 +41,7 @@ void InitMacro(void)
 {
        macuniq = 0;
        macnum = 1;
+       reptuniq = 0;
 }