[Piglit] [PATCH 5/6] util: Rename generated dispatch files
Chad Versace
chad.versace at linux.intel.com
Mon Jun 16 09:05:01 PDT 2014
Rename
generated_dispatch.[ch] -> piglit-dispatch-gen.[ch]
to match the filename convention followed by all other files in
tests/util.
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
cmake/piglit_dispatch.cmake | 4 ++--
tests/util/.gitignore | 4 ++--
tests/util/gen_dispatch.py | 4 ++--
tests/util/piglit-dispatch.c | 2 +-
tests/util/piglit-dispatch.h | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/cmake/piglit_dispatch.cmake b/cmake/piglit_dispatch.cmake
index 2ef6a85..ee5678e 100644
--- a/cmake/piglit_dispatch.cmake
+++ b/cmake/piglit_dispatch.cmake
@@ -25,8 +25,8 @@ set(piglit_dispatch_gen_output_dir ${CMAKE_BINARY_DIR}/tests/util)
file(MAKE_DIRECTORY ${piglit_dispatch_gen_output_dir})
set(piglit_dispatch_gen_outputs
- ${piglit_dispatch_gen_output_dir}/generated_dispatch.c
- ${piglit_dispatch_gen_output_dir}/generated_dispatch.h
+ ${piglit_dispatch_gen_output_dir}/piglit-dispatch-gen.c
+ ${piglit_dispatch_gen_output_dir}/piglit-dispatch-gen.h
${piglit_dispatch_gen_output_dir}/piglit-util-gl-enum-gen.c
)
diff --git a/tests/util/.gitignore b/tests/util/.gitignore
index 03b680d..64620dc 100644
--- a/tests/util/.gitignore
+++ b/tests/util/.gitignore
@@ -1,4 +1,4 @@
config.h
-generated_dispatch.c
-generated_dispatch.h
+piglit-dispatch-gen.c
+piglit-dispatch-gen.h
piglit-util-gl-enum-gen.c
diff --git a/tests/util/gen_dispatch.py b/tests/util/gen_dispatch.py
index 9b559cd..6350e9a 100644
--- a/tests/util/gen_dispatch.py
+++ b/tests/util/gen_dispatch.py
@@ -57,8 +57,8 @@ def main():
registry.gl.debug = debug
gl_registry = registry.gl.parse()
- dispatch_h = open(os.path.join(args.out_dir, 'generated_dispatch.h'), 'w')
- dispatch_c = open(os.path.join(args.out_dir, 'generated_dispatch.c'), 'w')
+ dispatch_h = open(os.path.join(args.out_dir, 'piglit-dispatch-gen.h'), 'w')
+ dispatch_c = open(os.path.join(args.out_dir, 'piglit-dispatch-gen.c'), 'w')
DispatchCode(gl_registry).emit(dispatch_h, dispatch_c)
dispatch_h.close()
dispatch_c.close()
diff --git a/tests/util/piglit-dispatch.c b/tests/util/piglit-dispatch.c
index c48a68e..bf5c633 100644
--- a/tests/util/piglit-dispatch.c
+++ b/tests/util/piglit-dispatch.c
@@ -169,7 +169,7 @@ check_extension(const char *name)
return piglit_is_extension_supported(name);
}
-#include "generated_dispatch.c"
+#include "piglit-dispatch-gen.c"
/**
* Initialize the dispatch mechanism.
diff --git a/tests/util/piglit-dispatch.h b/tests/util/piglit-dispatch.h
index 2d1d5eb..cca7d59 100644
--- a/tests/util/piglit-dispatch.h
+++ b/tests/util/piglit-dispatch.h
@@ -154,7 +154,7 @@ void piglit_dispatch_init(piglit_dispatch_api api,
piglit_dispatch_function_ptr
piglit_dispatch_resolve_function(const char *name);
-#include "generated_dispatch.h"
+#include "piglit-dispatch-gen.h"
void piglit_dispatch_default_init(piglit_dispatch_api api);
--
2.0.0.rc1
More information about the Piglit
mailing list