* [Qemu-devel] [PATCH] use stdio.h
@ 2006-04-24 14:40 Marius Groeger
2006-04-24 14:46 ` Paul Brook
0 siblings, 1 reply; 4+ messages in thread
From: Marius Groeger @ 2006-04-24 14:40 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 349 bytes --]
Hi,
Changelog:
Make dyngen-exec.h include <stdio.h> which is more portable than the
local definitions.
Regards,
Marius
--
Marius Groeger <mgroeger@sysgo.com>
SYSGO AG Embedded and Real-Time Software
Voice: +49 6136 9948 0 FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com
[-- Attachment #2: Type: TEXT/PLAIN, Size: 577 bytes --]
Index: dyngen-exec.h
===================================================================
RCS file: /sources/qemu/qemu/dyngen-exec.h,v
retrieving revision 1.26
diff -u -r1.26 dyngen-exec.h
--- dyngen-exec.h 24 Jul 2005 15:11:38 -0000 1.26
+++ dyngen-exec.h 24 Apr 2006 14:38:28 -0000
@@ -57,9 +57,7 @@
#define UINT32_MAX (4294967295U)
#define UINT64_MAX ((uint64_t)(18446744073709551615))
-typedef struct FILE FILE;
-extern int fprintf(FILE *, const char *, ...);
-extern int printf(const char *, ...);
+#include <stdio.h>
#undef NULL
#define NULL 0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] use stdio.h
2006-04-24 14:40 [Qemu-devel] [PATCH] use stdio.h Marius Groeger
@ 2006-04-24 14:46 ` Paul Brook
2006-04-24 15:04 ` Marius Groeger
0 siblings, 1 reply; 4+ messages in thread
From: Paul Brook @ 2006-04-24 14:46 UTC (permalink / raw)
To: qemu-devel
On Monday 24 April 2006 15:40, Marius Groeger wrote:
> Hi,
>
> Changelog:
>
> Make dyngen-exec.h include <stdio.h> which is more portable than the
> local definitions.
I believe dyngen-exec.h deliberately doesn't include stdio.h because it
conflicts with the local register variables on some hosts.
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] use stdio.h
2006-04-24 14:46 ` Paul Brook
@ 2006-04-24 15:04 ` Marius Groeger
2006-04-24 15:08 ` Paul Brook
0 siblings, 1 reply; 4+ messages in thread
From: Marius Groeger @ 2006-04-24 15:04 UTC (permalink / raw)
To: qemu-devel
On Mon, 24 Apr 2006, Paul Brook wrote:
> On Monday 24 April 2006 15:40, Marius Groeger wrote:
>> Hi,
>>
>> Changelog:
>>
>> Make dyngen-exec.h include <stdio.h> which is more portable than the
>> local definitions.
>
> I believe dyngen-exec.h deliberately doesn't include stdio.h because it
> conflicts with the local register variables on some hosts.
Ah, I thought there's got to be an explanation... Should be added though to
dyngen-exec.h to avoid future patches from wise-guys like myself :-)
Thanks,
Marius
--
Marius Groeger <mgroeger@sysgo.com>
SYSGO AG Embedded and Real-Time Software
Voice: +49 6136 9948 0 FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] use stdio.h
2006-04-24 15:04 ` Marius Groeger
@ 2006-04-24 15:08 ` Paul Brook
0 siblings, 0 replies; 4+ messages in thread
From: Paul Brook @ 2006-04-24 15:08 UTC (permalink / raw)
To: qemu-devel
> >> Make dyngen-exec.h include <stdio.h> which is more portable than the
> >> local definitions.
> >
> > I believe dyngen-exec.h deliberately doesn't include stdio.h because it
> > conflicts with the local register variables on some hosts.
>
> Ah, I thought there's got to be an explanation... Should be added though to
> dyngen-exec.h to avoid future patches from wise-guys like myself :-)
From the top of that file:
/* NOTE: standard headers should be used with special care at this
point because host CPU registers are used as global variables. Some
host headers do not allow that. */
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-24 15:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-24 14:40 [Qemu-devel] [PATCH] use stdio.h Marius Groeger
2006-04-24 14:46 ` Paul Brook
2006-04-24 15:04 ` Marius Groeger
2006-04-24 15:08 ` Paul Brook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).