Commit 36b7104c authored by Brian Paul's avatar Brian Paul

piglit: rename FindLine() to piglit_find_line()

parent e09d9cd8
...@@ -762,7 +762,7 @@ GLuint piglit_compile_program(GLenum target, const char* text) ...@@ -762,7 +762,7 @@ GLuint piglit_compile_program(GLenum target, const char* text)
(const GLubyte *)text); (const GLubyte *)text);
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorPos); glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorPos);
if (glGetError() != GL_NO_ERROR || errorPos != -1) { if (glGetError() != GL_NO_ERROR || errorPos != -1) {
int l = FindLine(text, errorPos); int l = piglit_find_line(text, errorPos);
int a; int a;
fprintf(stderr, "Compiler Error (pos=%d line=%d): %s\n", fprintf(stderr, "Compiler Error (pos=%d line=%d): %s\n",
......
...@@ -146,7 +146,7 @@ bool piglit_is_extension_in_string(const char *haystack, const char *needle) ...@@ -146,7 +146,7 @@ bool piglit_is_extension_in_string(const char *haystack, const char *needle)
} }
/** Returns the line in the program string given the character position. */ /** Returns the line in the program string given the character position. */
int FindLine(const char *program, int position) int piglit_find_line(const char *program, int position)
{ {
int i, line = 1; int i, line = 1;
for (i = 0; i < position; i++) { for (i = 0; i < position; i++) {
......
...@@ -131,7 +131,7 @@ bool piglit_is_extension_in_string(const char *haystack, const char *needle); ...@@ -131,7 +131,7 @@ bool piglit_is_extension_in_string(const char *haystack, const char *needle);
*/ */
bool piglit_is_extension_in_array(const char **haystack, const char *needle); bool piglit_is_extension_in_array(const char **haystack, const char *needle);
int FindLine(const char *program, int position); int piglit_find_line(const char *program, int position);
void piglit_merge_result(enum piglit_result *all, enum piglit_result subtest); void piglit_merge_result(enum piglit_result *all, enum piglit_result subtest);
void piglit_report_result(enum piglit_result result); void piglit_report_result(enum piglit_result result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment