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
/
support.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
1KB
|
52 lines
/*
* support.h
* Various support routines.
*
* 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>, August 1996.
*/
#ifndef __support_h
#define __support_h
/*
* Some systems need specific exports for funcions to be shared.
*/
#if defined(__WIN32__)
#if defined(__BORLANDC__)
#define EXPORT(t) t __export
#define IMPORT(t) extern t __import
#elif defined(__MSC)
#define EXPORT(t) t __export
#define IMPORT(t) extern __declspec(dllimport) t
#endif
#else
#define EXPORT(t) t
#define IMPORT(t) extern t
#endif
/* For user defined properties */
typedef struct _userProperty {
char* key;
char* value;
struct _userProperty* next;
} userProperty;
IMPORT(userProperty*) userProperties;
extern void setProperty(void*, char*, char*);
extern void classname2pathname(char*, char*);
extern struct _object* makeJavaCharArray(char*, int);
extern long do_execute_java_method(void*, object*, char*, char*, struct _methods*, int, ...);
extern object* execute_java_constructor(void*, char*, classes*, char*, ...);
extern jlong currentTime(void);
#endif