utils/finderrors.c
changeset 956 7888858a6777
parent 904 5989f0d4185a
child 1104 9147482e1ec7
equal deleted inserted replaced
955:9315c168a97a 956:7888858a6777
   130         } // else
   130         } // else
   131         MOJOSHADER_glDeleteShader(shader);
   131         MOJOSHADER_glDeleteShader(shader);
   132     }
   132     }
   133     #else
   133     #else
   134     const MOJOSHADER_parseData *pd = MOJOSHADER_parse(profile, buf, rc, NULL, 0, NULL, NULL, NULL);
   134     const MOJOSHADER_parseData *pd = MOJOSHADER_parse(profile, buf, rc, NULL, 0, NULL, NULL, NULL);
   135     if (pd->error != NULL)
   135     if (pd->error_count == 0)
   136         report("FAIL: %s (position %d) %s\n", fname, pd->error_position, pd->error);
       
   137     else
       
   138         report("PASS: %s\n", fname);
   136         report("PASS: %s\n", fname);
       
   137 	else
       
   138 	{
       
   139 		int i;
       
   140 		for (i = 0; i < pd->error_count; i++)
       
   141 		{
       
   142 			report("FAIL: %s (position %d) %s\n", pd->errors[i].filename,
       
   143 			       pd->errors[i].error_position, pd->errors[i].error);
       
   144 		} // for
       
   145 	} // else
   139     MOJOSHADER_freeParseData(pd);
   146     MOJOSHADER_freeParseData(pd);
   140     #endif
   147     #endif
   141 
   148 
   142     return 1;
   149     return 1;
   143 } // do_file
   150 } // do_file