testparse.c
branchtrunk
changeset 18 0dbdb2be8bf8
parent 14 7075b6e31471
child 37 63b5ba0bcda0
equal deleted inserted replaced
17:78d605d6641d 18:0dbdb2be8bf8
    10         if (io != NULL)
    10         if (io != NULL)
    11         {
    11         {
    12             unsigned char *buf = (unsigned char *) malloc(1000000);
    12             unsigned char *buf = (unsigned char *) malloc(1000000);
    13             int rc = fread(buf, 1, 1000000, io);
    13             int rc = fread(buf, 1, 1000000, io);
    14             fclose(io);
    14             fclose(io);
    15             D3D2GLSL_parse("d3d", buf, rc);
    15             D3D2GLSL_parse("d3d", buf, rc, NULL, NULL);
    16             free(buf);
    16             free(buf);
    17         } // if
    17         } // if
    18     } // if
    18     } // if
    19 
    19 
    20     return 0;
    20     return 0;