Author: bernhard
Date: Fri May 18 14:57:11 2007
New Revision: 18587

Modified:
   trunk/compilers/imcc/main.c

Log:
#42336: segfault happens with 'parrot --pre-process-only'
Avoid the segfault that occurs when do_pre_process()
wanted to show detaily of a macro.


Modified: trunk/compilers/imcc/main.c
==============================================================================
--- trunk/compilers/imcc/main.c (original)
+++ trunk/compilers/imcc/main.c Fri May 18 14:57:11 2007
@@ -400,8 +400,10 @@
             case ENDNAMESPACE:  printf(".endnamespace"); break;
             case CONST:         printf(".const "); break;
             case PARAM:         printf(".param "); break;
-            case MACRO:         yylex(&val, interp, yyscanner);
-                                break; /* swallow nl */
+            /* TODO: print out more information about the macro */
+            /* case MACRO:         yylex(&val, interp, yyscanner);
+                                break; */ /* swallow nl */
+            case MACRO:         printf(".macro "); break;
 
             case GOTO:          printf("goto ");break;
             case IF:            printf("if ");break;

Reply via email to