Function movements

* string functions mstr*() are moved to string_utils.c
* allocation wrappers are moved to utils.h
* printf_* functions are moved to log.h

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-12-15 17:42:37 +00:00
parent c2c16fb8a1
commit 0cebbc370a
15 changed files with 174 additions and 147 deletions

View File

@@ -30,6 +30,7 @@
#include "common.h"
#include "win.h"
#include "c2.h"
#include "string_utils.h"
#define C2_MAX_LEVELS 10
@@ -218,8 +219,6 @@ static const c2_predef_t C2_PREDEFS[] = {
[C2_L_PROLE ] = { "role" , C2_L_TSTRING , 0 },
};
#define mstrncmp(s1, s2) strncmp((s1), (s2), strlen(s1))
/**
* Compare next word in a string with another string.
*/