|
P99
|
Macros that help you handle different kind of types, forward declaring struct of union, and handle enum.
More...
Collaboration diagram for Type facilities:Data Structures | |
| struct | P99_ENC |
| Access an encapsulated object. More... | |
Modules | |
| Type Names | |
A bunch of types that are derived from the standard types. | |
Defines | |
| #define | P99_DECLARE_ENUM(T,...) |
| Declare a simple enumeration type. | |
| #define | P99_DECLARE_ENUM_GETNAME(T,...) |
| Declare a simple inline function to return strings containing the names of enumeration constants. | |
| #define | P99_DECLARE_ENUM_PARSE(T,...) |
| Declare a simple inline function to return the longest enumeration constants of type T found in a string. | |
| #define | P99_DEFINE_UNION(NAME,...)typedef T *T_ptr |
| Declare derived pointer types with endings "_ptr" and "_cptr". | |
Functions | |
| P99_INSTANTIATE (char const *, T_getname, T) | |
| P99_INSTANTIATE (T, T_parse, char const *) inline char const *bool_getname(bool p00_x) | |
| P99_MACRO_END (P99_PLAIN_TYPE, T) inline T *T_init(T *p00_id) | |
| Declare trivial init and destroy functions for type T and its pointer derivatives. | |
| P99_MACRO_END (P99_PLAIN_TYPE, T_cptr) | |
| void | T_cptr_destroy (T_cptr *p00_id) |
| destroy the object that p00_id points to. | |
| T_cptr * | T_cptr_init (T_cptr *p00_id) |
| initialize the object that p00_id points to by 0. | |
| void | T_destroy (T *p00_id) |
| destroy the object that p00_id points to. | |
| T * | T_init (T *p00_id) |
| initialize the object that p00_id points to by 0. | |
| void | T_ptr_destroy (T_ptr *p00_id) |
| destroy the object that p00_id points to. | |
| T_ptr * | T_ptr_init (T_ptr *p00_id) |
| initialize the object that p00_id points to by 0. | |
Macros that help you handle different kind of types, forward declaring struct of union, and handle enum.
1.7.6.1