diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-10-01 22:33:10 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-10-01 22:33:10 -0700 |
commit | 28f2adb77ce853d675b964f427b16358343444d1 (patch) | |
tree | ec306883dfb55900380979ba9a85b0572a785130 /filter.c | |
parent | fb042038bc10452110056efc99dac211aa4a6dc3 (diff) | |
download | txr-28f2adb77ce853d675b964f427b16358343444d1.tar.gz txr-28f2adb77ce853d675b964f427b16358343444d1.tar.bz2 txr-28f2adb77ce853d675b964f427b16358343444d1.zip |
Maintaining C++ compiling (except for two issues that will
need another commit).
* filter.c: Include "gc.h" for prototype of protect.
(struct filter_pair): Use const wchar_t *, so we can assign
literals.
(html_hex_continue): Ditto.
* lib.c (and): Function renamed to andf, since and is a C++
operator.
* lib.h (and): Declaration renamed.
* match.c (match_files): Use of and updated to andf.
Diffstat (limited to 'filter.c')
-rw-r--r-- | filter.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -33,6 +33,7 @@ #include "hash.h" #include "unwind.h" #include "filter.h" +#include "gc.h" static val make_trie(void) { @@ -127,7 +128,7 @@ val get_filter_trie(val sym) } struct filter_pair { - wchar_t *key, *value; + const wchar_t *key, *value; }; static val build_filter(struct filter_pair *pair, val compress_p) @@ -483,7 +484,7 @@ static struct filter_pair from_html_table[] = { static val html_hex_continue(val hexlist, val ch) { - static wchar_t *hexdigs = L"0123456789ABCDEF"; + static const wchar_t *hexdigs = L"0123456789ABCDEF"; if (iswxdigit(c_chr(ch))) { return func_f1(cons(ch, hexlist), html_hex_continue); |