testoutput.c
changeset 536 5af65fe6e917
parent 475 ea119c8ce5cd
child 577 bec531dd448e
--- a/testoutput.c	Mon Feb 02 22:56:13 2009 -0500
+++ b/testoutput.c	Tue Feb 03 00:31:34 2009 -0500
@@ -17,8 +17,16 @@
     int retval = 0;
 
     pd = MOJOSHADER_parse(prof, buf, len, NULL, 0, NULL, NULL, NULL);
-    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: (line %d) %s\n",
+                    pd->errors[i].error_position,
+                    pd->errors[i].error);
+        } // for
+    } // if
     else
     {
         retval = 1;