home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
kaffe-0.5p4-src.tgz
/
tar.out
/
contrib
/
kaffe
/
kaffevm
/
baseClasses.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
1KB
|
66 lines
/*
* baseClasses.h
* Handle base classes.
*
* Copyright (c) 1996 Systems Architecture Research Centre,
* City University, London, UK.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Written by Tim Wilkinson <tim@sarc.city.ac.uk>, February 1996.
*/
#ifndef __baseclasses_h
#define __baseclasses_h
#include "object.h"
typedef struct _stringClass {
object head;
object* value;
int offset;
int count;
} stringClass;
#define STRINGCLASS "java/lang/String"
#define STRINGINIT "<init>"
#define STRINGINITSIG "([C)V"
#define OBJECTCLASS "java/lang/Object"
#define CLASSCLASS "java/lang/Class"
#define CLONEABLECLASS "java/lang/Cloneable"
/*
* Exception object.
*/
typedef struct _throwable {
object head;
object* backtrace;
struct _stringClass* message;
} throwable;
void initBaseClasses(void);
struct _strconst;
struct _strpair;
struct _constants;
struct _classes;
struct _slots;
char* addStringLen(char*, int);
struct _strpair* addStringPair(char*, char*);
stringClass* getString(struct _strconst*);
struct _slots* makeStringObject(int, struct _constants*);
void initClasses(void);
#define addString(_s) addStringLen((_s), strlen(_s))
extern char* ObjectClassName;
extern struct _classes* ObjectClass;
extern struct _classes* ClassClass;
extern struct _classes* ClassString;
#endif