]> git.sur5r.net Git - cc65/commitdiff
Check for wrong header file inclusions, add CBM510 stuff
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 19 Sep 2001 08:46:07 +0000 (08:46 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 19 Sep 2001 08:46:07 +0000 (08:46 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@948 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 files changed:
include/ace.h
include/apple2.h
include/atari.h
include/c128.h
include/c64.h
include/cbm.h
include/cbm510.h
include/cbm610.h
include/geos.h
include/joystick.h
include/mouse.h
include/pet.h
include/plus4.h

index 7475b9a5617fd6acf10bb090a05688239489ea42..cb5df1f69dec802ab22f52841958a67bb47e1a55 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 Ullrich von Bassewitz                                       */
+/* (C) 1998-2001 Ullrich von Bassewitz                                       */
 /*               Wacholderweg 14                                             */
 /*               D-70597 Stuttgart                                           */
 /* EMail:        uz@musoftware.de                                            */
 
 
 
+/* Check for errors */
+#if !defined(__ACE__)
+#  error This module may only be used when compiling for the ACE os!
+#endif
+
+
+
 #ifndef _STDDEF_H
 #include <stddef.h>
 #endif
index a89052d5056f1eb34aabbc7a2575e683a6e6d38a..83e3a74836c63ae7675cf16165fd8cbc3b136ba0 100644 (file)
 
 
 
+/* Check for errors */
+#if !defined(__APPLE2__)
+#  error This module may only be used when compiling for the Apple ][!
+#endif
+
+
+
 /* Color Defines
  * Since Apple2 does not support color text these defines are only
  * used to get the library to compile correctly.  They should not be used
index 64e4b898afa060454ec60b7470e50db626acbca1..735433e27cac84414101da64ad704eea457c3ee9 100644 (file)
 /*                                                                           */
 /*****************************************************************************/
 
+
+
 #ifndef _ATARI_H
 #define _ATARI_H
 
+
+
+/* Check for errors */
+#if !defined(__ATARI__)
+#  error This module may only be used when compiling for the Atari!
+#endif
+
+
+
 /* Character codes */
 #define CH_DEL                 0xFE
 #define CH_ESC                 0x1B
 #define HUE_GREEN       12
 #define HUE_YELLOWGREEN 13
 #define HUE_YELLOW      14
-#define HUE_YELLOWRED   15
+#define HUE_YELLOWRED   15                                       
 
 /* Color defines, similar to c64 colors (untested) */
 #define COLOR_BLACK            _gtia_mkcolor(HUE_GREY,0)
index 1831f6e9bab29ad4ce77d2253c5f4737147182de..0cb08dc788ba0852ae5a2f3c934f32384c8ab49e 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 Ullrich von Bassewitz                                       */
+/* (C) 1998-2001 Ullrich von Bassewitz                                       */
 /*               Wacholderweg 14                                             */
 /*               D-70597 Stuttgart                                           */
 /* EMail:        uz@musoftware.de                                            */
 
 
 
-/*
- * c128.h
- *
- * Ullrich von Bassewitz, 12.08.1998
- */
+#ifndef _C128_H
+#define _C128_H
 
 
 
-#ifndef _C128_H
-#define _C128_H
+/* Check for errors */
+#if !defined(__C128__)
+#  error This module may only be used when compiling for the C128!
+#endif
 
 
 
index e537f948ef6cd079222695414bd8a5b8932437ac..05dcde047f80dfc62e5957d7a318ddbca61c2b45 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 Ullrich von Bassewitz                                       */
+/* (C) 1998-2001 Ullrich von Bassewitz                                       */
 /*               Wacholderweg 14                                             */
 /*               D-70597 Stuttgart                                           */
 /* EMail:        uz@musoftware.de                                            */
 
 
 
+/* Check for errors */
+#if !defined(__C64__)
+#  error This module may only be used when compiling for the C64!
+#endif
+
+
+
 /* Additional key defines */
 #define CH_F1                  133
 #define CH_F2                  137
index fc55b43d14db9fccf51da7a0d4a793f1dc01a080..c2ed283038db66661a84c2031220c9836b36c31d 100644 (file)
 
 
 
+/* Check for errors */
+#if !defined(__CBM__)
+#  error This module may only be used when compiling for CBM machines!
+#endif
+
+
+
 /* Load the system specific files here, if needed */
 #if defined(__C64__) && !defined(_C64_H)
 #  include <c64.h>
index 8a4286ee29c9a3f132a7ae1103ba183b6863b4f7..d4785d5579b411203586ffce1370fc8db8929eb0 100644 (file)
 
 
 
+/* Check for errors */
+#if !defined(__CBM510__)
+#  error This module may only be used when compiling for the CBM 510!
+#endif
+
+
+
 /* Additional key defines */
 #define CH_F1                  224
 #define CH_F2                  225
@@ -93,7 +100,7 @@ void __fastcall__ pokewsys (unsigned addr, unsigned val);
 /* Define hardware */
 #include <_vic.h>
 #define VIC            (*(struct __vic*)0xD800)
-
+                                                                 
 #include <_sid.h>
 #define        SID     (*(struct __sid*)0xDA00)
 
index 865d1452f7c6e61ac5f13448f19721d04eb04b42..416bcfa4bdce12cb2f0b7662b99ae18ef76963b9 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 Ullrich von Bassewitz                                       */
+/* (C) 1998-2001 Ullrich von Bassewitz                                       */
 /*               Wacholderweg 14                                             */
 /*               D-70597 Stuttgart                                           */
 /* EMail:        uz@musoftware.de                                            */
 
 
 
+/* Check for errors */
+#if !defined(__CBM610__)
+#  error This module may only be used when compiling for the CBM 610!
+#endif
+
+
+
 /* Additional key defines */
 #define CH_F1                  224
 #define CH_F2                  225
index 671a4aeb11555dbad17750d58342d24901df3af0..f70a88b6edce004b7261846157ec961587c0357a 100644 (file)
 
 
 
+/* Check for errors */
+#if !defined(__GEOS__)
+#  error This module may only be used when compiling for GEOS!
+#endif
+
+
+
 #ifndef _GCONST_H
 #include <geos/gconst.h>
 #endif
index 56fa729d2b4aa4da8c6afb3bdfb95c1588cf519c..fd92e2a8fc620ac6efba99b6d1d4f90928d5e017 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 Ullrich von Bassewitz                                       */
+/* (C) 1998-2001 Ullrich von Bassewitz                                       */
 /*               Wacholderweg 14                                             */
 /*               D-70597 Stuttgart                                           */
 /* EMail:        uz@musoftware.de                                            */
 
 
 /* Define __JOYSTICK__ for systems that support a joystick */
-#if defined(__ATARI__) || defined(__C64__) || defined(__C128__) || defined(__PLUS4__)
+#if defined(__ATARI__) || defined(__C64__) || defined(__C128__) || defined(__PLUS4__) || defined(__CBM510__)
 #  define __JOYSTICK__
-#endif
+#else
+#  error The target system does not support a joystick!
+# endif
 
 /* Argument for the function */
 #define JOY_1          0
index 87004e0ad59d93072b4157ce151e16a78301af85..92eec80c362442c4771f80e0cc1140f5370082be 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1999-2000 Ullrich von Bassewitz                                       */
+/* (C) 1999-2001 Ullrich von Bassewitz                                       */
 /*               Wacholderweg 14                                             */
 /*               D-70597 Stuttgart                                           */
 /* EMail:        uz@musoftware.de                                            */
 
 
 /* Define __MOUSE__ for systems that support a mouse */
-#if defined(__ATARI__) || defined(__C64__) || defined(__C128__)
+#if defined(__ATARI__) || defined(__C64__) || defined(__C128__) || defined(__CBM510__)
 #  define __MOUSE__
-#endif
+#else
+#  error The target system does not support a mouse!
+# endif
 
 
 
@@ -55,7 +57,7 @@
 #define MOUSE_TRAKBALL                 0
 #define MOUSE_ST               1
 #define MOUSE_AMIGA            2
-#define MOUSE_C64              3      /* 1351 mouse */
+#define MOUSE_CBM1351                  3      /* 1351 mouse */
 
 /* Mouse button masks */
 #define MOUSE_BTN_LEFT      0x10
index 22bc9b9be51b87547d9917a5cae6c5fca2926c1b..684d20f814a30858dc79adc39d2d921706146e53 100644 (file)
@@ -1,8 +1,35 @@
-/*
- * pet.h
- *
- * Ullrich von Bassewitz, 26.11.1998
- */
+/*****************************************************************************/
+/*                                                                           */
+/*                                  pet.h                                   */
+/*                                                                           */
+/*                     PET system specific definitions                      */
+/*                                                                           */
+/*                                                                           */
+/*                                                                           */
+/* (C) 1998-2001 Ullrich von Bassewitz                                       */
+/*               Wacholderweg 14                                             */
+/*               D-70597 Stuttgart                                           */
+/* EMail:        uz@musoftware.de                                            */
+/*                                                                           */
+/*                                                                           */
+/* This software is provided 'as-is', without any expressed or implied       */
+/* warranty.  In no event will the authors be held liable for any damages    */
+/* arising from the use of this software.                                    */
+/*                                                                           */
+/* Permission is granted to anyone to use this software for any purpose,     */
+/* including commercial applications, and to alter it and redistribute it    */
+/* freely, subject to the following restrictions:                            */
+/*                                                                           */
+/* 1. The origin of this software must not be misrepresented; you must not   */
+/*    claim that you wrote the original software. If you use this software   */
+/*    in a product, an acknowledgment in the product documentation would be  */
+/*    appreciated but is not required.                                       */
+/* 2. Altered source versions must be plainly marked as such, and must not   */
+/*    be misrepresented as being the original software.                      */
+/* 3. This notice may not be removed or altered from any source              */
+/*    distribution.                                                          */
+/*                                                                           */
+/*****************************************************************************/
 
 
 
 
 
 
+/* Check for errors */
+#if !defined(__PET__)
+#  error This module may only be used when compiling for the CBM PET!
+#endif
+
+
+
 /* Color defines */
 #define COLOR_BLACK            0x00
 #define COLOR_WHITE            0x01
index 2a4dd1b6b5348143180913def7da49f09b54f600..d3dd8bedaebdca640eed56068213cf327f4d794c 100644 (file)
@@ -1,8 +1,35 @@
-/*
- * plus4.h
- *
- * Ullrich von Bassewitz, 12.08.1998
- */
+/*****************************************************************************/
+/*                                                                           */
+/*                                 plus4.h                                  */
+/*                                                                           */
+/*                   Plus/4 system specific definitions                     */
+/*                                                                           */
+/*                                                                           */
+/*                                                                           */
+/* (C) 1998-2001 Ullrich von Bassewitz                                       */
+/*               Wacholderweg 14                                             */
+/*               D-70597 Stuttgart                                           */
+/* EMail:        uz@musoftware.de                                            */
+/*                                                                           */
+/*                                                                           */
+/* This software is provided 'as-is', without any expressed or implied       */
+/* warranty.  In no event will the authors be held liable for any damages    */
+/* arising from the use of this software.                                    */
+/*                                                                           */
+/* Permission is granted to anyone to use this software for any purpose,     */
+/* including commercial applications, and to alter it and redistribute it    */
+/* freely, subject to the following restrictions:                            */
+/*                                                                           */
+/* 1. The origin of this software must not be misrepresented; you must not   */
+/*    claim that you wrote the original software. If you use this software   */
+/*    in a product, an acknowledgment in the product documentation would be  */
+/*    appreciated but is not required.                                       */
+/* 2. Altered source versions must be plainly marked as such, and must not   */
+/*    be misrepresented as being the original software.                      */
+/* 3. This notice may not be removed or altered from any source              */
+/*    distribution.                                                          */
+/*                                                                           */
+/*****************************************************************************/
 
 
 
 
 
 
+/* Check for errors */
+#if !defined(__PLUS4__)
+#  error This module may only be used when compiling for the Plus/4!
+#endif
+
+
+
 /* Additional key defines */
 #define CH_F1                  133
 #define CH_F2                  137