From 3396867a11aa21e2322920dfe741648623aaebb8 Mon Sep 17 00:00:00 2001 From: mpabi Date: Tue, 28 May 2024 09:50:06 +0000 Subject: [PATCH] update --- cpp/_rvmain.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;