Merge pull request #2 from CindyLinz/master

token.c include r3_str.h for my_strdup & my_strndup
This commit is contained in:
Pedro 2014-05-17 03:17:48 +08:00
commit 0cc956aaf7
2 changed files with 9 additions and 2 deletions

View file

@ -8,9 +8,15 @@
#ifndef DEFINE_H
#define DEFINE_H
#ifndef bool
typedef unsigned char bool;
#endif
#ifndef FALSE
# define FALSE 0
#endif
#ifndef TRUE
# define TRUE 1
#endif
// #define DEBUG 1
#ifdef DEBUG

View file

@ -9,6 +9,7 @@
#include <string.h>
#include <assert.h>
#include "str_array.h"
#include "r3_str.h"
str_array * str_array_create(int cap) {