From cc245cc263d6503ed88dbca2abc88481d994b858 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 30 Nov 2024 17:22:06 -0500 Subject: [PATCH] new files --- scripts/c_library.refactor | 24 ++++++++++++++++++++++++ scripts/refactor_c_library.ps1 | 0 2 files changed, 24 insertions(+) create mode 100644 scripts/c_library.refactor create mode 100644 scripts/refactor_c_library.ps1 diff --git a/scripts/c_library.refactor b/scripts/c_library.refactor new file mode 100644 index 0000000..22c9961 --- /dev/null +++ b/scripts/c_library.refactor @@ -0,0 +1,24 @@ + __VERSION 1 + +// This is a example template to be used with the refactor program +// Use it to refactor the naming convention of this library to your own. +// Can be used as an aid to help use use your project's implementation if it fullfills the dependencies of this project. +// Example: Most likely have a memory and string library already, just rename the functions and make sure the args are the same. +// Program: https://github.com/Ed94/refactor + +// NOTE: Due to the current limitations of the program, not every symbol in the library can be renamed. +// This is due to the program not actually parsing C/C++. + +// not : Ignore +// include : #includes +// word : Alphanumeric or underscore +// namespace : Prefix search and replace (c-namspaces). +// regex : Unavailable in __VERSION 1. + +// Precedence (highest to lowest): +// word, namespace, regex + +// Gen Macro namespace +// namespace GEN_, new_namespace_ + +// TODO(Ed): This will be large as nearly all symbols will need to optionally support getting prefixed with gen_ or something else the user wants. diff --git a/scripts/refactor_c_library.ps1 b/scripts/refactor_c_library.ps1 new file mode 100644 index 0000000..e69de29