Browse Source

renaming files: source and header files start with lower case letters. Fixingorder of statements in build-project.sh

remotes/origin/feature/customer-creation
fdai7057 2 years ago
parent
commit
c2c1eac497
  1. 4
      build-project.sh
  2. 10
      src/createCustomer.c
  3. 2
      src/createCustomer.h
  4. 0
      src/customerProperties.h
  5. 4
      src/main.c
  6. BIN
      src/prog
  7. 2
      tests/test_CreateCustomer.c

4
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 ..

10
src/CreateCustomer.c → 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());

2
src/CreateCustomer.h → src/createCustomer.h

@ -2,7 +2,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include "CustomerProperties.h"
#include "customerProperties.h"
int generateID();
void collectCustomerProperties();
void writeCustomerPropertiesToFile(customer_t *);

0
src/CustomerProperties.h → src/customerProperties.h

4
src/main.c

@ -0,0 +1,4 @@
#include "createCustomer.h"
int main(){
collectCustomerProperties();
}

BIN
src/prog

2
tests/test_CreateCustomer.c

@ -1,6 +1,6 @@
#include <unity.h>
#include <limits.h>
#include "CreateCustomer.h"
#include "createCustomer.h"
void setUp(){}
void tearDown(){}

Loading…
Cancel
Save