diff --git a/LibList/CellElement.c b/LibList/CellElement.c index 32824cc..d974d4f 100644 --- a/LibList/CellElement.c +++ b/LibList/CellElement.c @@ -1,18 +1,33 @@ +<<<<<<< HEAD /* * @Author: klmp200 * @Date: 2016-12-10 01:32:50 * @Last Modified by: klmp200 * @Last Modified time: 2016-12-10 21:08:25 */ +======= +/*** +--- CellElemFunc --- +---Created by : Naej Doree --- +***/ +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 #include #include #include +<<<<<<< HEAD cellElement * CreateCellElem(){ cellElement * elem = NULL; elem = (cellElement*) malloc(sizeof(cellElement)); +======= + +cellElement * CreateCellElem(){ + cellElement * elem = NULL; + elem = (cellElement*) malloc(sizeof(cellElement)); + +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 if (elem == NULL){ return NULL; } @@ -23,8 +38,13 @@ cellElement * CreateCellElem(){ elem->nextCol = NULL; elem->nextRow = NULL; +<<<<<<< HEAD return elem; +======= + + return elem; +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 } void freeCellElem(cellElement * elem){ @@ -36,7 +56,11 @@ int AddNextCol(cellElement* tree){ cellElement * elem = NULL; elem = (cellElement*) malloc(sizeof(cellElement)); +<<<<<<< HEAD +======= + +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 if (elem == NULL){ return -1; } @@ -52,7 +76,11 @@ int AddNextCol(cellElement* tree){ }else{ return -2; } +<<<<<<< HEAD +======= + +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 return 1; } @@ -61,7 +89,11 @@ int AddNextRow(cellElement* tree){ cellElement * elem = NULL; elem = (cellElement*) malloc(sizeof(cellElement)); +<<<<<<< HEAD +======= + +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 if (elem == NULL){ return -1; } @@ -87,7 +119,10 @@ void removeNextCol(cellElement* tree){ free(elem); elem = NULL; tree->nextCol = NULL; +<<<<<<< HEAD +======= +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 } } @@ -100,7 +135,10 @@ void removeNextRow(cellElement* tree){ free(elem); elem =NULL; tree->nextRow = NULL; +<<<<<<< HEAD +======= +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 } } diff --git a/LibList/CellElement.h b/LibList/CellElement.h index 7a603b5..d1cfec6 100644 --- a/LibList/CellElement.h +++ b/LibList/CellElement.h @@ -38,6 +38,7 @@ struct cellElement { }; typedef struct cellElement cellElement; +<<<<<<< HEAD cellElement * CreateCellElem(); void freeCellElem(cellElement * elem); @@ -48,6 +49,18 @@ int AddNextRow(cellElement* tree); void removeNextCol(cellElement* list); void removeNextRow(cellElement* list); +======= + +cellElement * CreateCellElem(); +void freeCellElem(cellElement * elem); + +int AddNextCol(cellElement* tree); +int AddNextRow(cellElement* tree); + +void removeNextCol(cellElement* list); +void removeNextRow(cellElement* list); + +>>>>>>> 7e928547972ebd5897e1f416cb7a9a885479ed84 void recursivePrint(cellElement * tree); void FreeCellElement(cellElement* element); diff --git a/Makefile b/Makefile index ace23eb..10f81cc 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,6 @@ DEPENDENCENAMELIST=List all: $(TARGET) - #Generating the main.exe $(TARGET): $(SOURCEOFILE) $(DEPENDENCELIST) lib @echo "\n Generating the " $(TARGET) " binary" @@ -55,4 +54,3 @@ clean: rm -rf *.o ./Libs/*.so *.exe $(MAKE) -C LibCell clean $(MAKE) -C LibList clean - diff --git a/main.c b/main.c index 1dd9e58..6e3db4d 100644 --- a/main.c +++ b/main.c @@ -8,7 +8,7 @@ #include #include - +#include #include int main(int argc, char **argv){