1
0
mirror of https://gitlab.com/klmp200/LO27.git synced 2025-07-14 03:59:24 +00:00

Add true makefile + lists

This commit is contained in:
2016-12-10 02:28:10 +01:00
parent 2dd85ff6cd
commit 9d57b532f6
8 changed files with 399 additions and 29 deletions

16
LibCell/CellElement.c Normal file
View File

@ -0,0 +1,16 @@
/*
* @Author: klmp200
* @Date: 2016-12-10 01:32:50
* @Last Modified by: klmp200
* @Last Modified time: 2016-12-10 01:33:40
*/
#include <stdio.h>
#include <stdlib.h>
#include <CellElment.h>
void freeCellElement(cellElement* element) {
if (element != NULL){
free(element);
}
}

45
LibCell/CellElement.h Normal file
View File

@ -0,0 +1,45 @@
#ifndef CELLELMNT_H
#define CELLELMNT_H
/*---bool---
*@true : 1
*@false : 0
*/
typedef enum Bool{
true = 1;
false = 0;
} bool;
/*---cellElement---
*Pointer on a cell of the matrix
*
*@colIndex : index (int) of the column of this cell
*@rowIndex : index (int) of the row of this cell
*
*@value : a boolean that is the content of the cell
*
*@nextCol : pointer on the next cellElement in the same column
*@nextRow : pointer on the next cellElement in the same row
*
*/
struct cellElement {
int colIndex;
int rowIndex;
bool value;
struct cellElement * nextCol;
struct cellElement * nextRow;
};
typedef struct cellElement * cellElement;
void freeCellElement(cellElement* element);
#endif