OSDN Git Service

[Refactor] #37353 ACORN (旧式RISC OS)のサポートに由来するプリプロを削除 / Removed preprocessors 'ACORN...
authorHourier <hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 08:51:49 +0000 (17:51 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 09:28:50 +0000 (18:28 +0900)
src/files.c
src/h-config.h
src/h-define.h
src/h-system.h
src/main.c
src/util.c

index 55e4c78..13530d7 100644 (file)
@@ -5614,7 +5614,7 @@ void process_player_name(player_type *creature_ptr, bool sf)
        if (current_world_ptr->character_generated) strcpy(old_player_base, creature_ptr->base_name);
 
        /* Cannot be too long */
-#if defined(MACINTOSH) || defined(ACORN)
+#if defined(MACINTOSH)
        if (strlen(creature_ptr->name) > 15)
        {
                /* Name too long */
index 674bcd8..d600c8a 100644 (file)
 #endif
 
 /*
- * Extract the "ACORN" flag from the compiler
- */
-#ifdef __riscos
-# ifndef ACORN
-#  define ACORN
-# endif
-#endif
-
-/*
  * Extract the "SGI" flag from the compiler
  */
 #ifdef sgi
  * Basically, SET_UID should *only* be set for "Unix" machines,
  * or for the "Atari" platform which is Unix-like, apparently
  */
-#if !defined(MACINTOSH) && !defined(WINDOWS) && \
-    !defined(ACORN) && !defined(VM)
+#if !defined(MACINTOSH) && !defined(WINDOWS) && !defined(VM)
 # define SET_UID
 #endif
 
  * Every system seems to use its own symbol as a path separator.
  * Default to the standard Unix slash, but attempt to change this
  * for various other systems.  Note that any system that uses the
- * "period" as a separator (i.e. ACORN) will have to pretend that
- * it uses the slash, and do its own mapping of period <-> slash.
+ * "period" as a separator will have to pretend that it uses the
+ * slash, and do its own mapping of period <-> slash.
  * Note that the VM system uses a "flat" directory, and thus uses
  * the empty string for "PATH_SEP".
  */
index 868e87d..74d58fe 100644 (file)
 
 
 /*
- * Hack -- assist "main-acn.c" 
- */
-#ifdef ACORN
-# define O_RDONLY      0
-# define O_WRONLY      1
-# define O_RDWR                2
-#endif
-
-
-/*
  * The constants "TRUE" and "FALSE"
  */
 
index 80d2c05..8b5106c 100644 (file)
@@ -72,8 +72,7 @@
 # include <io.h>
 #endif
 
-#if !defined(MACINTOSH) && \
-    !defined(ACORN) && !defined(VM)
+#if !defined(MACINTOSH) && !defined(VM)
 # if defined(__TURBOC__) || defined(__WATCOMC__)
 #  include <mem.h>
 # else
@@ -82,7 +81,7 @@
 #endif
 
 
-#if !defined(NeXT) && !defined(__MWERKS__) && !defined(ACORN)
+#if !defined(NeXT) && !defined(__MWERKS__)
 # include <fcntl.h>
 #endif
 
index 0fae8c3..86c2d33 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 
-#if !defined(MACINTOSH) && !defined(WINDOWS) && !defined(ACORN)
+#if !defined(MACINTOSH) && !defined(WINDOWS)
 
 
 /*
index c05d357..bb897ee 100644 (file)
@@ -261,17 +261,6 @@ void user_name(char *buf, int id)
  */
 
 
-#ifdef ACORN
-
-
- /*
-  * Most of the "file" routines for "ACORN" should be in "main-acn.c"
-  */
-
-
-#else /* ACORN */
-
-
 #ifdef SET_UID
 
  /*
@@ -492,9 +481,6 @@ errr my_fclose(FILE *fff)
 }
 
 
-#endif /* ACORN */
-
-
 #ifdef HAVE_MKSTEMP
 
 FILE *my_fopen_temp(char *buf, int max)
@@ -641,20 +627,6 @@ errr my_fputs(FILE *fff, concptr buf, huge n)
 }
 
 
-#ifdef ACORN
-
-
-/*
- * Most of the "file" routines for "ACORN" should be in "main-acn.c"
- *
- * Many of them can be rewritten now that only "fd_open()" and "fd_make()"
- * and "my_fopen()" should ever create files.
- */
-
-
-#else /* ACORN */
-
-
 /*
  * The Macintosh is a little bit brain-dead sometimes
  */
@@ -995,11 +967,6 @@ errr fd_close(int fd)
 }
 
 
-#endif /* ACORN */
-
-
-
-
 /*
  * Important note about "colors"
  *