# HG changeset patch # User Ryan C. Gordon # Date 1285049217 14400 # Node ID 55b583afec462d338bc9ad77de86afe5d66fbdc2 # Parent 483458775ec5131e8bae7a3eac2c158ab6bd9503 Print out "void" instead of "(null)" when printing out AST. diff -r 483458775ec5 -r 55b583afec46 mojoshader_compiler.c --- a/mojoshader_compiler.c Mon May 31 22:15:34 2010 -0400 +++ b/mojoshader_compiler.c Tue Sep 21 02:06:57 2010 -0400 @@ -2009,7 +2009,9 @@ case FNSTORECLS_NONE: break; case FNSTORECLS_INLINE: printf("inline "); break; } // switch - printf("%s %s(", ((FunctionSignature *) ast)->datatype, + printf("%s %s(", + ((FunctionSignature *) ast)->datatype ? + ((FunctionSignature *) ast)->datatype : "void", ((FunctionSignature *) ast)->identifier); print_ast(((FunctionSignature *) ast)->args); printf(")");