![]() |
libFirm
|
Macros | |
| #define | NEW_ARR_F(type, nelts) |
| Creates a flexible array. | |
| #define | NEW_ARR_FZ(type, nelts) |
| Create a flexible array and null its contents. | |
| #define | DUP_ARR_F(type, arr) |
| Duplicates an array and returns the new flexible one. | |
| #define | NEW_ARR_D(type, obstack, nelts) |
| Creates a dynamic array on an obstack. | |
| #define | NEW_ARR_DZ(type, obstack, nelts) |
| Create a dynamic array on an obstack and null its contents. | |
| #define | DUP_ARR_D(type, obstack, arr) |
| Duplicates an array and returns the new dynamic one. | |
| #define | ARR_RESIZE(type, arr, n) |
| Resize a flexible array, allocate more data if needed but do NOT reduce. | |
| #define | ARR_SETLEN(type, arr, n) |
| Resize a flexible array, always reallocate data. | |
| #define | ARR_EXTEND(type, arr, delta) |
| Resize a flexible array by growing it by delta elements. | |
| #define | ARR_EXTO(type, arr, n) |
| Resize a flexible array to hold n elements only if it is currently shorter than n. | |
| #define | ARR_APP1(type, arr, elt) |
| Append one element to a flexible array. | |
Functions | |
| void | DEL_ARR_F (void *arr) |
| Delete a flexible array. | |
| static size_t | ARR_LEN (void const *const arr) |
| Returns the length of an array. | |
| #define ARR_APP1 | ( | type, | |
| arr, | |||
| elt ) |
Append one element to a flexible array.
| type | The element type of the array. |
| arr | The array, which must be an lvalue. |
| elt | The new element, must be of type (type). |
| #define ARR_EXTEND | ( | type, | |
| arr, | |||
| delta ) |
Resize a flexible array by growing it by delta elements.
| type | The element type of the array. |
| arr | The array, which must be an lvalue. |
| delta | The delta number of elements. |
| #define ARR_EXTO | ( | type, | |
| arr, | |||
| n ) |
Resize a flexible array to hold n elements only if it is currently shorter than n.
| type | The element type of the array. |
| arr | The array, which must be an lvalue. |
| n | The new size of the array. |
| #define ARR_RESIZE | ( | type, | |
| arr, | |||
| n ) |
Resize a flexible array, allocate more data if needed but do NOT reduce.
| type | The element type of the array. |
| arr | The array, which must be an lvalue. |
| n | The new size of the array. |
| #define ARR_SETLEN | ( | type, | |
| arr, | |||
| n ) |
Resize a flexible array, always reallocate data.
| type | The element type of the array. |
| arr | The array, which must be an lvalue. |
| n | The new size of the array. |
| #define DUP_ARR_D | ( | type, | |
| obstack, | |||
| arr ) |
Duplicates an array and returns the new dynamic one.
| type | The element type of the new array. |
| obstack | An struct obstack * were the data will be allocated |
| arr | An array from which the elements will be duplicated |
This macro creates a dynamic array of a given type at runtime. The size of the array cannot be changed later.
| #define DUP_ARR_F | ( | type, | |
| arr ) |
Duplicates an array and returns the new flexible one.
| type | The element type of the new array. |
| arr | An array from which the elements will be duplicated |
This macro creates a flexible array of a given type at runtime. The size of the array can be changed later.
| #define NEW_ARR_D | ( | type, | |
| obstack, | |||
| nelts ) |
Creates a dynamic array on an obstack.
| type | The element type of the new array. |
| obstack | A struct obstack * were the data will be allocated |
| nelts | A size_t expression evaluating to the number of elements |
This macro creates a dynamic array of a given type at runtime. The size of the array cannot be changed later.
| #define NEW_ARR_DZ | ( | type, | |
| obstack, | |||
| nelts ) |
| #define NEW_ARR_F | ( | type, | |
| nelts ) |
Creates a flexible array.
| type | The element type of the new array. |
| nelts | a size_t expression evaluating to the number of elements |
This macro creates a flexible array of a given type at runtime. The size of the array can be changed later.
| #define NEW_ARR_FZ | ( | type, | |
| nelts ) |
|
inlinestatic |
| void DEL_ARR_F | ( | void * | arr | ) |
Delete a flexible array.
| arr | The flexible array. |