#define IS_<target>_PORT for all ports
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 23 Feb 2001 18:48:20 +0000 (18:48 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 23 Feb 2001 18:48:20 +0000 (18:48 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@651 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/port.h

index 57aebe82f72072eeff1e8f9465f7d8a586c29f77..e23528f807d7211055763cee79b82415f9d8ddef 100644 (file)
@@ -209,8 +209,6 @@ extern PORT avr_port;
 #endif
 #if !OPT_DISABLE_DS390
 extern PORT ds390_port;
-#else
-PORT ds390_port;
 #endif
 #if !OPT_DISABLE_PIC
 extern PORT pic14_port;
@@ -222,12 +220,14 @@ extern PORT i186_port;
 extern PORT tlcs900h_port;
 #endif
 
-/* Test to see if we are current compiling in DS390 mode. */
+/* Test to see if we are current compiling in what? port. */
 #define IS_MCS51_PORT (port == &mcs51_port)
 #define IS_GBZ80_PORT (port == &gbz80_port)
 #define IS_Z80_PORT (port == &z80_port)
 #define IS_AVR_PORT (port == &avr_port)
 #define IS_DS390_PORT (port == &ds390_port)
-#define IS_PIC_PORT (port == &pic14_port)
+#define IS_PIC14_PORT (port == &pic14_port)
+#define IS_I186_PORT (port == &i186_port)
+#define IS_TCLS900H_PORT (port == &tlcs900h_port)
 
-#endif
+#endif PORT_INCLUDE