update
This commit is contained in:
parent
c54b4ce2eb
commit
3396867a11
|
@ -21,15 +21,15 @@ void strcpy(char *s, char *t)
|
||||||
class NewDefine{
|
class NewDefine{
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const int ALLOCSIZE= 10000;
|
static const int ALLOCSIZE;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const int NewDefine::ALLOCSIZE;
|
const int NewDefine::ALLOCSIZE = 10000;
|
||||||
|
|
||||||
#define ALLOCSIZE 10000
|
#define ALLOCSIZE 10000
|
||||||
|
|
||||||
static char allocbuf[ALLOCSIZE];
|
static char allocbuf[ALLOCSIZE];
|
||||||
|
|
||||||
static char *allocp = allocbuf;
|
static char *allocp = allocbuf;
|
||||||
|
|
||||||
char *alloc(int n)
|
char *alloc(int n)
|
||||||
|
@ -68,7 +68,7 @@ bool is_delim(char c, const char *delims) {
|
||||||
}
|
}
|
||||||
|
|
||||||
char *simple_strtok(char *str, const char *delims) {
|
char *simple_strtok(char *str, const char *delims) {
|
||||||
static char *static_str = (char *) NULL;
|
char *static_str = (char *) NULL;
|
||||||
|
|
||||||
if (str !=(char *) NULL) {
|
if (str !=(char *) NULL) {
|
||||||
static_str = str;
|
static_str = str;
|
||||||
|
|
Loading…
Reference in New Issue