finderrors.c
changeset 536 5af65fe6e917
parent 524 03eea2f0762c
child 562 c9a2bc5129c9
equal deleted inserted replaced
535:dfe0e7965f1f 536:5af65fe6e917
    83     {
    83     {
    84         const MOJOSHADER_parseData *a;
    84         const MOJOSHADER_parseData *a;
    85 
    85 
    86         buf[rc] = '\0';  // make sure the source is null-terminated.
    86         buf[rc] = '\0';  // make sure the source is null-terminated.
    87         a = MOJOSHADER_assemble((char *) buf, 0, 0, 0, 0, 0, 0, 0);
    87         a = MOJOSHADER_assemble((char *) buf, 0, 0, 0, 0, 0, 0, 0);
    88         if (a->error)
    88         if (a->error_count > 0)
    89         {
    89         {
    90             report("FAIL: %s (line %d) %s\n", fname, a->error_position, a->error);
    90             report("FAIL: %s (line %d) %s\n", fname, a->errors[0].error_position, a->errors[0].error);
    91             return 1;
    91             return 1;
    92         } // if
    92         } // if
    93 
    93 
    94         else if (a->output_len > sizeof (buf))
    94         else if (a->output_len > sizeof (buf))
    95         {
    95         {