This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gui][PATCH] replace malloc.h references with stdlib.h


Hello,

This patch replaces references to the out-dated malloc.h with stdlib.h. 
I committed it on java-gui-branch.

Tom

2004-03-13  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* jni/classpath/jcl.c: Include stdlib.h, not malloc.h.
	* jni/classpath/jnilink.c: Likewise.


Index: jni/classpath/jnilink.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/jni/classpath/jnilink.c,v
retrieving revision 1.1
diff -u -r1.1 jnilink.c
--- jni/classpath/jnilink.c	31 Jan 2003 17:54:14 -0000	1.1
+++ jni/classpath/jnilink.c	14 Mar 2004 00:53:55 -0000
@@ -1,5 +1,5 @@
 /* JNILINK 1.1: JNI version.
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2004 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -40,7 +40,7 @@
 #include <string.h>
 #include <jcl.h>
 
-#include <malloc.h>
+#include <stdlib.h>
 
 #define GETCLASS(c) *(jclass*)(c)
 
Index: jni/classpath/jcl.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/jni/classpath/jcl.c,v
retrieving revision 1.2
diff -u -r1.2 jcl.c
--- jni/classpath/jcl.c	8 Oct 2003 15:49:32 -0000	1.2
+++ jni/classpath/jcl.c	14 Mar 2004 00:53:55 -0000
@@ -1,5 +1,5 @@
 /* jcl.c
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2004 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -37,7 +37,7 @@
 
 #include <stdio.h>
 #include <jcl.h>
-#include <malloc.h>
+#include <stdlib.h>
 
 #ifndef __GNUC__
 #define __attribute__(x) /* nothing */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]