Main Page   Modules   Compound List   File List   Compound Members   File Members  

clib.h File Reference

Jaune - Ahead of time Java compiler for small systems. More...

Go to the source code of this file.

Compounds

struct  _Array
 Header for an array instance. More...

struct  _Class
 Definition of a Class object. More...

struct  _Instance
 Header for each instance of a class. More...

struct  _String
 Header for a constant string. More...

struct  _StringBuffer
 String buffer main class. More...

struct  _StringBufferData
 StringBuffers are implemented in a similar way to indirect pointers. More...

struct  TableEntry
 A Classes field table and method table consists of table entries. More...


Defines

#define JAUNE_CLIB_H   1
#define NULL   0
#define STATIC
#define JFALSE   0
#define JTRUE   1
#define TRYTHROW(_a, _msg)   if (!(_a)) _cthrow(_msg);
#define ASSERT(_a, _msg)   if (!(_a)) _cassert(_msg " at " __FILE__ ":", __LINE__);
#define NUMELEMS(_a)   (sizeof(_a)/sizeof(_a[0]))
 Macro that returns the number of elemens in an array.

#define UNUSED(_a)   if (0 && (_a));
 Macro to mark a variable as unused to stop the compiler from complaining.

#define VALIDATE(_a, _cl)
 First level validation macro that checks that an instance argument is not null and is of the right class. More...

#define CHECKINSTANCEISCLASS(_a)

Typedefs

typedef unsigned short UINT16
typedef signed short INT16
typedef unsigned char UINT8
typedef signed char INT8
typedef unsigned char BOOL
typedef unsigned int UINT
typedef signed int INT
typedef UINT JBOOLEAN
typedef INT JBYTE
typedef INT JSHORT
typedef UINT JCHAR
typedef INT JINT
typedef _Class Class
 A Class header.

typedef _Instance Instance
 Header for each instance of a class. More...

typedef _Array Array
 Header for an array instance. More...

typedef _String String
 Header for a constant string. More...

typedef _StringBufferData StringBufferData
 StringBuffers are implemented in a similar way to indirect pointers. More...

typedef _StringBuffer StringBuffer
 String buffer main class.


Enumerations

enum  _ClibMagic { CLASSMAGIC = 0x1234 }

Functions

void _cthrow (const char *pMsg)
 Method called when an exception is thrown.

void _cassert (const char *pMsg, int line)
 Method called when an assertion triggers.


Variables

Class ByteArray_class
Class ReferenceArray_class
Class WordArray_class
Class JLJString_class
Class JLJStringBuffer_class
Class StringBufferData_class


Detailed Description

Jaune - Ahead of time Java compiler for small systems.

Author:
Copyright Michael Hope 2002 <michaelh@juju.net.nz> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Id:
clib.h,v 1.3 2002/05/07 15:41:49 michaelh Exp


Generated on Sat May 11 15:15:41 2002 for JauneRuntimeclib by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002