func.h File Reference

Function Object Type. More...

Go to the source code of this file.

Classes

struct  PmFunc_s

Typedefs

typedef struct PmFunc_s PmFunc_t
typedef struct PmFunc_spPmFunc_t

Functions

PmReturn_t func_new (pPmObj_t pco, pPmObj_t pglobals, pPmObj_t *r_pfunc)


Detailed Description

Function Object Type.

Function object type header.


Typedef Documentation

typedef struct PmFunc_s PmFunc_t

Function obj

A function is like an instance of a code obj. Contains ptr to its code obj and has its own attributes dict.

The first (__main__) module that is executed has a function obj created for it to execute the bytecode which builds the module.


Function Documentation

PmReturn_t func_new ( pPmObj_t  pco,
pPmObj_t  pglobals,
pPmObj_t r_pfunc 
)

Creates a Function Obj for the given Code Obj. Allocate space for a Func obj and fill the fields.

Parameters:
pco ptr to code obj
pglobals ptr to globals dict (from containing func/module)
Returns:
ptr to new func obj


Generated on Wed Feb 24 13:37:02 2010 for Python-on-a-chip by  doxygen 1.5.9