glsl/apps: Adapt to pp interface change.
authorMichal Krol <michal@vmware.com>
Mon, 14 Sep 2009 11:08:07 +0000 (13:08 +0200)
committerMichal Krol <michal@vmware.com>
Mon, 14 Sep 2009 11:08:07 +0000 (13:08 +0200)
src/glsl/apps/process.c
src/glsl/apps/tokenise.c
src/glsl/apps/version.c

index 71211cc..a11f974 100644 (file)
@@ -88,7 +88,10 @@ main(int argc,
 
    free(inbuf);
 
-   sl_pp_context_init(&context);
+   if (sl_pp_context_init(&context)) {
+      free(outbuf);
+      return 1;
+   }
 
    if (sl_pp_tokenise(&context, outbuf, &tokens)) {
       sl_pp_context_destroy(&context);
index b5092ba..64b0a2f 100644 (file)
@@ -84,7 +84,10 @@ main(int argc,
 
    free(inbuf);
 
-   sl_pp_context_init(&context);
+   if (sl_pp_context_init(&context)) {
+      free(outbuf);
+      return 1;
+   }
 
    if (sl_pp_tokenise(&context, outbuf, &tokens)) {
       sl_pp_context_destroy(&context);
index c56ae9d..9e57904 100644 (file)
@@ -84,7 +84,10 @@ main(int argc,
 
    free(inbuf);
 
-   sl_pp_context_init(&context);
+   if (sl_pp_context_init(&context)) {
+      free(outbuf);
+      return 1;
+   }
 
    if (sl_pp_tokenise(&context, outbuf, &tokens)) {
       sl_pp_context_destroy(&context);