mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
glsl/apps: Include missing header, properly escape format strings.
This commit is contained in:
parent
db097a9a3f
commit
e8e3fe15e1
4 changed files with 8 additions and 4 deletions
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "../pp/sl_pp_public.h"
|
||||
|
||||
|
|
@ -235,11 +236,11 @@ main(int argc,
|
|||
break;
|
||||
|
||||
case SL_PP_MODASSIGN:
|
||||
fprintf(out, "%= ");
|
||||
fprintf(out, "%%= ");
|
||||
break;
|
||||
|
||||
case SL_PP_MODULO:
|
||||
fprintf(out, "% ");
|
||||
fprintf(out, "%% ");
|
||||
break;
|
||||
|
||||
case SL_PP_LSHIFTASSIGN:
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "../pp/sl_pp_public.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "../pp/sl_pp_public.h"
|
||||
|
||||
|
|
@ -219,11 +220,11 @@ main(int argc,
|
|||
break;
|
||||
|
||||
case SL_PP_MODASSIGN:
|
||||
fprintf(out, "%= ");
|
||||
fprintf(out, "%%= ");
|
||||
break;
|
||||
|
||||
case SL_PP_MODULO:
|
||||
fprintf(out, "% ");
|
||||
fprintf(out, "%% ");
|
||||
break;
|
||||
|
||||
case SL_PP_LSHIFTASSIGN:
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "../pp/sl_pp_public.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue