Mir 1.0
Mir application programming interface

Functions

mirkl_error_tmir_intc_instance_create (mirkl_object_t **obj, mirkl_int64_t value, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool)
 
mirkl_error_tmir_intc_set_data (mirkl_object_t *obj, mirkl_int64_t val)
 
mirkl_error_tmir_intc_get_data (mirkl_object_t *obj, mirkl_int64_t *val)
 

Variables

mirkl_object_t * MirIntegerClass
 Integer class.
 
mirkl_object_t * MirIntZeroObject
 
mir_ast_t * MirIntZeroOast
 

Detailed Description

Function Documentation

◆ mir_intc_get_data()

mirkl_error_t * mir_intc_get_data ( mirkl_object_t *  obj,
mirkl_int64_t *  val 
)

Getting value from Integer object.

Parameters
objReference to the object.
[out]valReference to the value.

◆ mir_intc_instance_create()

mirkl_error_t * mir_intc_instance_create ( mirkl_object_t **  obj,
mirkl_int64_t  value,
mirkl_uint32_t  flags,
mir_prsdata_t *  pp,
apr_pool_t *  pool,
apr_pool_t *  tmp_pool 
)

Creation of Integer object.

Parameters
[out]objReference to the created object.
valueValue for initialization.
flagsFlags of the object.
ppReference to the parser data structure.
poolThe pool to use for allocations of object structures. Should be valid as long as the created object lives.
tmp_poolThe pool for temporary allocations. Can be deleted after calling this function.

◆ mir_intc_set_data()

mirkl_error_t * mir_intc_set_data ( mirkl_object_t *  obj,
mirkl_int64_t  val 
)

Setting value for Integer object.

Parameters
objReference to the object.
valValue to set.

Variable Documentation

◆ MirIntZeroOast

mir_ast_t* MirIntZeroOast
extern

Global integer 0 object in AST of type 'O'

◆ MirIntZeroObject

mirkl_object_t* MirIntZeroObject
extern

Global integer 0 object