summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_preprocess.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-06-10 12:16:15 -0600
committerBrian Paul <[email protected]>2009-06-10 12:16:15 -0600
commit7fdd64ab29576e607434fb8c82ddfa61e8ea6aa8 (patch)
treea9283a87e28dd090b108d3136a75b5cb729a1713 /src/mesa/shader/slang/slang_preprocess.c
parentcc22620e4b11425997f3bc1fc70f4c88cec22d2e (diff)
glsl: fix warnings, update comments, s/TRUE/GL_TRUE/
Diffstat (limited to 'src/mesa/shader/slang/slang_preprocess.c')
-rw-r--r--src/mesa/shader/slang/slang_preprocess.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_preprocess.c b/src/mesa/shader/slang/slang_preprocess.c
index 749bb8c0f64..e9a24cc009a 100644
--- a/src/mesa/shader/slang/slang_preprocess.c
+++ b/src/mesa/shader/slang/slang_preprocess.c
@@ -1300,14 +1300,15 @@ error:
}
-/*
+/**
* Remove the continuation characters from the input string.
* This is the very first step in preprocessing and is effective
* even inside comment blocks.
* If there is a whitespace between a backslash and a newline,
* this is not considered as a line continuation.
+ * \return GL_TRUE for success, GL_FALSE otherwise.
*/
-GLboolean
+static GLboolean
_slang_preprocess_backslashes(slang_string *output,
const char *input)
{
@@ -1334,7 +1335,7 @@ _slang_preprocess_backslashes(slang_string *output,
slang_string_pushc(output, *input++);
}
}
- return TRUE;
+ return GL_TRUE;
}