Strip tabs and trailing white spaces, and fix end of files (#748)
* format: Strip trailing whitespaces
We want to get rid of trailing whitespaces completly as they make just git
noice. Much better to start using automated tools to get rid of them once and
not getting them back again. This way git history will be cleaner and review
easier.
Commit was generated with:
pre-commit run --all-files trailing-whitespace
* format: Files should have exactly one new line end of them
It is good practice that every file has one new line. It is not now days so
mandatory but it also is not nice if file has lot of newlines end of it. We will
use pre-commit which takes automatically care about this so let's fix all.
Commit was generated with:
pre-commit run --all-files end-of-file-fixer
* format: Convert tabs to spaces
Project mostly use spaces over tabs. When mixing tabs and spaces this usually
makes formatting issues and also when changing those in commits it will make lot
of git noise. We will force spaces most of the time and use pre-commit to fix.
Commit was generated with:
pre-commit run --all-files remove-tabs
---------
Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
@@ -6,8 +6,8 @@ and the (free) Microsoft Visual Studio Community Edition
|
||||
|
||||
## Building with Makefile under MinGW32
|
||||
|
||||
Note: Building for 64-bit with MinGW64 requires extra runtimes,
|
||||
whereas building for 32-bit as Win32 doesn't require any other
|
||||
Note: Building for 64-bit with MinGW64 requires extra runtimes,
|
||||
whereas building for 32-bit as Win32 doesn't require any other
|
||||
files for the EXE to work in any version of Windows.
|
||||
|
||||
* MSYS2 installation is (from powershell):
|
||||
@@ -41,7 +41,7 @@ files for the EXE to work in any version of Windows.
|
||||
* Verify make is built for Windows32:
|
||||
|
||||
make --version
|
||||
|
||||
|
||||
Built for Windows32
|
||||
|
||||
## Building and running with Microsoft Visual Studio
|
||||
|
||||
@@ -3,5 +3,3 @@ echo Build for Borland 5.5 tools
|
||||
set BORLAND_DIR=c:\borland\bcc55
|
||||
%BORLAND_DIR%\bin\make -f makefile.mak clean
|
||||
%BORLAND_DIR%\bin\make -f makefile.mak all
|
||||
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ static uint16_t Timer_Silence(void *arg)
|
||||
uint32_t now = timeGetTime();
|
||||
uint32_t delta_time = 0;
|
||||
|
||||
(void)arg;
|
||||
(void)arg;
|
||||
if (SilenceStartTime < now) {
|
||||
delta_time = now - SilenceStartTime;
|
||||
} else {
|
||||
|
||||
@@ -92,8 +92,8 @@ clean :
|
||||
# Compiler configuration file
|
||||
$(BCC_CFG) :
|
||||
Copy &&|
|
||||
$(CFLAGS)
|
||||
-c
|
||||
$(CFLAGS)
|
||||
-c
|
||||
-y #include line numbers in OBJ's
|
||||
-v #include debug info
|
||||
-w+ #turn on all warnings
|
||||
@@ -107,4 +107,4 @@ $(CFLAGS)
|
||||
-w-sig # ignore warning conversion may lose sig digits
|
||||
| $@
|
||||
|
||||
# EOF: makefile
|
||||
# EOF: makefile
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
set BORLAND_DIR=\bcc55
|
||||
|
||||
|
||||
Reference in New Issue
Block a user