From a6df384fda3d4065d549f65ef9d484ee4f369485 Mon Sep 17 00:00:00 2001 From: AIR Date: Fri, 29 Jul 2022 22:44:52 -0400 Subject: [PATCH] Updated COMMENTS section in mbc.bas --- mbc4.bas | 6 +++++- mbc4.cc | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mbc4.bas b/mbc4.bas index 5a1c8bc..4f11917 100644 --- a/mbc4.bas +++ b/mbc4.bas @@ -102,6 +102,10 @@ cue that a new Basic function is needed. This section is used to communicate to-do 's, changes, ideas, suggestions, etc. ****************************************************************************************** ------------------------------------------- +2022-07-29 Armando Rivera + * Added (char*) cast in PrintWriteFormat$ function to eliminate -Wwrite-strings warning + * Added (char*) cast in iMatchLft/iMatchWrd/iMatchRgt macros to eliminate -Wwrite-strings warning +------------------------------------------- 2022-07-26 Armando Rivera After a LONG time away.... * Changed max size of szTmp$, Src$, and AbortSrc$ (65535)to avoid potential buffer overflows @@ -2633,7 +2637,7 @@ FUNCTION PrintWriteFormat$(DoWrite) IF NewLineFlag = 0 THEN CONCAT (Frmat$,"\\n") END IF - ' AIR 2022-07-29 Added (char*) cast to eliminate -Wwrite-strings error + ' AIR 2022-07-29 Added (char*) cast to eliminate -Wwrite-strings warning FUNCTION = "printf((char*)" + ENC$(Frmat$) + Clean$(Arg$) + ");" END FUNCTION ' PrintWriteFormat$ SUB EmitInputCode diff --git a/mbc4.cc b/mbc4.cc index f0cbfdd..0c4c5b0 100644 --- a/mbc4.cc +++ b/mbc4.cc @@ -886,6 +886,10 @@ static char* ReservedWord[]= // This section is used to communicate to-do 's, changes, ideas, suggestions, etc. // ****************************************************************************************** // ------------------------------------------- +// 2022-07-29 Armando Rivera +// * Added (char*) cast in PrintWriteFormat$ function to eliminate -Wwrite-strings warning +// * Added (char*) cast in iMatchLft/iMatchWrd/iMatchRgt macros to eliminate -Wwrite-strings warning +// ------------------------------------------- // 2022-07-26 Armando Rivera // After a LONG time away.... // * Changed max size of szTmp$, Src$, and AbortSrc$ (65535)to avoid potential buffer overflows