projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix macro expansion
[m6w6/ext-psi]
/
src
/
token.c
diff --git
a/src/token.c
b/src/token.c
index f3beb2cf39f6a6b72676c214ec7b12e53ed80450..18c74375fe0b84eb18cd5fadf0994e7774755762 100644
(file)
--- a/
src/token.c
+++ b/
src/token.c
@@
-196,6
+196,11
@@
void psi_token_dump(struct psi_dump *dump, struct psi_token *t)
{
size_t i;
{
size_t i;
+ if (!t) {
+ PSI_DUMP(dump, "TOKEN deleted\n");
+ return;
+ }
+
PSI_DUMP(dump, "TOKEN %p (%u) ", t, t->type);
if (t->type == PSI_T_EOF) {
PSI_DUMP(dump, "EOF");
PSI_DUMP(dump, "TOKEN %p (%u) ", t, t->type);
if (t->type == PSI_T_EOF) {
PSI_DUMP(dump, "EOF");