Skip to content
Permalink
Browse files
Print out "void" instead of "(null)" when printing out AST.
  • Loading branch information
icculus committed Sep 21, 2010
1 parent d268f63 commit 600915251907210bb57938c5285f4eaa5380ea6c

File 1 of 1 in 6009152

@@ -2009,7 +2009,9 @@ static void print_ast(void *ast)
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(")");

0 comments on commit 6009152

Please sign in to comment.