1 // javaprims.h - Main external header file for libgcj. -*- c++ -*-
3 /* Copyright (C) 1998, 1999, 2000 Free Software Foundation
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
11 #ifndef __JAVAPRIMS_H__
12 #define __JAVAPRIMS_H__
14 // FIXME: this is a hack until we get a proper gcjh.
15 // It is needed to work around system header files that define TRUE
22 // To force selection of correct types that will mangle consistently
26 typedef __java_byte jbyte
;
27 typedef __java_short jshort
;
28 typedef __java_int jint
;
29 typedef __java_long jlong
;
30 typedef __java_float jfloat
;
31 typedef __java_double jdouble
;
32 typedef __java_char jchar
;
33 typedef __java_boolean jboolean
;
36 // The following class declarations are automatically generated by
37 // the `classes.pl' script.
42 class BlockDataException
;
43 class BufferedInputStream
;
44 class BufferedOutputStream
;
47 class ByteArrayInputStream
;
48 class ByteArrayOutputStream
;
49 class CharArrayReader
;
50 class CharArrayWriter
;
51 class CharConversionException
;
53 class DataInputStream
;
55 class DataOutputStream
;
60 class FileInputStream
;
61 class FileNotFoundException
;
62 class FileOutputStream
;
66 class FilterInputStream
;
67 class FilterOutputStream
;
72 class InputStreamReader
;
73 class InterfaceComparator
;
74 class InterruptedIOException
;
75 class InvalidClassException
;
76 class InvalidObjectException
;
77 class LineNumberInputStream
;
78 class LineNumberReader
;
79 class MemberComparator
;
80 class NotActiveException
;
81 class NotSerializableException
;
83 class ObjectInputStream
;
84 class ObjectInputStream$GetField
;
85 class ObjectInputValidation
;
87 class ObjectOutputStream
;
88 class ObjectOutputStream$PutField
;
89 class ObjectStreamClass
;
90 class ObjectStreamConstants
;
91 class ObjectStreamException
;
92 class ObjectStreamField
;
93 class OptionalDataException
;
95 class OutputStreamWriter
;
96 class PipedInputStream
;
97 class PipedOutputStream
;
102 class PushbackInputStream
;
103 class PushbackReader
;
104 class RandomAccessFile
;
108 class SequenceInputStream
;
110 class SerializablePermission
;
111 class StreamCorruptedException
;
112 class StreamTokenizer
;
113 class StringBufferInputStream
;
116 class SyncFailedException
;
117 class UTFDataFormatException
;
118 class UnsupportedEncodingException
;
119 class ValidatorAndPriority
;
120 class WriteAbortedException
;
126 class AbstractMethodError
;
127 class ArithmeticException
;
128 class ArrayIndexOutOfBoundsException
;
129 class ArrayStoreException
;
132 class CPlusPlusDemangler
;
135 class ClassCastException
;
136 class ClassCircularityError
;
137 class ClassFormatError
;
139 class ClassNotFoundException
;
140 class CloneNotSupportedException
;
144 class ConcreteProcess
;
148 class ExceptionInInitializerError
;
150 class IllegalAccessError
;
151 class IllegalAccessException
;
152 class IllegalArgumentException
;
153 class IllegalMonitorStateException
;
154 class IllegalStateException
;
155 class IllegalThreadStateException
;
156 class IncompatibleClassChangeError
;
157 class IndexOutOfBoundsException
;
158 class InstantiationError
;
159 class InstantiationException
;
162 class InterruptedException
;
166 class NegativeArraySizeException
;
167 class NoClassDefFoundError
;
168 class NoSuchFieldError
;
169 class NoSuchFieldException
;
170 class NoSuchMethodError
;
171 class NoSuchMethodException
;
172 class NullPointerException
;
174 class NumberFormatException
;
176 class OutOfMemoryError
;
180 class RuntimeException
;
181 class SecurityException
;
182 class SecurityManager
;
184 class StackOverflowError
;
187 class StringIndexOutOfBoundsException
;
194 class UnsatisfiedLinkError
;
195 class UnsupportedOperationException
;
197 class VirtualMachineError
;
201 class AccessibleObject
;
205 class InvocationTargetException
;
214 class AbstractCollection
;
216 class AbstractList$SubList
;
218 class Arrays$ListImpl
;
223 class ConcurrentModificationException
;
226 class EmptyStackException
;
230 class GregorianCalendar
;
232 class HashtableEntry
;
233 class HashtableEnumeration
;
237 class ListResourceBundle
;
239 class MissingResourceException
;
240 class NoSuchElementException
;
244 class PropertyResourceBundle
;
246 class ResourceBundle
;
247 class SimpleTimeZone
;
249 class StringTokenizer
;
251 class TooManyListenersException
;
253 class VectorEnumeration
;
258 class JarInputStream
;
265 class CheckedInputStream
;
266 class CheckedOutputStream
;
268 class DataFormatException
;
270 class DeflaterOutputStream
;
271 class GZIPInputStream
;
272 class GZIPOutputStream
;
274 class InflaterInputStream
;
277 class ZipEnumeration
;
280 class ZipInputStream
;
281 class ZipOutputStream
;
287 typedef struct java::lang::Object
* jobject
;
288 typedef class java::lang::Class
* jclass
;
289 typedef class java::lang::Throwable
* jthrowable
;
290 typedef class java::lang::String
* jstring
;
293 typedef struct _Jv_Field
*jfieldID
;
294 typedef struct _Jv_Method
*jmethodID
;
296 extern "C" jobject
_Jv_AllocObject (jclass
, jint
) __attribute__((__malloc__
));
297 extern "C" jboolean
_Jv_IsInstanceOf(jobject
, jclass
);
298 extern "C" jstring
_Jv_AllocString(jsize
) __attribute__((__malloc__
));
299 extern "C" jstring
_Jv_NewString (const jchar
*, jsize
)
300 __attribute__((__malloc__
));
301 extern "C" jchar
* _Jv_GetStringChars (jstring str
);
302 extern "C" jint
_Jv_MonitorEnter (jobject
);
303 extern "C" jint
_Jv_MonitorExit (jobject
);
304 extern "C" jstring
_Jv_NewStringLatin1(const char*, jsize
)
305 __attribute__((__malloc__
));
306 extern "C" jsize
_Jv_GetStringUTFLength (jstring
);
307 extern "C" jsize
_Jv_GetStringUTFRegion (jstring
, jsize
, jsize
, char *);
309 extern "C" void _Jv_Throw (void *) __attribute__ ((__noreturn__
));
310 extern "C" void _Jv_Sjlj_Throw (void *) __attribute__ ((__noreturn__
));
311 extern "C" void* _Jv_Malloc (jsize
) __attribute__((__malloc__
));
312 extern "C" void* _Jv_Realloc (void *, jsize
);
313 extern "C" void _Jv_Free (void*);
315 typedef unsigned short _Jv_ushort
__attribute__((__mode__(__HI__
)));
316 typedef unsigned int _Jv_uint
__attribute__((__mode__(__SI__
)));
321 _Jv_ushort length
; /* In bytes, of data portion, without final '\0'. */
322 char data
[1]; /* In Utf8 format, with final '\0'. */
325 #endif /* __JAVAPRIMS_H__ */