notes: code clean

cmm: update build.bat files to use /D=LANG_XXX instead of creating lang.h--

git-svn-id: svn://kolibrios.org@8954 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2021-06-28 12:08:38 +00:00
parent 956739a5ad
commit 30c1f25537
63 changed files with 91 additions and 265 deletions

View File

@@ -3,4 +3,4 @@ if tup.getconfig("LANG") == "ru"
then C_LANG = "LANG_RUS"
else C_LANG = "LANG_ENG" -- this includes default case without config
end
tup.rule("tmpdisk.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "tmpdisk.com")
tup.rule("tmpdisk.c", "c-- /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "tmpdisk.com")

View File

@@ -1,8 +1,5 @@
@echo #define LANG_ENG 1 >lang.h--
@C-- tmpdisk.c
@C-- /D=LANG_ENG tmpdisk.c
@del tmpdisk
@rename tmpdisk.com tmpdisk
@del warning.txt
@del lang.h--
@pause

View File

@@ -1,8 +1,5 @@
@echo #define LANG_RUS 1 >lang.h--
@C-- tmpdisk.c
@C-- /D=LANG_RUS tmpdisk.c
@del tmpdisk
@rename tmpdisk.com tmpdisk
@del warning.txt
@del lang.h--
@pause

View File

@@ -4,10 +4,6 @@
#include "..\lib\strings.h"
#include "..\lib\fs.h"
#ifndef AUTOBUILD
#include "lang.h--"
#endif
/////////////////////////////////////////////////////////////////////////////////////////
///////////////////////// Program data ////////////////////
/////////////////////////////////////////////////////////////////////////////////////////