Go to the source code of this file.
Data Structures | |
struct | as_pair |
Macros | |
#define | pair_new(a, b) as_pair_new((as_val *) a, (as_val *) b) |
Functions | |
static as_val * | as_pair_1 (as_pair *pair) |
static as_val * | as_pair_2 (as_pair *pair) |
static void | as_pair_destroy (as_pair *pair) |
static as_pair * | as_pair_fromval (const as_val *v) |
AS_EXTERN as_pair * | as_pair_init (as_pair *pair, as_val *_1, as_val *_2) |
AS_EXTERN as_pair * | as_pair_new (as_val *_1, as_val *_2) |
static as_val * | as_pair_toval (const as_pair *pair) |
AS_EXTERN void | as_pair_val_destroy (as_val *) |
AS_EXTERN uint32_t | as_pair_val_hashcode (const as_val *) |
AS_EXTERN char * | as_pair_val_tostring (const as_val *) |
#define pair_new | ( | a, | |
b | |||
) | as_pair_new((as_val *) a, (as_val *) b) |
|
inlinestatic |
Destroy the as_pair
and release associated resources.
Definition at line 97 of file as_pair.h.
References as_val_destroy.
Convert from an as_val.
Definition at line 143 of file as_pair.h.
References AS_PAIR, and as_util_fromval.
Initializes a stack allocated as_pair
.
pair | The pair to initialize. |
_1 | The first value. |
_2 | The second value. |
Create and initializes a new heap allocated as_pair
.
_1 | The first value. |
_2 | The second value. |
Internal helper function for destroying an as_val.
Internal helper function for getting the hashcode of an as_val.