X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=procln.c;h=6963086c9f18e69e3a3ace6004ae1a24f8404678;hp=8127d7337cf070a6f4cb28ac8d66b6b8f61261db;hb=daf2f61a3664329ae7f9609e1e14da2b8780fd10;hpb=233e5e908f5a865233f775520dc35917f13d2d26 diff --git a/procln.c b/procln.c index 8127d73..6963086 100644 --- a/procln.c +++ b/procln.c @@ -103,7 +103,7 @@ void init_procln(void) // // Line Processor // -void assemble(void) +void Assemble(void) { int state; // Keyword machine state (output) int j; // Random int, must be fast @@ -316,7 +316,7 @@ as68label: if (label != NULL) warn(lab_ignored); - exitmac(); + ExitMacro(); } goto loop; @@ -533,10 +533,15 @@ normal: if (label != NULL) { do_label: + // Check for dot in front of label; means this is a local label if present +#if 0 j = 0; if (*label == '.') j = curenv; +#else + j = (*label == '.' ? curenv : 0); +#endif sy = lookup(label, LABEL, j); @@ -570,7 +575,7 @@ do_label: lab_sym = sy; if (!j) - ++curenv; + curenv++; // Make label global if (labtyp == DCOLON)