func.h

Go to the documentation of this file.
00001 /*
00002 # This file is Copyright 2003, 2006, 2007, 2009 Dean Hall.
00003 #
00004 # This file is part of the PyMite VM.
00005 # The PyMite VM is free software: you can redistribute it and/or modify
00006 # it under the terms of the GNU GENERAL PUBLIC LICENSE Version 2.
00007 #
00008 # The PyMite VM is distributed in the hope that it will be useful,
00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00011 # A copy of the GNU GENERAL PUBLIC LICENSE Version 2
00012 # is seen in the file COPYING in this directory.
00013 */
00014 
00015 
00016 #ifndef __FUNC_H__
00017 #define __FUNC_H__
00018 
00035 typedef struct PmFunc_s
00036 {
00038     PmObjDesc_t od;
00039 
00041     pPmCo_t f_co;
00042 
00044     pPmDict_t f_attrs;
00045 
00047     pPmDict_t f_globals;
00048 
00049 #ifdef HAVE_DEFAULTARGS
00050 
00051     pPmTuple_t f_defaultargs;
00052 #endif /* HAVE_DEFAULTARGS */
00053 
00054 #ifdef HAVE_CLOSURES
00055 
00056     pPmTuple_t f_closure;
00057 #endif /* HAVE_CLOSURES */
00058 
00059 } PmFunc_t,
00060  *pPmFunc_t;
00061 
00062 
00071 PmReturn_t func_new(pPmObj_t pco, pPmObj_t pglobals, pPmObj_t *r_pfunc);
00072 
00073 #endif /* __FUNC_H__ */

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