Cleanup: Rename patches.i to patches.h
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 May 2020 14:51:03 +0000 (10:51 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 7 May 2020 14:53:13 +0000 (10:53 -0400)
This generated header file contains a list of patches applied on the
lttng-modules tree. Based on the C99 specification, ".i" files are not
supposed to be preprocessed, although this header header file is
expected to be preprocessed.

Rename it from ".i" to ".h" to convey that it is a C header meant to be
preprocessed.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
scripts/extra-version-patches.sh
src/lttng-events.c
src/lttng-wrapper-impl.c

index da79e1fd54a15c1a77a0dfca29c53ef978552558..aecbb2c9473fb7a292d7bfd9f1ae8a57348f92a1 100755 (executable)
@@ -19,9 +19,9 @@ if test ! -d "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}"; then
        mkdir "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}"
 fi
 
-if test ! -f "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.i" || \
-       test x"$(cat "${TMPFILE}")" != x"$(cat "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.i")"; then
-       mv "${TMPFILE}" "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.i"
+if test ! -f "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.h" || \
+       test x"$(cat "${TMPFILE}")" != x"$(cat "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.h")"; then
+       mv "${TMPFILE}" "${TOP_LTTNG_MODULES_DIR}/${INCLUDE_DIR}/patches.h"
 fi
 
 rm -f "${TMPFILE}"
index a85360912271c8725c4d59e329f4c3ea212ca6cf..6bef77c934ccc765418a5ed9d9d2a6be4bfe4082 100644 (file)
@@ -3071,7 +3071,7 @@ static void __exit lttng_events_exit(void)
 
 module_exit(lttng_events_exit);
 
-#include <generated/patches.i>
+#include <generated/patches.h>
 #ifdef LTTNG_EXTRA_VERSION_GIT
 MODULE_INFO(extra_version_git, LTTNG_EXTRA_VERSION_GIT);
 #endif
index e7f5660fa3e5dea62e1dd2e70bbfbc4cb3796538..d83ced4189aaaf413565ec5a5f398c426b4674eb 100644 (file)
@@ -21,7 +21,7 @@ static void __exit lttng_exit(void)
 
 module_exit(lttng_exit);
 
-#include <generated/patches.i>
+#include <generated/patches.h>
 #ifdef LTTNG_EXTRA_VERSION_GIT
 MODULE_INFO(extra_version_git, LTTNG_EXTRA_VERSION_GIT);
 #endif
This page took 0.02998 seconds and 4 git commands to generate.