bsp_abort.h File Reference

Defines the prototype of an `abort' function for internal usage: bsp_intern_abort(). More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

ErrorNumbers

Error number defintions and their translation

#define ERR_GET_DELIVERED   5
 When a 'bsp_get' gets delivered.
#define ERR_STACK_COUNTER_OVERFLOW   4
 used in MemoryRegister when the stack counter becomes to big
#define ERR_POP_REG_WITHOUT_PUSH   3
 used in MemoryRegister when an item could not be found
#define ERR_NOT_ENOUGH_MEMORY   2
 when memory could no be allocated
#define ERR_BSP_ABORT   1
 when the user calls bsp_abort()
#define ERR_MESSAGES
 Translation of error messages.

Functions

void bsp_intern_abort (const int err_number, const char *func, const char *file, int line)
 Is used by other library functions when a task could not be successfully completed.


Detailed Description

Defines the prototype of an `abort' function for internal usage: bsp_intern_abort().

Author:
Wijnand Suijlen

Definition in file bsp_abort.h.


Define Documentation

#define ERR_BSP_ABORT   1
 

when the user calls bsp_abort()

Definition at line 50 of file bsp_abort.h.

Referenced by bsp_abort().

#define ERR_GET_DELIVERED   5
 

When a 'bsp_get' gets delivered.

<= this is impossible

Definition at line 42 of file bsp_abort.h.

#define ERR_MESSAGES
 

Value:

{ "abnormal program termination\n"\
        , "Not enough memory\n"\
        , "bsp_pop_reg without bsp_push_reg\n"\
        , "stack counter overflow"\
        , "a bsp_get() is delivered! contact the library maintainer"\
        }
Translation of error messages.

Definition at line 53 of file bsp_abort.h.

Referenced by bsp_intern_abort().

#define ERR_NOT_ENOUGH_MEMORY   2
 

when memory could no be allocated

Definition at line 48 of file bsp_abort.h.

Referenced by bsp_callocx(), and bsp_mallocx().

#define ERR_POP_REG_WITHOUT_PUSH   3
 

used in MemoryRegister when an item could not be found

Definition at line 46 of file bsp_abort.h.

Referenced by memoryRegister_find(), and memoryRegister_pop().

#define ERR_STACK_COUNTER_OVERFLOW   4
 

used in MemoryRegister when the stack counter becomes to big

Definition at line 44 of file bsp_abort.h.


Function Documentation

void bsp_intern_abort const int  err_number,
const char *  func,
const char *  file,
int  line
 

Is used by other library functions when a task could not be successfully completed.

Parameters:
err_number one of the Error numbers in ErrorNumbers
func the function name which caused the bsp_intern_abort
file the file name
line the line number

Definition at line 43 of file bsp_abort.c.

References ERR_MESSAGES.

Referenced by bsp_abort(), bsp_callocx(), bsp_mallocx(), memoryRegister_find(), and memoryRegister_pop().


Generated on Sat Apr 8 20:13:06 2006 for BSPonMPI by  doxygen 1.4.6