From: Brian Paul Date: Wed, 10 Aug 2005 14:38:39 +0000 (+0000) Subject: fix indentation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d4016943658756e60979057ec3dccf8f82033f0;p=mesa.git fix indentation --- diff --git a/src/mesa/shader/slang/slang_execute.c b/src/mesa/shader/slang/slang_execute.c index 9e82ef580bf..e45d2a4bc27 100644 --- a/src/mesa/shader/slang/slang_execute.c +++ b/src/mesa/shader/slang/slang_execute.c @@ -183,7 +183,7 @@ static void dump (const slang_assembly_file *file) int _slang_execute (const slang_assembly_file *file) { slang_machine mach; -FILE *f; + FILE *f; mach.ip = 0; mach.sp = SLANG_MACHINE_STACK_SIZE; @@ -197,22 +197,22 @@ FILE *f; static_assert(sizeof (GLuint) == 4); static_assert(sizeof (GLuint *) == 4); -dump (file); + dump (file); -f = fopen ("~mesa-slang-assembly-execution.txt", "w"); + f = fopen ("~mesa-slang-assembly-execution.txt", "w"); while (!mach.exit) { slang_assembly *a = file->code + mach.ip; -if (f != NULL) -{ -unsigned int i; -dump_instruction (f, a, mach.ip); -fprintf (f, "\t\tsp=%u bp=%u\n", mach.sp, mach.bp); -for (i = mach.sp; i < SLANG_MACHINE_STACK_SIZE; i++) -fprintf (f, "\t%.5u\t%6f\t%u\n", i, mach.stack._float[i], mach.stack._addr[i]); -fflush (f); -} + if (f != NULL) + { + unsigned int i; + dump_instruction (f, a, mach.ip); + fprintf (f, "\t\tsp=%u bp=%u\n", mach.sp, mach.bp); + for (i = mach.sp; i < SLANG_MACHINE_STACK_SIZE; i++) + fprintf (f, "\t%.5u\t%6f\t%u\n", i, mach.stack._float[i], mach.stack._addr[i]); + fflush (f); + } mach.ip++; switch (a->type) @@ -341,8 +341,8 @@ fflush (f); } } -if (f != NULL) -fclose (f); + if (f != NULL) + fclose (f); return 0; }