WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] mkelf32 explicit-size types are based on defs in inttype

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] mkelf32 explicit-size types are based on defs in inttypes.h.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Jul 2005 08:32:10 -0400
Delivery-date: Fri, 01 Jul 2005 12:32:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 61df3453426c50714b7d8c3438cc564d0fdc8863
# Parent  5aaebfc580a64555d621eed2fdecda730df873f1

mkelf32 explicit-size types are based on defs in inttypes.h.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 5aaebfc580a6 -r 61df3453426c xen/arch/x86/boot/mkelf32.c
--- a/xen/arch/x86/boot/mkelf32.c       Fri Jul  1 10:55:46 2005
+++ b/xen/arch/x86/boot/mkelf32.c       Fri Jul  1 12:30:19 2005
@@ -15,33 +15,16 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
-
-/*
- * Here I'm taking care not to conflict with possible typedef's in
- * standard headers by instead using the macro namespace.
- */
-#undef u8
-#undef u16
-#undef u32
-#undef u64
-#undef s8
-#undef s16
-#undef s32
-#undef s64
-#define u8  unsigned char
-#define u16 unsigned short
-#define u32 unsigned int
-#define s8  signed char
-#define s16 signed short
-#define s32 signed int
-#if defined(__i386__)
-#define u64 unsigned long long
-#define s64 signed long long
-#else
-#define u64 unsigned long
-#define s64 signed long
-#endif
-
+#include <inttypes.h>
+
+#define u8  uint8_t
+#define u16 uint16_t
+#define u32 uint32_t
+#define u64 uint64_t
+#define s8  int8_t
+#define s16 int16_t
+#define s32 int32_t
+#define s64 int64_t
 #include "../../../include/xen/elf.h"
 
 #define DYNAMICALLY_FILLED   0

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] mkelf32 explicit-size types are based on defs in inttypes.h., Xen patchbot -unstable <=