From e7da47e022ffbf66864c214889de5a9049096d0a Mon Sep 17 00:00:00 2001 From: coderarjob Date: Tue, 2 Feb 2021 23:26:02 +0530 Subject: [PATCH 1/3] headers folder contains tea.h and crossplatform.h --- build.sh | 2 +- crossplatform.h => headers/crossplatform.h | 0 tea.h => headers/tea.h | 4 ++-- main.c | 2 +- tea.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename crossplatform.h => headers/crossplatform.h (100%) rename tea.h => headers/tea.h (90%) diff --git a/build.sh b/build.sh index a7fd4c1..71f53f1 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,3 @@ #!/bin/sh -gcc -Wall -Wextra main.c tea.c -std=c99 -Wpedantic -o tea -I . +gcc -Wall -Wextra main.c tea.c -std=c99 -Wpedantic -o tea diff --git a/crossplatform.h b/headers/crossplatform.h similarity index 100% rename from crossplatform.h rename to headers/crossplatform.h diff --git a/tea.h b/headers/tea.h similarity index 90% rename from tea.h rename to headers/tea.h index b7749bc..89d331d 100644 --- a/tea.h +++ b/headers/tea.h @@ -12,8 +12,8 @@ #ifndef __TEA__ #define __TEA__ - #include "headers/stdint.h" // For standard int types - #include "headers/stdbool.h" // for bool, true, false + #include "stdint.h" // For standard int types + #include "stdbool.h" // for bool, true, false // Cannot be changed, without impact to the code. #define KEY_SIZE 16 // bytes diff --git a/main.c b/main.c index b1dea75..3bd656f 100644 --- a/main.c +++ b/main.c @@ -14,7 +14,7 @@ * --------------------------------------------------------------------------- * */ -#include "tea.h" +#include "headers/tea.h" #include "headers/stdint.h" // For standard int types. #include "headers/unistd.h" // For unlink #include // For printf and NULL, etc.. diff --git a/tea.c b/tea.c index 92fa306..d236344 100644 --- a/tea.c +++ b/tea.c @@ -9,7 +9,7 @@ * Dated : 16th August 2020 * --------------------------------------------------------------------------- * */ -#include "tea.h" +#include "headers/tea.h" #include "headers/unistd.h" // For read, write, access, close #include "headers/fcntl.h" // For open #include // For printf and NULL, etc.. From f8089c3a081f363ce36f9a074648b91f88d15808 Mon Sep 17 00:00:00 2001 From: coderarjob Date: Tue, 2 Feb 2021 23:34:55 +0530 Subject: [PATCH 2/3] linux binaries now placed at bin/linux --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 71f53f1..3fb0032 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,6 @@ #!/bin/sh -gcc -Wall -Wextra main.c tea.c -std=c99 -Wpedantic -o tea +if [ ! -e bin/linux ]; then + mkdir -p bin/linux || exit +fi +gcc -Wall -Wextra main.c tea.c -std=c99 -Wpedantic -o bin/linux/tea From fceb46359bdbdbc949951644cd0cead6109e6412 Mon Sep 17 00:00:00 2001 From: coderarjob Date: Tue, 2 Feb 2021 23:49:41 +0530 Subject: [PATCH 3/3] Updated CHANGES for v2.0.1 --- CHANGES.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 00a472a..4c17352 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +## Release version: 2.0.1 +* All header files are inside the headers folder. +* Binary for linux is built inside the bin/linux folder. + ## Release version: 2.0.0 * **BUG FIX**: Linux incompatability resolved. `typedef _int32 uint32_t` should be `typedef unsigend _int32 uint32_t`.