This commit is contained in:
mpabi 2024-05-28 09:50:06 +00:00
parent c54b4ce2eb
commit 3396867a11
1 changed files with 4 additions and 4 deletions

View File

@ -21,15 +21,15 @@ void strcpy(char *s, char *t)
class NewDefine{
private:
static const int ALLOCSIZE= 10000;
static const int ALLOCSIZE;
};
const int NewDefine::ALLOCSIZE;
const int NewDefine::ALLOCSIZE = 10000;
#define ALLOCSIZE 10000
static char allocbuf[ALLOCSIZE];
static char *allocp = allocbuf;
char *alloc(int n)
@ -68,7 +68,7 @@ bool is_delim(char c, 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) {
static_str = str;