dynamiC  0.1
Functions
dynamic.c File Reference

Implementation of dynamiC base module. More...

#include "dynamic.h"
#include <stdio.h>

Go to the source code of this file.

Functions

void dyn_free (dyn_c *dyn)
 free allocated memory More...
 
TYPE dyn_type (const dyn_c *dyn)
 Return type value of a dynamic element. More...
 
void dyn_set_none (dyn_c *dyn)
 Set dynamic element to NONE. More...
 
void dyn_set_bool (dyn_c *dyn, const dyn_char v)
 Set dynamic element to BOOL (DYN_TRUE or DYN_FALSE) More...
 
void dyn_set_int (dyn_c *dyn, const dyn_int v)
 Set dynamic element to INTEGER. More...
 
void dyn_set_float (dyn_c *dyn, const dyn_float v)
 Set dynamic element to FLOAT. More...
 
void dyn_set_extern (dyn_c *dyn, const void *v)
 Set dynamic element to point to an arbitrary value. More...
 
trilean dyn_set_string (dyn_c *dyn, dyn_const_str v)
 Set dynamic element to STRING. More...
 
void dyn_set_ref (dyn_c *ref, dyn_c *orig)
 Set dynamic element as reference to another dynamic element. More...
 
dyn_uint dyn_size (const dyn_c *dyn)
 Return the number of allocated bytes. More...
 
trilean dyn_get_bool (const dyn_c *dyn)
 Return boolean value of an dynamic element. More...
 

Detailed Description

Implementation of dynamiC base module.

Author
André Dietrich
Date
14 December 2016

This project is released under the MIT-License.

Definition in file dynamic.c.