diff -r dfe0e7965f1f -r 5af65fe6e917 testparse.c --- a/testparse.c Mon Feb 02 22:56:13 2009 -0500 +++ b/testparse.c Tue Feb 03 00:31:34 2009 -0500 @@ -61,8 +61,16 @@ pd = MOJOSHADER_parse(prof, buf, len, NULL, 0, Malloc, Free, NULL); printf("PROFILE: %s\n", prof); - if (pd->error != NULL) - printf("ERROR: (position %d) %s\n", pd->error_position, pd->error); + if (pd->error_count > 0) + { + int i; + for (i = 0; i < pd->error_count; i++) + { + printf("ERROR: (position %d) %s\n", + pd->errors[i].error_position, + pd->errors[i].error); + } // for + } // if else { retval = 1;