shithub: mc

Download patch

ref: 7d45fda5e85658f7864b8d9002fb67c58e6ea2e7
parent: c40f319b0a288ac9021513083c4abcb261d2822c
author: Ori Bernstein <[email protected]>
date: Fri Jun 15 15:21:23 EDT 2012

Decls should now work nicely as context.

    Their name should get printed.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -143,6 +143,7 @@
     char *s;
     switch (n->type) {
         case Nexpr:     s = opstr(exprop(n)); 	break;
+        case Ndecl:     s = declstr(n); 	break;
         case Nname:     s = namestr(n); 	break;
         default:        s = nodestr(n->type); 	break;
     }