Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/interpret_aux.c File Reference


Detailed Description

Helper functions and function table for calls from the data file into the main program.

Definition in file interpret_aux.c.

#include "crogue.h"

Go to the source code of this file.

Data Structures

struct  aux_function
 Export of a function from the main program to the data file. More...


Typedefs

typedef aux_function aux_function
 Export of a function from the main program to the data file.


Functions

sint tile_is_passable (sint x, sint y)
sint tile_is_transparent (sint x, sint y)
sint tile_is_occupied (sint x, sint y)
void * get_plr (void)
void * get_w (void)
sint fstrcmp (char *one, char *two)
void void_helper_void (void *func, long *params, return_info_t *ret)
void void_helper_pointer (void *func, long *params, return_info_t *ret)
void void_helper_pointer_pointer (void *func, long *params, return_info_t *ret)
void pointer_helper_short (void *func, long *params, return_info_t *ret)
void int_helper_short (void *func, long *params, return_info_t *ret)
void int_helper_short_short (void *func, long *params, return_info_t *ret)
void int_helper_short_short_short (void *func, long *params, return_info_t *ret)
void void_helper_short (void *func, long *params, return_info_t *ret)
void void_helper_short_short (void *func, long *params, return_info_t *ret)
void void_helper_short_short_short (void *func, long *params, return_info_t *ret)
void int_helper_pointer (void *func, long *params, return_info_t *ret)
void int_helper_pointer_pointer (void *func, long *params, return_info_t *ret)
void int_helper_pointer_short (void *func, long *params, return_info_t *ret)
void int_helper_void (void *func, long *params, return_info_t *ret)
void int_helper_short_short_pointer_pointer_short (void *func, long *params, return_info_t *ret)
void void_helper_pointer_vararg (void *func, long *params, return_info_t *ret)
void pointer_helper_pointer_vararg (void *func, long *params, return_info_t *ret)
void int_helper_short_short_vararg (void *func, long *params, return_info_t *ret)
void pointer_helper_void (void *func, long *params, return_info_t *ret)
void pointer_helper_long (void *func, long *params, return_info_t *ret)
void pointer_helper_pointer (void *func, long *params, return_info_t *ret)
void void_helper_short_pointer (void *func, long *params, return_info_t *ret)
void long_helper_void (void *func, long *params, return_info_t *ret)
void void_helper_long (void *func, long *params, return_info_t *ret)
void void_helper_pointer_short_short (void *func, long *params, return_info_t *ret)
return_info_t interpret_call (int which_func, long *params)

Variables

aux_function aux_functions []


Typedef Documentation

typedef struct aux_function aux_function
 

Export of a function from the main program to the data file.

This is used to export access to functions from the main program to the data file. Since the data file is written in an interpretted language, the calls must be translated. helper_func is used to do the translation; func is the function to be called. Functions which have the same return type and take the same number of arguments can generally use the same helper function.

To export a function, add a corresponding entry to table aux_functions


Function Documentation

sint fstrcmp char *  one,
char *  two
[static]
 

Definition at line 86 of file interpret_aux.c.

References sint.

void* get_plr void   )  [static]
 

Definition at line 74 of file interpret_aux.c.

References world::plr, and w.

void* get_w void   )  [static]
 

Definition at line 80 of file interpret_aux.c.

References w.

void int_helper_pointer void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 157 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, and ushort.

void int_helper_pointer_pointer void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 164 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, and ushort.

void int_helper_pointer_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 171 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, and ushort.

void int_helper_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 118 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, sint, and ushort.

void int_helper_short_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 125 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, sint, and ushort.

void int_helper_short_short_pointer_pointer_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 185 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, and ushort.

void int_helper_short_short_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 132 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, sint, and ushort.

void int_helper_short_short_vararg void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 207 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, sint, and ushort.

void int_helper_void void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 178 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, and ushort.

return_info_t interpret_call int  which_func,
long *  params
 

Definition at line 349 of file interpret_aux.c.

References aux_functions, aux_function::helper_func, return_info_t, and return_info::returns.

Referenced by run_program().

void long_helper_void void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 241 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, and ulong.

void pointer_helper_long void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 221 of file interpret_aux.c.

References return_info_t, return_info::returns, and return_info::retval.

void pointer_helper_pointer void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 228 of file interpret_aux.c.

References return_info_t, return_info::returns, and return_info::retval.

void pointer_helper_pointer_vararg void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 199 of file interpret_aux.c.

References return_info_t, return_info::returns, and return_info::retval.

void pointer_helper_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 111 of file interpret_aux.c.

References return_info_t, return_info::returns, return_info::retval, and ushort.

void pointer_helper_void void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 214 of file interpret_aux.c.

References return_info_t, return_info::returns, and return_info::retval.

sint tile_is_occupied sint  x,
sint  y
[static]
 

Definition at line 68 of file interpret_aux.c.

References tile::flags, sint, world::t, TFLAG_OCCUPIED, and w.

sint tile_is_passable sint  x,
sint  y
[static]
 

Definition at line 48 of file interpret_aux.c.

References MAPSIZE_X, MAPSIZE_Y, sint, world::t, TILEDESC, and w.

sint tile_is_transparent sint  x,
sint  y
[static]
 

Definition at line 58 of file interpret_aux.c.

References MAPSIZE_X, MAPSIZE_Y, sint, world::t, TILEDESC, and w.

void void_helper_long void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 248 of file interpret_aux.c.

References return_info_t, and ulong.

void void_helper_pointer void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 99 of file interpret_aux.c.

References return_info_t.

void void_helper_pointer_pointer void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 105 of file interpret_aux.c.

References return_info_t.

void void_helper_pointer_short_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 254 of file interpret_aux.c.

References return_info_t, and ushort.

void void_helper_pointer_vararg void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 193 of file interpret_aux.c.

References return_info_t.

void void_helper_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 139 of file interpret_aux.c.

References return_info_t, and ushort.

void void_helper_short_pointer void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 235 of file interpret_aux.c.

References return_info_t, and ushort.

void void_helper_short_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 145 of file interpret_aux.c.

References return_info_t, and ushort.

void void_helper_short_short_short void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 151 of file interpret_aux.c.

References return_info_t, and ushort.

void void_helper_void void *  func,
long *  params,
return_info_t ret
[static]
 

Definition at line 93 of file interpret_aux.c.

References return_info_t.


Variable Documentation

aux_function aux_functions[] [static]
 

Definition at line 263 of file interpret_aux.c.

Referenced by interpret_call().


Generated on Thu May 20 13:12:13 2004 for CalcRogue by doxygen 1.3.6