* device/include/asm/default/features.h,
authorMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 2 Dec 2006 11:53:42 +0000 (11:53 +0000)
committerMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 2 Dec 2006 11:53:42 +0000 (11:53 +0000)
* device/include/asm/ds390/features.h,
* device/include/mcs51/at89s53.h,
* device/include/ser.h,
* device/include/ser_ir.h,
* device/include/serial.h: changed keywords to double underscore variants,
  fixes bug 1590261 some more, thanks Steven Borley

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4498 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/include/asm/default/features.h
device/include/asm/ds390/features.h
device/include/mcs51/at89s53.h
device/include/ser.h
device/include/ser_ir.h
device/include/serial.h

index 0068839535d0201c5de21ecbbb1ad04f560b0dae..cd2c820756b3827807cc79f1a5422d0130afc575 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
+
+       * device/include/asm/default/features.h,
+       * device/include/asm/ds390/features.h,
+       * device/include/mcs51/at89s53.h,
+       * device/include/ser.h,
+       * device/include/ser_ir.h,
+       * device/include/serial.h: changed keywords to double underscore variants,
+         fixes bug 1590261 some more, thanks Steven Borley
+
 2006-12-01 Raphael Neider <rneider AT web.de>
 
        * src/pic/pcode.c (register_reassign): do not crash on recursive code
index 7695c7b4788353e1828db4c85bf6c4d7af2f2b1c..6e02808cd6b7bc50d59137c4fe9374975ef9531a 100644 (file)
@@ -3,8 +3,8 @@
 #ifndef __SDC51_ASM_FEATURES_H
 #define __SDC51_ASM_FEATURES_H   1
 
-#define _REENTRANT     reentrant
-#define _CODE          code
+#define _REENTRANT     __reentrant
+#define _CODE          __code
 #define _AUTOMEM
 #define _STATMEM
 
index cc3e5db4ea606bc8147d92fa8905292e36718c39..2d84124b99d3790ee4a34a13b18527e5023aaa07 100644 (file)
@@ -3,8 +3,8 @@
 #ifndef __SDC51_ASM_DS390_FEATURES_H
 #define __SDC51_ASM_DS390_FEATURES_H   1
 
-#define _REENTRANT     reentrant
-#define _CODE          code
+#define _REENTRANT     __reentrant
+#define _CODE          __code
 
 /* define _AUTOMEM to indicate the default storage class for
    automatic variables. To be used with pointers to automatic variables.
 */
 #if defined(SDCC_STACK_AUTO)
   #if defined(SDCC_USE_XSTACK)
-    #define _AUTOMEM pdata
+    #define _AUTOMEM __pdata
   #else
-    #define _AUTOMEM idata
+    #define _AUTOMEM __idata
   #endif
 #elif defined(SDCC_MODEL_SMALL)
-  #define _AUTOMEM data
+  #define _AUTOMEM __data
 #else
-  #define _AUTOMEM xdata
+  #define _AUTOMEM __xdata
 #endif
 
 /* define _STATMEM to indicate the default storage class for
@@ -38,9 +38,9 @@
    }
 */
 #if defined(SDCC_MODEL_SMALL)
-  #define _STATMEM data
+  #define _STATMEM __data
 #else
-  #define _STATMEM xdata
+  #define _STATMEM __xdata
 #endif
 
 #endif
index 57f015b2997e5b03682564222d9dc1ca5bf97781..0cffd2c022569882b41e7251139c3cbe388ab0d5 100644 (file)
 #endif
 
 /* define AT89S53 specific registers only */
-sfr at 0x84 DP1L;      /* Data Pointer 1 Low Byte */
-sfr at 0x85 DP1H ;     /* Data Pointer 1 High Byte */
-sfr at 0x86 SPDR;      /* SPI Data Register */
-sfr at 0xAA SPSR;      /* SPI Status Register */
-sfr at 0x96 WMCON;     /* Watchdog and Memory Control Register */
-sfr at 0xD5 SPCR;      /* SPI Control Register */
+__sfr __at (0x84) DP1L;     /* Data Pointer 1 Low Byte */
+__sfr __at (0x85) DP1H;     /* Data Pointer 1 High Byte */
+__sfr __at (0x86) SPDR;     /* SPI Data Register */
+__sfr __at (0xAA) SPSR;     /* SPI Status Register */
+__sfr __at (0x96) WMCON;    /* Watchdog and Memory Control Register */
+__sfr __at (0xD5) SPCR;     /* SPI Control Register */
 
 /*------------------------------------------------
 SPSR (0xAA) Bit Values - Reset Value = 0000.0000
index ca001e1d0ddfcf2985e96d09fe4704224ecdd73a..17035b401f5b0d18ad615a285eba03a8bc6abb7b 100644 (file)
@@ -25,7 +25,7 @@
 #define _SER_H_
 
 void ser_init(void);
-void ser_interrupt_handler(void) interrupt 4 using 1;
+void ser_interrupt_handler(void) __interrupt 4 __using 1;
 void ser_putc(unsigned char);
 unsigned char ser_getc(void);
 void ser_printString(char *String);
index 55c70a7a5b514f1aa3e4141420a8f1154e93253e..97b79df2feb469657d4d41be9deded88f37bc12a 100644 (file)
@@ -1,22 +1,22 @@
 /*-------------------------------------------------------------------------
-  ser_ir.h - header file for serial routines 
-  
+  ser_ir.h - header file for serial routines
+
   Written By -  Josef Wolf <jw@raven.inka.de> (1999)
 
         This program is free software; you can redistribute it and/or modify it
         under the terms of the GNU General Public License as published by the
         Free Software Foundation; either version 2, or (at your option) any
         later version.
-        
+
         This program is distributed in the hope that it will be useful,
         but WITHOUT ANY WARRANTY; without even the implied warranty of
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
         GNU General Public License for more details.
-        
+
         You should have received a copy of the GNU General Public License
         along with this program; if not, write to the Free Software
         Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-        
+
         In other words, you are welcome to use, share and improve this program.
         You are forbidden to forbid anyone else to use, share and improve
         what you give them.   Help stamp out software-hoarding!
@@ -38,4 +38,4 @@ unsigned char ser_can_rcv (void);
 unsigned char ser_can_xmt (void);
 
 /* needs to be defined somewhere :-() */
-void ser_handler (void) interrupt 4;
+void ser_handler (void) __interrupt 4;
index a5cca4061bd517b3b9a62ee20983b7a63aea93a6..527c41ed718132416cd8b6b5f13eb162b744e42f 100644 (file)
@@ -1,15 +1,15 @@
 //----------------------------------------------------------------------------
 //Written by Dmitry S. Obukhov, 1996
-// dso@usa.net 
+// dso@usa.net
 //----------------------------------------------------------------------------
 //This module implements serial interrupt handler and IO routinwes using
-//two 256 byte cyclic buffers. Bit variables can be used as flags for 
+//two 256 byte cyclic buffers. Bit variables can be used as flags for
 //real-time kernel tasks
 //Last modified 6 Apr 97
 //----------------------------------------------------------------------------
 
 void serial_init(void);
-void serial_interrupt_handler(void) interrupt 4 using 1;
+void serial_interrupt_handler(void) __interrupt 4 __using 1;
 void serial_putc(unsigned char);
 unsigned char serial_getc(void);
 void autobaud();