Lhogho
0.0.028
|
Go to the source code of this file.
Macros | |
#define | EXTERNAPI __attribute__((used,noinline,regparm(0),stdcall)) |
#define | C_TYPES 17 |
#define | GET_NEXT_TYPE prototype = CDR( prototype ) |
#define | GET_NEXT_DATA protodata = CDR( protodata ) |
Variables | |
typeid_t | c_types [C_TYPES] |
#define EXTERNAPI __attribute__((used,noinline,regparm(0),stdcall)) |
Definition at line 61 of file external.c.
#define C_TYPES 17 |
Definition at line 176 of file external.c.
#define GET_NEXT_TYPE prototype = CDR( prototype ) |
#define GET_NEXT_DATA protodata = CDR( protodata ) |
Definition at line 66 of file external.c.
Definition at line 67 of file external.c.
Definition at line 68 of file external.c.
Definition at line 69 of file external.c.
Definition at line 71 of file external.c.
Definition at line 72 of file external.c.
Definition at line 73 of file external.c.
Definition at line 74 of file external.c.
Definition at line 76 of file external.c.
Definition at line 77 of file external.c.
Definition at line 79 of file external.c.
Definition at line 80 of file external.c.
Definition at line 81 of file external.c.
Definition at line 92 of file external.c.
Definition at line 108 of file external.c.
Definition at line 109 of file external.c.
Definition at line 110 of file external.c.
Definition at line 111 of file external.c.
Definition at line 113 of file external.c.
Definition at line 114 of file external.c.
Definition at line 115 of file external.c.
Definition at line 116 of file external.c.
Definition at line 118 of file external.c.
Definition at line 119 of file external.c.
Definition at line 121 of file external.c.
Definition at line 123 of file external.c.
Definition at line 125 of file external.c.
Definition at line 136 of file external.c.
Definition at line 145 of file external.c.
Definition at line 151 of file external.c.
int type_info | ( | atom_t | type) |
type | word containing type name |
Examines the value of type
which must be a 2-character word. Returns an index of the type which can be used with array c c_types[] to get more details.
Definition at line 221 of file external.c.
static_link | static link from the current frame |
parent | current parent |
type | word containing type name |
Assumes that type
is a name of a type variable and returns its value. If it is not a variable or has no value then return unbound atom.
Definition at line 264 of file external.c.
static_link | static link from the current frame |
parent | current parent |
type | word containing type name |
This function finds the C-type index of a type. This index can be used with c_types
[] array to get additional information about the C-type.
This function does not recurse into struct types.
Definition at line 296 of file external.c.
atom_t traverse_pack | ( | int | static_link, |
atom_t | parent, | ||
atom_t | prototype, | ||
atom_t | protodata, | ||
char * | ptr, | ||
int | mode | ||
) |
static_link | static link from the current frame |
parent | current parent |
prototype | list describing the c-type in the pack |
protodata | list containing the Logo data |
ptr | pointer to memory with C data |
mode | mode of traversal |
This function traverses a structure defined by c-type prototype and performs an action determined by mode
.
If mode
is MEM_STRUCT_SIZE
then only the size of the packed data is calculated. Parameters protodata
and ptr
are not used. The returned value is an integer atom containing the size.
If mode
is MEM_STRUCT_PACK
then Logo data from protodata
is packed into the memory pointed to by ptr
using the structure described in prototype
. The result is unbound atom.
If mode
is MEM_STRUCT_UNPACK
then packed data from ptr
is unpacked into a list of Logo data using the structure described in prototype
. The result of traverse_pack
is the list of Logo data.
Definition at line 347 of file external.c.
Definition at line 181 of file external.c.