oops, fix for ## operator was wrong
authoreck <none@none>
Tue, 25 Sep 1990 13:46:59 +0000 (13:46 +0000)
committereck <none@none>
Tue, 25 Sep 1990 13:46:59 +0000 (13:46 +0000)
lang/cem/cemcom.ansi/replace.c

index 8543388..dc86f11 100644 (file)
@@ -567,7 +567,7 @@ macro2buffer(repl, idf, args)
                    ptr++;
                } while (*ptr != delim || *ptr == '\0');
                add2repl(repl, *ptr++);
-           } else if (func && *ptr == '#') {
+           } else if (*ptr == '#' && (func || *(ptr+1) == '#')) {
                if (*++ptr == '#') {
                    register int tmpindex;
                        /* ## - paste operator */