diff options
author | ~login@aussies.space | 2019-11-14 09:56:13 +1100 |
---|---|---|
committer | ~login@aussies.space | 2019-11-14 09:56:13 +1100 |
commit | 595b9d40788feff26f4141e6e88386960438df28 (patch) | |
tree | 46012d7bcbeb7b29a24195b52833f7b29fcf79d5 | |
parent | 4f07e446befb30733a21dd42ea5eaa9d1a35f40f (diff) |
Creates separate definition files for tcoin.cpp and pcoin.cpp
I realised that different tilde servers will have different definitions but the same code otherwise, and 'git push' and 'git pull' to update the code on other servers would override those definitions. Thus, the tcoin.cpp and pcoin.cpp files now look the same for all tildeservers and have a #include "tcoin_defs.cpp" and #include "pcoin_defs.cpp" respectively. The configuration, which is in the form of #define symbolic constants, is stored in tcoin/bin/tcoin_defs.cpp and tcoin/bin/pcoin_defs.cpp. ntcoin is modified to create these two files with the right definitions. ntcoin is also modified so that compile_tcoin and compile_pcoin now include the -I option, which instructs the compiler to look for includes in additional directories, in this case, tcoin/bin .
-rwxr-xr-x | ntcoin | 0 | ||||
-rw-r--r-- | pcoin.cpp | 0 | ||||
-rw-r--r-- | tcoin.cpp | 0 |
3 files changed, 0 insertions, 0 deletions
diff --git a/ntcoin b/ntcoin index f0522e3..117a484 100755 --- a/ntcoin +++ b/ntcoin diff --git a/pcoin.cpp b/pcoin.cpp index 0a958ad..7978a6d 100644 --- a/pcoin.cpp +++ b/pcoin.cpp diff --git a/tcoin.cpp b/tcoin.cpp index 57ef57d..3595b69 100644 --- a/tcoin.cpp +++ b/tcoin.cpp |