Next: struct x1f4_eerecord_type, Previous: struct x1f4_e4_type, Up: Types [Index]
typedef struct x1f4_eelookup_type { struct { int (*fix)(const void *, int, const char **, unsigned *); const void *context; } type_l; struct { const void *e4fine; } type_q; } x1f4_eelookup_type;
The struct x1f4_eelookup_type
record describes name lookup means. It is
used for error reports creation, but also for some non error reporting
purposes.
See Error Reporting.
See x1f4_stat_expression.
type_l
and:
type_q
specify the means to retrieve the names of the application defined data types as:
fix
the type name look up method
context
the type name look up context
e4fine
the function pointer symbolic to logical type mapper
See Function Pointers.
Whenever the name of an application defined data type needs to be looked up the
type name look up method is called with the type name look up context as its
first argument and the type id as its second argument. The name look up method
is expected to return 0
for success, non zero for failure. In the
former case the string and cardinal records pointed to by the third and fourth
method arguments are expected to be set to the type name and its length.
The type name lookup is attempted via the type name lookup method for all application data types, including function pointer data types.
When the fix
type name lookup method fails the name lookup and the
symbolic type (the type id) is a function pointer type and e4fine
is set
(not NULL
) the type name lookup is attempted against the function type
mapper.
If fix
is NULL
no type name lookup is attempted.
Next: struct x1f4_eerecord_type, Previous: struct x1f4_e4_type, Up: Types [Index]