|
Dynamic Fraction Library 1.0.0
Reference-counted arbitrary precision rational number library (MIT OR Unlicense)
|
Functions for managing integer lifetime through reference counting. More...
Functions | |
| di_int | di_retain (di_int big) |
| Increment reference count and return the same integer. | |
| void | di_release (di_int *big) |
| Decrement reference count and free if zero. | |
| size_t | di_ref_count (di_int big) |
| Get current reference count of an integer. | |
Functions for managing integer lifetime through reference counting.
| size_t di_ref_count | ( | di_int | big | ) |
Get current reference count of an integer.
| big | Integer to query (may be NULL) |
Definition at line 1298 of file dynamic_int.h.
| void di_release | ( | di_int * | big | ) |
Decrement reference count and free if zero.
| big | Pointer to integer handle (may be NULL or point to NULL) |
Definition at line 1285 of file dynamic_int.h.
Increment reference count and return the same integer.
| big | Integer to retain (may be NULL) |
Definition at line 1279 of file dynamic_int.h.