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
;
106 class SequenceInputStream
;
108 class SerializablePermission
;
109 class StreamCorruptedException
;
110 class StreamTokenizer
;
111 class StringBufferInputStream
;
114 class SyncFailedException
;
115 class UTFDataFormatException
;
116 class UnsupportedEncodingException
;
117 class ValidatorAndPriority
;
118 class WriteAbortedException
;
124 class AbstractMethodError
;
125 class ArithmeticException
;
126 class ArrayIndexOutOfBoundsException
;
127 class ArrayStoreException
;
130 class CPlusPlusDemangler
;
133 class ClassCastException
;
134 class ClassCircularityError
;
135 class ClassFormatError
;
137 class ClassNotFoundException
;
138 class CloneNotSupportedException
;
142 class ConcreteProcess
;
146 class ExceptionInInitializerError
;
148 class IllegalAccessError
;
149 class IllegalAccessException
;
150 class IllegalArgumentException
;
151 class IllegalMonitorStateException
;
152 class IllegalStateException
;
153 class IllegalThreadStateException
;
154 class IncompatibleClassChangeError
;
155 class IndexOutOfBoundsException
;
156 class InstantiationError
;
157 class InstantiationException
;
160 class InterruptedException
;
164 class NegativeArraySizeException
;
165 class NoClassDefFoundError
;
166 class NoSuchFieldError
;
167 class NoSuchFieldException
;
168 class NoSuchMethodError
;
169 class NoSuchMethodException
;
170 class NullPointerException
;
172 class NumberFormatException
;
174 class OutOfMemoryError
;
178 class RuntimeException
;
179 class SecurityException
;
180 class SecurityManager
;
182 class StackOverflowError
;
185 class StringIndexOutOfBoundsException
;
192 class UnsatisfiedLinkError
;
193 class UnsupportedOperationException
;
195 class VirtualMachineError
;
199 class AccessibleObject
;
203 class InvocationTargetException
;
212 class AbstractCollection
;
214 class AbstractList$SubList
;
217 class Arrays$ListImpl
;
225 class ConcurrentModificationException
;
228 class EmptyStackException
;
232 class GregorianCalendar
;
234 class Hashtable$HashtableCollection
;
235 class Hashtable$HashtableEntry
;
236 class Hashtable$HashtableEnumeration
;
237 class Hashtable$HashtableIterator
;
238 class Hashtable$HashtableSet
;
242 class ListResourceBundle
;
246 class MissingResourceException
;
247 class NoSuchElementException
;
251 class PropertyResourceBundle
;
253 class ResourceBundle
;
255 class SimpleTimeZone
;
257 class StringTokenizer
;
259 class TooManyListenersException
;
261 class VectorEnumeration
;
268 class JarFile$JarEnumeration
;
269 class JarInputStream
;
270 class JarOutputStream
;
278 class CheckedInputStream
;
279 class CheckedOutputStream
;
281 class DataFormatException
;
283 class DeflaterOutputStream
;
284 class GZIPInputStream
;
285 class GZIPOutputStream
;
287 class InflaterInputStream
;
290 class ZipEnumeration
;
293 class ZipInputStream
;
294 class ZipOutputStream
;
302 class BlockDataException
;
303 class BufferedInputStream
;
304 class BufferedOutputStream
;
305 class BufferedReader
;
306 class BufferedWriter
;
307 class ByteArrayInputStream
;
308 class ByteArrayOutputStream
;
309 class CharArrayReader
;
310 class CharArrayWriter
;
311 class CharConversionException
;
313 class DataInputStream
;
315 class DataOutputStream
;
317 class Externalizable
;
319 class FileDescriptor
;
320 class FileInputStream
;
321 class FileNotFoundException
;
322 class FileOutputStream
;
325 class FilenameFilter
;
326 class FilterInputStream
;
327 class FilterOutputStream
;
332 class InputStreamReader
;
333 class InterfaceComparator
;
334 class InterruptedIOException
;
335 class InvalidClassException
;
336 class InvalidObjectException
;
337 class LineNumberInputStream
;
338 class LineNumberReader
;
339 class MemberComparator
;
340 class NotActiveException
;
341 class NotSerializableException
;
343 class ObjectInputStream
;
344 class ObjectInputStream$GetField
;
345 class ObjectInputValidation
;
347 class ObjectOutputStream
;
348 class ObjectOutputStream$PutField
;
349 class ObjectStreamClass
;
350 class ObjectStreamConstants
;
351 class ObjectStreamException
;
352 class ObjectStreamField
;
353 class OptionalDataException
;
355 class OutputStreamWriter
;
356 class PipedInputStream
;
357 class PipedOutputStream
;
362 class PushbackInputStream
;
363 class PushbackReader
;
364 class RandomAccessFile
;
368 class SequenceInputStream
;
370 class SerializablePermission
;
371 class StreamCorruptedException
;
372 class StreamTokenizer
;
373 class StringBufferInputStream
;
376 class SyncFailedException
;
377 class UTFDataFormatException
;
378 class UnsupportedEncodingException
;
379 class ValidatorAndPriority
;
380 class WriteAbortedException
;
386 typedef struct java::lang::Object
* jobject
;
387 typedef class java::lang::Class
* jclass
;
388 typedef class java::lang::Throwable
* jthrowable
;
389 typedef class java::lang::String
* jstring
;
392 typedef struct _Jv_Field
*jfieldID
;
393 typedef struct _Jv_Method
*jmethodID
;
395 extern "C" jobject
_Jv_AllocObject (jclass
, jint
) __attribute__((__malloc__
));
396 extern "C" jboolean
_Jv_IsInstanceOf(jobject
, jclass
);
397 extern "C" jstring
_Jv_AllocString(jsize
) __attribute__((__malloc__
));
398 extern "C" jstring
_Jv_NewString (const jchar
*, jsize
)
399 __attribute__((__malloc__
));
400 extern "C" jchar
* _Jv_GetStringChars (jstring str
);
401 extern "C" jint
_Jv_MonitorEnter (jobject
);
402 extern "C" jint
_Jv_MonitorExit (jobject
);
403 extern "C" jstring
_Jv_NewStringLatin1(const char*, jsize
)
404 __attribute__((__malloc__
));
405 extern "C" jsize
_Jv_GetStringUTFLength (jstring
);
406 extern "C" jsize
_Jv_GetStringUTFRegion (jstring
, jsize
, jsize
, char *);
408 extern "C" void _Jv_Throw (void *) __attribute__ ((__noreturn__
));
409 extern "C" void _Jv_Sjlj_Throw (void *) __attribute__ ((__noreturn__
));
410 extern "C" void* _Jv_Malloc (jsize
) __attribute__((__malloc__
));
411 extern "C" void* _Jv_Realloc (void *, jsize
);
412 extern "C" void _Jv_Free (void*);
414 typedef unsigned short _Jv_ushort
__attribute__((__mode__(__HI__
)));
415 typedef unsigned int _Jv_uint
__attribute__((__mode__(__SI__
)));
420 _Jv_ushort length
; /* In bytes, of data portion, without final '\0'. */
421 char data
[1]; /* In Utf8 format, with final '\0'. */
424 #endif /* __JAVAPRIMS_H__ */