From f5fed59adc5378b7446f647451fceb81ed7e3b9e Mon Sep 17 00:00:00 2001 From: johanknol Date: Mon, 29 Oct 2001 10:25:50 +0000 Subject: [PATCH] make the examples work again git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1461 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- device/examples/ds390/ow390/thermo21.c | 2 +- device/examples/ds390/ow390/thermo21.h | 2 +- device/examples/ds390/ow390/thermodl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/device/examples/ds390/ow390/thermo21.c b/device/examples/ds390/ow390/thermo21.c index 0af9fa86..a1201f24 100644 --- a/device/examples/ds390/ow390/thermo21.c +++ b/device/examples/ds390/ow390/thermo21.c @@ -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); diff --git a/device/examples/ds390/ow390/thermo21.h b/device/examples/ds390/ow390/thermo21.h index 675cf77a..34ce63c6 100644 --- a/device/examples/ds390/ow390/thermo21.h +++ b/device/examples/ds390/ow390/thermo21.h @@ -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 *); diff --git a/device/examples/ds390/ow390/thermodl.c b/device/examples/ds390/ow390/thermodl.c index 0c461d79..652c9724 100644 --- a/device/examples/ds390/ow390/thermodl.c +++ b/device/examples/ds390/ow390/thermodl.c @@ -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) -- 2.30.2