Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed the unused name pattern to avoid $s

  • Loading branch information...
commit 0b27739e1a35676a9d09f1b7ad05dbdd0cf9fe06 1 parent 7cd84f4
@badsector authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lil.c
  2. +1 −1  readme.txt
2  lil.c
@@ -1757,7 +1757,7 @@ lil_value_t lil_unused_name(lil_t lil, const char* part)
lil_value_t val;
size_t i;
for (i=0; i<(size_t)-1; i++) {
- sprintf(name, "$$un$%s$%09u$nu$$", part, (unsigned int)i);
+ sprintf(name, "!!un!%s!%09u!nu!!", part, (unsigned int)i);
if (find_cmd(lil, name)) continue;
if (lil_find_var(lil, lil->env, name)) continue;
val = lil_alloc_string(name);
2  readme.txt
@@ -463,7 +463,7 @@ LIL: A Little Interpreted Language
unusedname [part]
return an unused function name. This is a random name which has the
- form $$un$[part]$<some number>$nu$$. The [part] is optional (if not
+ form !!un![part]!<some number>!nu!!. The [part] is optional (if not
provided "unusedname" will be used)
quote [...]
Please sign in to comment.
Something went wrong with that request. Please try again.