diff --git a/Converting header guards.txt b/Converting header guards.txt new file mode 100644 index 00000000..ebac60b0 --- /dev/null +++ b/Converting header guards.txt @@ -0,0 +1,12 @@ +How to convert the ETL header beween #include guards and #pragma once. + +Install +python3 -m pip install guardonce + +Navigate to etl/scripts + +Change from #include guard to #pragma once +./convert_headers_to_use_once.bat + +Change from #pragma once to #include guard +./convert_headers_to_use_guards.bat diff --git a/guard2once.txt b/guard2once.txt deleted file mode 100644 index b8476a5c..00000000 --- a/guard2once.txt +++ /dev/null @@ -1,10 +0,0 @@ -Install -python -m pip install guardonce - -Navigate to etl/include/etl - -Change from #include guard to #pragma once -guard2once -r "." - -Change from #pragma once to #include guard -once2guard -r -p "path | snake | prepend ETL | upper" . \ No newline at end of file diff --git a/scripts/convert_headers_to_use_guards.bat b/scripts/convert_headers_to_use_guards.bat new file mode 100644 index 00000000..fad64430 --- /dev/null +++ b/scripts/convert_headers_to_use_guards.bat @@ -0,0 +1 @@ +once2guard -r -p "name | snake | prepend ETL_ | append _INCLUDED | upper" ../include/etl diff --git a/scripts/convert_headers_to_use_once.bat b/scripts/convert_headers_to_use_once.bat new file mode 100644 index 00000000..b7dc1656 --- /dev/null +++ b/scripts/convert_headers_to_use_once.bat @@ -0,0 +1 @@ +guard2once -r "../include/etl" diff --git a/test/vs2022/etl.vcxproj b/test/vs2022/etl.vcxproj index 9955e527..721f9bcc 100644 --- a/test/vs2022/etl.vcxproj +++ b/test/vs2022/etl.vcxproj @@ -10496,6 +10496,8 @@ + + @@ -10512,6 +10514,7 @@ +