diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-09 21:01:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-09 21:01:22 -0700 |
commit | cad6393cede60e3716e0479e350de4f1afa69305 (patch) | |
tree | 19e1e7a713a62f2ac0908951104e76517c672457 /parser.c | |
parent | 857bbe3ac143463bbac2bd4ff2e24cd871a1ca7d (diff) | |
download | txr-cad6393cede60e3716e0479e350de4f1afa69305.tar.gz txr-cad6393cede60e3716e0479e350de4f1afa69305.tar.bz2 txr-cad6393cede60e3716e0479e350de4f1afa69305.zip |
C++: avoid the compl identifier.
* parser.c (find_matching_syms): Rename the compl
variable to comple, because compl is a standard
C++ macro which provides an alternate name for
the ~ operator.
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -383,7 +383,7 @@ static void find_matching_syms(lino_completions_t *cpl, val name = symbol_name(sym); if (match_str(name, prefix, zero)) { - val compl; + val comple; switch (par) { case '(': @@ -399,17 +399,17 @@ static void find_matching_syms(lino_completions_t *cpl, } if (qualify) - compl = format(nil, lit("~a~a:~a"), line_prefix, pkg_name, name, nao); + comple = format(nil, lit("~a~a:~a"), line_prefix, pkg_name, name, nao); else - compl = format(nil, lit("~a~a"), line_prefix, name, nao); + comple = format(nil, lit("~a~a"), line_prefix, name, nao); { - char *completion = utf8_dup_to(c_str(compl)); + char *completion = utf8_dup_to(c_str(comple)); lino_add_completion(cpl, completion); free(completion); } - gc_hint(compl); + gc_hint(comple); } } } |