* device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
[fw/sdcc] / device / lib / pic16 / libc / stdio / strmmssp.c
index 2846057f709083e74525d3381b7113ed41a47d60..bc0e7fcbb5602ce46552388077879e7bf83cd936 100644 (file)
@@ -2,7 +2,7 @@
     strmmssp.c - MSSP stream putchar
 
     Written for pic16 port, by Vangelis Rokas, 2004 (vrokas@otenet.gr)
-    
+
     This library is free software; you can redistribute it and/or modify it
     under the terms of the GNU Library General Public License as published by the
     Free Software Foundation; either version 2, or (at your option) any
     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!
--------------------------------------------------------------------------*/
 
-/*
-** $Id$
-*/
+   As a special exception, if you link this library with other files,
+   some of which are compiled with SDCC, to produce an executable,
+   this library does not by itself cause the resulting executable
+   to be covered by the GNU General Public License.
+   This exception does not however invalidate any other reasons why
+   the executable file might be covered by the GNU General Public License.
+-------------------------------------------------------------------------*/
 
 extern WREG;
 extern SSPBUF;
 
 /* note that USART should already been initialized */
-void __stream_mssp_putchar(unsigned char c) _naked wparam
+void
+__stream_mssp_putchar (char c) __wparam __naked
 {
   c;
-  _asm
-    MOVWF      _SSPBUF
+  __asm
+    MOVWF       _SSPBUF
     RETURN
-  _endasm;
+  __endasm;
 }