make the examples work again
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 29 Oct 2001 10:25:50 +0000 (10:25 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 29 Oct 2001 10:25:50 +0000 (10:25 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1461 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/examples/ds390/ow390/thermo21.c
device/examples/ds390/ow390/thermo21.h
device/examples/ds390/ow390/thermodl.c

index 0af9fa86f692a7fb665737c6ca07844a64acb900..a1201f24c9df0a49473b3768b637413e9a7b0afc 100644 (file)
@@ -40,7 +40,7 @@
 #include "thermo21.h"   
 
 // a hack for sdcc/TINI, just printf to stdout
-int fprintf (FILE *fp, xdata char *format, ...) reentrant {
+int fprintf (FILE *fp, char *format, ...) reentrant {
   va_list arg;
   *fp; // hush the compiler
   va_start(arg, format);
index 675cf77ac9bc42b37f2695f3f448c0545d8148b3..34ce63c67a141ad2203aa7525b1fefeaefd12d46 100644 (file)
@@ -41,7 +41,7 @@
 #define stdin ((void *)0)
 #define stdout ((void *)0)
 #define stderr ((void *)0)
-int fprintf (FILE *fp, xdata char *format, ...) reentrant;
+int fprintf (FILE *fp, char *format, ...) reentrant;
 FILE *fopen (char *, char *);
 int fclose (FILE *);
 
index 0c461d7930644b25d4b7b23f82b0d4fd6eca390b..652c97242a2aee9b3566d34e2ea862b7e722d7cc 100644 (file)
@@ -181,7 +181,7 @@ int main() //short argc, char **argv)
 void PrintResults(ThermoStateType *ThermoState, FILE *fp, int ConvertToF)
 {
   // aslink only can handle 64k, so we use the second 64k bank
-   char *str=(char*)0x190000;
+   char *str=(xdata char*)0x190000;
 
    // check if need to use standard out
    if (fp == NULL)