Kiwi Engine
VM for interpreter
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Functions
KEValueTable.h File Reference

Define KEValueTable class. More...

#include <Coconut/Coconut.h>
#include "KEValue.h"

Go to the source code of this file.

Data Structures

struct  KEValueTable
 KEProgram class. More...
 

Functions

struct KEValueTableKEAllocateValueTable (uint64_t varnum, struct CNResource *resource)
 Allocate value table. More...
 
void KECleanValueTable (struct KEValueTable *dst)
 Release resources for each values in the table. More...
 
void KEDumpValueTable (struct CNText *outbuf, const struct KEValueTable *src)
 Dump value table into buffer. More...
 

Detailed Description

Define KEValueTable class.

Copyright
Copyright (C) 2013-2014 Steel Wheels Project

Function Documentation

struct KEValueTable* KEAllocateValueTable ( uint64_t  varnum,
struct CNResource *  resource 
)

Allocate value table.

Returns
Allocated value table
Parameters
varnumNumber of values in the table
resourceResouce to allocate value table
void KECleanValueTable ( struct KEValueTable dst)

Release resources for each values in the table.

Parameters
dstDestination table
void KEDumpValueTable ( struct CNText *  outbuf,
const struct KEValueTable src 
)

Dump value table into buffer.

Parameters
outbufOutput buffer
srcSource value table