From c2c1eac497a2fae77475a9923e760bf1b479bb00 Mon Sep 17 00:00:00 2001 From: fdai7057 Date: Mon, 30 Jan 2023 11:18:51 +0100 Subject: [PATCH] renaming files: source and header files start with lower case letters. Fixingorder of statements in build-project.sh --- build-project.sh | 4 +++- src/{CreateCustomer.c => createCustomer.c} | 10 +--------- src/{CreateCustomer.h => createCustomer.h} | 2 +- ...ustomerProperties.h => customerProperties.h} | 0 src/main.c | 4 ++++ src/prog | Bin 16024 -> 0 bytes tests/test_CreateCustomer.c | 2 +- 7 files changed, 10 insertions(+), 12 deletions(-) rename src/{CreateCustomer.c => createCustomer.c} (97%) rename src/{CreateCustomer.h => createCustomer.h} (84%) rename src/{CustomerProperties.h => customerProperties.h} (100%) create mode 100644 src/main.c delete mode 100755 src/prog diff --git a/build-project.sh b/build-project.sh index 9761777..949b9be 100755 --- a/build-project.sh +++ b/build-project.sh @@ -1,5 +1,7 @@ +clear ceedling test:all cd src/ +gcc main.c createCustomer.c -o prog ./prog -clear; +rm prog cd .. diff --git a/src/CreateCustomer.c b/src/createCustomer.c similarity index 97% rename from src/CreateCustomer.c rename to src/createCustomer.c index a84ed15..dbc78d6 100644 --- a/src/CreateCustomer.c +++ b/src/createCustomer.c @@ -1,13 +1,5 @@ -#include "CreateCustomer.h" +#include "createCustomer.h" /*Code written by Julius Philipp Engel, fdai7057*/ - -/* -int main() -{ - collectCustomerProperties(); -} -*/ - int generateID() { srand(clock()); diff --git a/src/CreateCustomer.h b/src/createCustomer.h similarity index 84% rename from src/CreateCustomer.h rename to src/createCustomer.h index a7fdbc8..bd58756 100644 --- a/src/CreateCustomer.h +++ b/src/createCustomer.h @@ -2,7 +2,7 @@ #include #include #include -#include "CustomerProperties.h" +#include "customerProperties.h" int generateID(); void collectCustomerProperties(); void writeCustomerPropertiesToFile(customer_t *); diff --git a/src/CustomerProperties.h b/src/customerProperties.h similarity index 100% rename from src/CustomerProperties.h rename to src/customerProperties.h diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..84a49ac --- /dev/null +++ b/src/main.c @@ -0,0 +1,4 @@ +#include "createCustomer.h" +int main(){ + collectCustomerProperties(); +} diff --git a/src/prog b/src/prog deleted file mode 100755 index fbb676394c2955a52e3c17ad0cfe443c29f8934f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16024 zcmeHOeQ;aVmA{f4@H$3OQkMisw=dM82@@1KBq8CWNVb&3*(5l@34s7Fvh)-w$a=2y zL>z{+3F6DEb(=D!3(IVW0;RM=x6IIGcc<-4it<5Qrjyc^0S1;((ylTwyQVRaDQVT; z@4k2KXT{7i{i~hPvCljAch9-!-h1wSPxpP?FUHob@_0N#kx%#pQDCMJOChT(ZOu}l ziRog2_X=;ESt#{2ZIGOxWv}ALC4sx z-mqDG_oe0UHJ3g-aPJqpzwpAmJAU}()rV;#Pz z4xe9#=hfj?U06fybj9ZgtkHt*3PVc@>FIdS;PA?XWq%a0EmMG-oxui&$14d5h zdZu6|R<6_wiFht028vceB(i4WHj#*DA;k{EN~Gg?kwR|45UGKDCTFEkE-@I_Q<+>m zo4LaP#Dqworg+}c`{S9MAm+qaE>^GW?(EW+1g{uRbp$V;NROvNXl(C#J!#~P9hrh< z=jP{lXxySL!MUhS{p~hwj2RI2Lm)piDryZ zqQDtSG@=!D=c2g*N}LpJlsIALP~ya#OL?vk8YNoRPT3;F0?O&Q{!q4J4pX8hODX+A zte~7B#MP9zW;Uo1fkp%x5oko95rIYo8WCtjpb>$;<_KJ08fmVs#=?1D<%7jSluKi^ zTJ4?#mbZ4abg+3_rS>fEDr=8(?MUYCo`~j(2VydaHDNw5NAdmG`XsD#wCC43`2g*J?e(rDuK( zv2jc7+0!Uh)o~ar&uy=y_N%|iD7C+Oj82|^giijEtsK6K$CWQwpDN!qg7S#BKB8?zkdnrMD{o@b4o>zWx z+G;C5aE2~lvRW{#JsWE;!D0E9Gw^A9OYNtV>J2d3S2-6x;bZR)*dS5-Y`Mfxpgl87 zBdxV(qsXkj@uyl1KB~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ON1?y7mb>$DhE`)i&^$)(jmA(UzoXf0J(WA>Sw_O?ZMZz?iWcQmD Lm{&>(ol5>05lbe+ diff --git a/tests/test_CreateCustomer.c b/tests/test_CreateCustomer.c index 5ec9af0..5cf0933 100644 --- a/tests/test_CreateCustomer.c +++ b/tests/test_CreateCustomer.c @@ -1,6 +1,6 @@ #include #include -#include "CreateCustomer.h" +#include "createCustomer.h" void setUp(){} void tearDown(){}