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] Change Mini-OS so that it uses stddef.h to define size_t

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Change Mini-OS so that it uses stddef.h to define size_t and
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 May 2006 14:12:10 +0000
Delivery-date: Thu, 04 May 2006 07:14:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 1a84eec7433193dc7277b7a84930e18d88475486
# Parent  6719dae17b6a21ad207a60f764b6455a46dad86a
Change Mini-OS so that it uses stddef.h to define size_t and
NULL. This problem fixes errors that occur when linking Mini-OS with
ANSI standard code that uses stddef.h.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 6719dae17b6a -r 1a84eec74331 extras/mini-os/include/lib.h
--- a/extras/mini-os/include/lib.h      Thu May 04 11:22:19 2006 +0100
+++ b/extras/mini-os/include/lib.h      Thu May 04 11:24:19 2006 +0100
@@ -56,6 +56,7 @@
 #define _LIB_H_
 
 #include <stdarg.h>
+#include <stddef.h>
 #include <console.h>
 
 /* printing */
diff -r 6719dae17b6a -r 1a84eec74331 extras/mini-os/include/os.h
--- a/extras/mini-os/include/os.h       Thu May 04 11:22:19 2006 +0100
+++ b/extras/mini-os/include/os.h       Thu May 04 11:24:19 2006 +0100
@@ -6,9 +6,6 @@
 
 #ifndef _OS_H_
 #define _OS_H_
-
-#define NULL 0
-
 
 #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
 #define __builtin_expect(x, expected_value) (x)
diff -r 6719dae17b6a -r 1a84eec74331 extras/mini-os/include/types.h
--- a/extras/mini-os/include/types.h    Thu May 04 11:22:19 2006 +0100
+++ b/extras/mini-os/include/types.h    Thu May 04 11:24:19 2006 +0100
@@ -34,8 +34,6 @@ typedef unsigned long       u64;
 typedef unsigned long       u64;
 #endif
 
-typedef unsigned int        size_t;
-
 /* FreeBSD compat types */
 typedef unsigned char       u_char;
 typedef unsigned int        u_int;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Change Mini-OS so that it uses stddef.h to define size_t and, Xen patchbot -unstable <=