X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=macro.c;h=8da9bcb540223b19b32f16c45ba5ff968d50f5e5;hp=3d2ea0945648230473e731e1574ed26e2c87f4f5;hb=HEAD;hpb=cbc8347d4ffea164ca05b03e4e3be39945be8777 diff --git a/macro.c b/macro.c index 3d2ea09..8da9bcb 100644 --- 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; }