From 7845be623a6287694cb1226146706e0c7b2a56b7 Mon Sep 17 00:00:00 2001
From: fortandh <fortandh@qq.com>
Date: Sat, 24 Aug 2024 15:53:18 +0800
Subject: [PATCH 1/2] Mod: remove macro '_SINGLE_CASE'

---
 include/eextrn.h |  6 ------
 include/emain.h  |  1 -
 src/file.c       |  4 ----
 src/random.c     | 13 -------------
 4 files changed, 24 deletions(-)

diff --git a/include/eextrn.h b/include/eextrn.h
index c6fa20d..a0df989 100644
--- a/include/eextrn.h
+++ b/include/eextrn.h
@@ -492,11 +492,6 @@ extern  int     createVarList(meUByte ***listPtr) ;
  * consider where the platform file system only has one case and where it
  * is case insensitive
  */
-#ifdef _SINGLE_CASE
-/* Typically dos */
-#define MLFILECASE   (MLFILE|MLLOWER)
-#define MLBUFFERCASE MLBUFFER
-#else
 #ifdef _INSENSE_CASE
 /* Typically windows */
 #define MLFILECASE   (MLFILE|MLINSENSCASE)
@@ -506,7 +501,6 @@ extern  int     createVarList(meUByte ***listPtr) ;
 #define MLFILECASE   MLFILE
 #define MLBUFFERCASE MLBUFFER
 #endif
-#endif
 /* Following must be setup when using MLUSER, mlgsStrList must be an
  * array of completion strings, and mlgsStrListSize must be a count
  * of the number of completions. Not the completion array is sorted!
diff --git a/include/emain.h b/include/emain.h
index dbe7864..bab51be 100644
--- a/include/emain.h
+++ b/include/emain.h
@@ -123,7 +123,6 @@
 #define meSYSTEM_NAME  "dos"            /* Identity name of the system   */
 #define _CTRLZ         1                /* ^Z at end of files (MSDOS)    */
 #define _CTRLM         1                /* ^M at end of lines (MSDOS)    */
-#define _SINGLE_CASE   1                /* Files only have single case   */
 #define _MOUSE         1                /* Mouse supported               */
 #define _DRV_CHAR     ':'               /* drive divide letter, C:\dos   */
 #define _CONVDIR_CHAR '\\'              /* Filename convert '\\' => '/'  */
diff --git a/src/file.c b/src/file.c
index e1a0933..07b1b9c 100644
--- a/src/file.c
+++ b/src/file.c
@@ -3015,10 +3015,6 @@ pathNameCorrect(meUByte *oldName, int nameType, meUByte *newName, meUByte **base
                 p1++ ;
             }
         }
-#ifdef _SINGLE_CASE
-        if(flag == 0)
-            makestrlow(newName) ;
-#endif
     }
     if(baseName != NULL)
     {
diff --git a/src/random.c b/src/random.c
index 9f2d55e..c68fa5d 100644
--- a/src/random.c
+++ b/src/random.c
@@ -2702,19 +2702,6 @@ gotoAlphaMark(int f, int n)
     return meTRUE ;
 }
 
-
-#ifdef _SINGLE_CASE
-/* make string lower case */
-void
-makestrlow(meUByte *str)
-{
-    register meUByte cc, *p=str ;
-    
-    while((cc=*p) != '\0')
-        *p++ = toLower(cc) ;
-}
-#endif
-
 int
 insFileName(int f, int n)
 {
-- 
GitLab


From 090bb1dd881ed99b4615c17657dc0f47b81e7460 Mon Sep 17 00:00:00 2001
From: fortandh <fortandh@qq.com>
Date: Sat, 24 Aug 2024 15:57:06 +0800
Subject: [PATCH 2/2] Mod: remove all macros in DOS

---
 include/emain.h | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/include/emain.h b/include/emain.h
index bab51be..2198998 100644
--- a/include/emain.h
+++ b/include/emain.h
@@ -116,18 +116,6 @@
 #define _DEFAULT_SEARCH_PATH "/usr/share/jasspa:/usr/local/jasspa"
 #endif
 
-/**************************************************************************
-* Microsoft : DOS                                                         *
-**************************************************************************/
-#ifdef _DOS
-#define meSYSTEM_NAME  "dos"            /* Identity name of the system   */
-#define _CTRLZ         1                /* ^Z at end of files (MSDOS)    */
-#define _CTRLM         1                /* ^M at end of lines (MSDOS)    */
-#define _MOUSE         1                /* Mouse supported               */
-#define _DRV_CHAR     ':'               /* drive divide letter, C:\dos   */
-#define _CONVDIR_CHAR '\\'              /* Filename convert '\\' => '/'  */
-#endif /* _DOS */
-
 /**************************************************************************
 * MinGW : GNU GCC on Windows                                              *
 **************************************************************************/
-- 
GitLab