Skip to content

Commit

Permalink
[svn] Update testparse for renames.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Mar 22, 2008
1 parent 460e94c commit 89fa5ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testparse.c
@@ -1,9 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
#include "d3d2glsl.h"
#include "mojoshader.h"

int main(int argc, char **argv)
{
printf("Compiled against version %d\n", MOJOSHADER_VERSION);
printf("Linked against version %d\n", MOJOSHADER_version());

if (argv[1] != NULL)
{
FILE *io = fopen(argv[1], "rb");
Expand All @@ -12,7 +15,7 @@ int main(int argc, char **argv)
unsigned char *buf = (unsigned char *) malloc(1000000);
int rc = fread(buf, 1, 1000000, io);
fclose(io);
D3D2GLSL_parse("d3d", buf, rc, NULL, NULL);
MOJOSHADER_parse("d3d", buf, rc, NULL, NULL);
free(buf);
} // if
} // if
Expand Down

0 comments on commit 89fa5ce

Please sign in to comment.