summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/term.c b/term.c
index 0d052bb5..ea52fc11 100644
--- a/term.c
+++ b/term.c
@@ -391,8 +391,15 @@ do_special(struct termp *p, const char *word, size_t len)
rhs = term_a2ascii(p->symtab, word, len, &sz);
- if (NULL == rhs)
+ if (NULL == rhs) {
+#if 1
+ fputs("Unknown special character: ", stderr);
+ for (i = 0; i < (int)len; i++)
+ fputc(word[i], stderr);
+ fputc('\n', stderr);
+#endif
return;
+ }
for (i = 0; i < (int)sz; i++)
encode(p, rhs[i]);
}
@@ -407,8 +414,15 @@ do_reserved(struct termp *p, const char *word, size_t len)
rhs = term_a2res(p->symtab, word, len, &sz);
- if (NULL == rhs)
+ if (NULL == rhs) {
+#if 0
+ fputs("Unknown reserved word: ", stderr);
+ for (i = 0; i < (int)len; i++)
+ fputc(word[i], stderr);
+ fputc('\n', stderr);
+#endif
return;
+ }
for (i = 0; i < (int)sz; i++)
encode(p, rhs[i]);
}