OSDN Git Service

[Refactor] #40463 Removed unused preprocessor for MPW (Macintosh C Programming Worksh...
authorHourier <hourier@users.sourceforge.jp>
Thu, 4 Jun 2020 09:09:28 +0000 (18:09 +0900)
committerHourier <hourier@users.sourceforge.jp>
Thu, 4 Jun 2020 09:09:28 +0000 (18:09 +0900)
src/io/report.c

index 11c8dd7..8a13b11 100644 (file)
@@ -151,28 +151,7 @@ static int buf_sprintf(BUF *buf, concptr fmt, ...)
 
        if (ret < 0) return -1;
 
-#if ('\r' == 0x0a && '\n' == 0x0d)
-       {
-               /*
-                * Originally '\r'= CR (= 0x0d) and '\n'= LF (= 0x0a)
-                * But for MPW (Macintosh Programers Workbench), these
-                * are reversed so that '\r'=LF and '\n'=CR unless the
-                * -noMapCR option is not defined.
-                *
-                * We need to swap back these here since the score
-                * dump text should be written using LF as the end of
-                * line.
-                */
-               char *ptr;
-               for (ptr = tmpbuf; *ptr; ptr++)
-               {
-                       if (0x0d == *ptr) *ptr = 0x0a;
-               }
-       }
-#endif
-
        ret = buf_append(buf, tmpbuf, strlen(tmpbuf));
-
        return ret;
 }