- cleaning and refactoring functionality

- parser function new WIP (old included as comment-> must be integrated)
This commit is contained in:
2017-02-28 17:11:57 +00:00
parent 05dd972ec7
commit 0974cc3ecf
11 changed files with 627 additions and 188 deletions

25
src/ext/xmalloc.c Normal file
View File

@@ -0,0 +1,25 @@
/*!
* @file xmalloc.c
* @brief
* @details
* Project: \n
* Subsystem: \n
* Module: \n
* Code: GNU-C\n
*
* @date 28.02.2017
* @author SESA354004
*/
#include "xmalloc.h"
#include "xtypes.h"
void *xmalloc(size_t size)
{
void *value = malloc(size);
if (value == 0)
perror("virtual memory exhausted");
else
memset(value, 0, size);
return value;
}