[commit-cp] classpath ChangeLog native/jni/classpath/jcl.c

Andrew John Hughes <[email protected]> Tue, 10 Aug 2010 20:45:16 +0000
Newsgroups gmane.comp.java.classpath.cvs
Message-ID <[email protected]>
CVSROOT:	/sources/classpath
Module name:	classpath
Changes by:	Andrew John Hughes <gnu_andrew>	10/08/10 20:45:16

Modified files:
	.              : ChangeLog 
	native/jni/classpath: jcl.c 

Log message:
	jcl changes:
	1. Minor fix for JCL_realloc() (don't call free(ptr) if ptr is null like in JCL_free);
	2. 32/64-bit code variants collapsed by introducing several macros (which select the proper class name, primitive type, etc.);
	3. new recognized macro (JCL_NO_JNIONLOAD) which removes the need for JNI_OnLoad (thus, if JCL_NO_JNIONLOAD is defined, it is
	possible to link jcl.c statically).
	
	2010-04-12  Ivan Maidanski  <[email protected]>
	
	        * native/jni/classpath/jcl.c:
		Simplify attribute #ifndef block.
		(JCL_POINTER_CLASSNAME): Define dependent on size of void*.
		(JCL_POINTER_DATASIGN): Likewise.
		(JCL_POINTER_INTTYPE): Likewise.
		(JCL_POINTER_GETFIELD): Likewise.
		(JNI_OnLoad): Define only if not JCL_NO_JNIONLOAD.
		Use JCL_POINTER_xxx macros instead of SIZEOF_VOID_P.
		(JCL_NewRawDataObject): Use JCL_POINTER_xxx macros instead of SIZEOF_VOID_P.
		Initialize rawDataClass, rawData_fid, rawData_mid global variables if JCL_NO_JNIONLOAD.
		(JCL_realloc): Don't call free() for NULL pointer.
		(JCL_GetRawData): Use JCL_POINTER_xxx macros instead of SIZEOF_VOID_P.
		Initialize rawDataClass, rawData_fid, rawData_mid global variables
		if JCL_NO_JNIONLOAD.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9799&r2=1.9800
http://cvs.savannah.gnu.org/viewcvs/classpath/native/jni/classpath/jcl.c?cvsroot=classpath&r1=1.28&r2=1.29