testparse.c
branchtrunk
changeset 113 8ebf445c5305
parent 100 2b88649b6f98
child 142 e064b4cefb4e
equal deleted inserted replaced
112:5ddfb2f7ca4a 113:8ebf445c5305
    92                 printf("    * %d: %s\n", u->index, typenames[(int) u->type]);
    92                 printf("    * %d: %s\n", u->index, typenames[(int) u->type]);
    93             } // for
    93             } // for
    94         } // else
    94         } // else
    95 
    95 
    96         if (pd->output != NULL)
    96         if (pd->output != NULL)
    97             printf("OUTPUT:\n%s\n", pd->output);
    97         {
       
    98             int i;
       
    99             printf("OUTPUT:\n");
       
   100             for (i = 0; i < pd->output_len; i++)
       
   101                 putchar((int) pd->output[i]);
       
   102             printf("\n");
       
   103         } // if
    98     } // else
   104     } // else
    99     printf("\n\n");
   105     printf("\n\n");
   100     MOJOSHADER_freeParseData(pd);
   106     MOJOSHADER_freeParseData(pd);
   101 } // do_parse
   107 } // do_parse
   102 
   108