summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-10 12:26:12 -0600
committerBrian Paul <brianp@vmware.com>2009-06-17 11:30:04 -0600
commitad56b15195388846e1c1a4ead9cfa8d10236dbf5 (patch)
tree258f0d25350c1d98bcbc694ce41dd5e380e8ad4e /src
parent2d6008bea51f5a57b12fe3d15ec5e60e32f75b93 (diff)
glsl: fix warnings, update comments, s/TRUE/GL_TRUE/
(cherry picked from master, commit 7fdd64ab29576e607434fb8c82ddfa61e8ea6aa8)
Diffstat (limited to 'src')
-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 69536165e07..e03a70fdae6 100644
--- a/src/mesa/shader/slang/slang_preprocess.c
+++ b/src/mesa/shader/slang/slang_preprocess.c
@@ -1306,14 +1306,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)
{
@@ -1340,7 +1341,7 @@ _slang_preprocess_backslashes(slang_string *output,
slang_string_pushc(output, *input++);
}
}
- return TRUE;
+ return GL_TRUE;
}