diff --git a/cpp/_rvmain.cpp b/cpp/_rvmain.cpp index 654ea3e..6613a3e 100644 --- a/cpp/_rvmain.cpp +++ b/cpp/_rvmain.cpp @@ -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;