~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/include/scripting/squirrel/sqclosure.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
                SQClosure * ret = SQClosure::Create(_opt_ss(this),_funcproto(_function));
23
23
                ret->_env = _env;
24
24
                ret->_outervalues.copy(_outervalues);
 
25
                ret->_defaultparams.copy(_defaultparams);
25
26
                return ret;
26
27
        }
27
28
        ~SQClosure()
37
38
        SQObjectPtr _env;
38
39
        SQObjectPtr _function;
39
40
        SQObjectPtrVec _outervalues;
 
41
        SQObjectPtrVec _defaultparams;
40
42
};
41
43
//////////////////////////////////////////////
42
44
struct SQGenerator : public CHAINABLE_OBJ 
43
45
{
44
46
        enum SQGeneratorState{eRunning,eSuspended,eDead};
45
47
private:
46
 
        SQGenerator(SQSharedState *ss,SQClosure *closure){_closure=closure;_state=eRunning;_ci._generator=_null_;INIT_CHAIN();ADD_TO_CHAIN(&_ss(this)->_gc_chain,this);}
 
48
        SQGenerator(SQSharedState *ss,SQClosure *closure){_closure=closure;_state=eRunning;_ci._generator=NULL;INIT_CHAIN();ADD_TO_CHAIN(&_ss(this)->_gc_chain,this);}
47
49
public:
48
50
        static SQGenerator *Create(SQSharedState *ss,SQClosure *closure){
49
51
                SQGenerator *nc=(SQGenerator*)SQ_MALLOC(sizeof(SQGenerator));
92
94
                ret->_env = _env;
93
95
                ret->_name = _name;
94
96
                ret->_outervalues.copy(_outervalues);
95
 
                ret->_typecheck = _typecheck;
 
97
                ret->_typecheck.copy(_typecheck);
96
98
                ret->_nparamscheck = _nparamscheck;
97
99
                return ret;
98
100
        }
107
109
        void Mark(SQCollectable **chain);
108
110
        void Finalize(){_outervalues.resize(0);}
109
111
#endif
 
112
        SQInteger _nparamscheck;
 
113
        SQIntVec _typecheck;
 
114
        SQObjectPtrVec _outervalues;
110
115
        SQObjectPtr _env;
111
116
        SQFUNCTION _function;
112
117
        SQObjectPtr _name;
113
 
        SQObjectPtrVec _outervalues;
114
 
        SQIntVec _typecheck;
115
 
        SQInteger _nparamscheck;
116
118
};
117
119
 
118
120