jtypes.h.in

来自「kaffe Java 解释器语言,源码,Java的子集系统,开放源代码」· IN 代码 · 共 95 行

IN
95
字号
/* * jtypes.h * Java types. * * Copyright (c) 1996, 1997 *	Transvirtual Technologies, Inc.  All rights reserved. * * See the file "license.terms" for information on usage and redistribution  * of this file.  */#ifndef __jtypes_h#define __jtypes_h#undef	SIZEOF_INT#undef	SIZEOF_LONG#undef	SIZEOF_LONG_LONG#undef	SIZEOF___INT64#undef	SIZEOF_VOIDPtypedef float		jfloat;typedef double		jdouble;typedef	void*		jref;typedef unsigned short	jchar;typedef char		jbyte;typedef short 		jshort;#if SIZEOF_INT == 4typedef int		jint;typedef unsigned int	jsize;#define JINT_MIN        0x80000000#elif SIZEOF_LONG == 4typedef long		jint;typedef unsigned long	jsize;#define JINT_MIN        0x80000000L#else#error "sizeof(int) or sizeof(long) must be 4"#endif#if SIZEOF_LONG == 8typedef long		jlong;#define JLONG_MIN       0x8000000000000000L#elif SIZEOF_LONG_LONG == 8typedef long long	jlong;#define JLONG_MIN       0x8000000000000000LL#elif SIZEOF___INT64 == 8 /* Microsoft's Visual C++ 6.0 */typedef __int64		jlong;#define JLONG_MIN       0x8000000000000000i64#else#error "sizeof(long) or sizeof(long long) or sizeof(__int64) must be 8"#endiftypedef	jchar		unicode;typedef	jbyte		jbool;		/* Must deprecate */typedef	jbyte		jboolean;typedef	jref		jobject;typedef	jref		jclass;typedef	jref		jstring;typedef	jref		jarray;typedef	jref		jthrowable;typedef	jref		jobjectArray;typedef	jref		jbooleanArray;typedef	jref		jbyteArray;typedef	jref		jcharArray;typedef	jref		jshortArray;typedef	jref		jintArray;typedef	jref		jlongArray;typedef	jref		jfloatArray;typedef	jref		jdoubleArray;union jvalue {	jboolean	z;	jbyte		b;	jchar		c; 	jshort		s;	jint		i;	jlong		j;	jfloat		f;	jdouble		d;	jref		l;};typedef union jvalue jvalue;/* An integer type big enough for a pointer or a 32-bit int/float. */#if SIZEOF_VOIDP <= SIZEOF_INTtypedef jint		jword;#elif SIZEOF_VOIDP <= SIZEOF_LONGtypedef jlong		jword;#else#error "both sizeof(int) and sizeof(long) < sizeof(void*)"#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?