testparse.c
branchtrunk
changeset 97 4a41e3d17297
parent 94 57adfb4769a0
child 100 2b88649b6f98
equal deleted inserted replaced
96:bc416e2b9de1 97:4a41e3d17297
    44 
    44 
    45 static void do_parse(const unsigned char *buf, const int len, const char *prof)
    45 static void do_parse(const unsigned char *buf, const int len, const char *prof)
    46 {
    46 {
    47     const MOJOSHADER_parseData *pd;
    47     const MOJOSHADER_parseData *pd;
    48 
    48 
    49     pd = MOJOSHADER_parse(prof, buf, len, Malloc, Free);
    49     pd = MOJOSHADER_parse(prof, buf, len, Malloc, Free, NULL);
    50     printf("PROFILE: %s\n", prof);
    50     printf("PROFILE: %s\n", prof);
    51     if (pd->error != NULL)
    51     if (pd->error != NULL)
    52         printf("ERROR: %s\n", pd->error);
    52         printf("ERROR: %s\n", pd->error);
    53     else
    53     else
    54     {
    54     {