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

Utility functions for passes. More...

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

Go to the source code of this file.

Functions

struct KEFrameKEAddFrameToThisFrame (struct KEFrame *dst, const struct CNFixedString *ident, struct KELineInfo *linfo)
 Add frame if the parent frame does not have it. More...
 
struct KEFrameKEAddFrameToFrame (struct KEFrame *dst, struct KEPath *path, struct KELineInfo *linfo)
 Add frame if the parent frame does not have it. More...
 
CNBoolean KEMergeFrames (struct KEFrame *dst, struct KEFrame *src)
 Merge source frame into destination frame. More...
 
CNBoolean KEMergeFrameIntoFrame (struct KEFrame *dst, struct KEPath *path, struct KEFrame *src)
 Add frame into the frame. More...
 

Detailed Description

Utility functions for passes.

Copyright
Copyright (C) 2014 Steel Wheels Project

Function Documentation

struct KEFrame* KEAddFrameToFrame ( struct KEFrame dst,
struct KEPath path,
struct KELineInfo linfo 
)

Add frame if the parent frame does not have it.

Returns
Allocated object
Parameters
dstDestination parent frame
pathPath of the frame to be added
linfoLine information of the frame
struct KEFrame* KEAddFrameToThisFrame ( struct KEFrame dst,
const struct CNFixedString *  ident,
struct KELineInfo linfo 
)

Add frame if the parent frame does not have it.

Returns
Allocated object
Parameters
dstDestination parent frame
identName of the new frame
linfoLine information of the frame
Warning
You DO NOT have to release the returned object by this function.
CNBoolean KEMergeFrameIntoFrame ( struct KEFrame dst,
struct KEPath path,
struct KEFrame src 
)

Add frame into the frame.

Return values
TRUESucceeded
FALSEFailed
Parameters
dstDestination program
pathPath of the source frame
srcSource frame
CNBoolean KEMergeFrames ( struct KEFrame dst,
struct KEFrame src 
)

Merge source frame into destination frame.

Return values
TrueMerge successed
FalseMerge failed
Parameters
dstDestination frame
srcSource frame
Warning
After this operation, you can not use "src" frame. You have to release it by KEReleaseFrame() function