Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

stub.c File Reference

A collection of dirty hacks to get C++ compilation going. More...

#include <stdlib.h>

Go to the source code of this file.

Functions

void exit (int)
 Abort execution.
void __sjthrow ()
 Throw an execption in a setjmp environment.
void * __get_eh_context ()
 Return current exception handler context.
int __rtti_si ()
 FIXME: rtti nop hack.
int __rtti_user ()
 FIXME: rtti nop hack.
void __builtin_delete (void *ptr)
 builtin delete function
void * __builtin_new (unsigned int size)
 builtin new function
void __pure_virtual ()


Detailed Description

A collection of dirty hacks to get C++ compilation going.

Author:
Markus L. Noga <markus@noga.de>
This stub provides the necessary runtime environment for basic C++. The following features currently work:

Several features are still amiss:

Definition in file stub.c.


Function Documentation

void __builtin_delete void *  ptr  ) 
 

builtin delete function

frees the memory block

Parameters:
ptr the block to free

Definition at line 80 of file stub.c.

References free().

void* __builtin_new unsigned int  size  ) 
 

builtin new function

creates a memory block for an object.

Parameters:
size size of memory to allocate

Definition at line 88 of file stub.c.

References malloc().

void* __get_eh_context  ) 
 

Return current exception handler context.

FIXME: null pointer returned

Definition at line 62 of file stub.c.

void __pure_virtual  ) 
 

Definition at line 94 of file stub.c.

int __rtti_si  ) 
 

FIXME: rtti nop hack.

Definition at line 66 of file stub.c.

int __rtti_user  ) 
 

FIXME: rtti nop hack.

Definition at line 70 of file stub.c.

void __sjthrow  ) 
 

Throw an execption in a setjmp environment.

FIXME: this just terminates the task.

Definition at line 55 of file stub.c.

void exit int   ) 
 

Abort execution.

Functional version, calls exit(1)

Definition at line 43 of file stub.c.

Referenced by fatal(), image_dl(), image_load(), keepaliveSend(), lnp_download(), LNPinit(), lx_from_images(), main(), nbread(), rcx_init(), rcx_send(), rcx_wakeup_tower(), rcxInit(), srec_load(), and symbols_load().


Generated on Fri Feb 25 08:02:44 2005 for brickos by  doxygen 1.3.9.1