Pol  Revision:4b29d2b
eprog.cpp
Go to the documentation of this file.
1 
6 #include "eprog.h"
7 
8 #include <cstdio>
9 
10 #include "../clib/refptr.h"
11 #include "escriptv.h"
12 #include "fmodule.h"
13 
14 namespace Pol
15 {
16 namespace Bscript
17 {
19  : ref_counted(),
20  nglobals( 0 ),
21  expectedArgs( 0 ),
22  haveProgram( false ),
23  name( "" ),
24  modules(),
25  tokens(),
26  symbols(),
27  program_PC( UINT_MAX ),
28  program_decl( "" ),
29  sourcelines(),
30  fileline(),
31  function_decls(),
32  exported_functions(),
33  version( 0 ),
34  invocations( 0 ),
35  instr_cycles( 0 ),
36  pkg( NULL ),
37  instr(),
38  debug_loaded( false ),
39  savecurblock( 0 ),
40  curblock( 0 ),
41  curfile( 0 ),
42  curline( 0 ),
43  statementbegin( false ),
44  globalvarnames(),
45  blocks(),
46  dbg_functions(),
47  dbg_filenames(),
48  dbg_filenum(),
49  dbg_linenum(),
50  dbg_ins_blocks(),
51  dbg_ins_statementbegin()
52 {
54 
55  // compiler only:
56  EPDbgBlock block;
57  block.parentblockidx = 0;
58  block.parentvariables = 0;
59  blocks.push_back( block );
60 }
61 
62 //#define _DBG_TRYING_TO_FIND_WIN32_SHUTDOWN_ASSERTION
64 {
65 #if defined( _DEBUG ) && defined( _DBG_TRYING_TO_FIND_WIN32_SHUTDOWN_ASSERTION )
66  cout << "ESP~D: " << name << endl;
67 #endif
68 
71 }
72 
74 {
76 }
77 }
78 }
unsigned parentvariables
Definition: eprog.h:57
void delete_all(T &coll)
Definition: stlutil.h:24
boost_utils::script_name_flystring name
Definition: eprog.h:91
std::vector< EPDbgBlock > blocks
Definition: eprog.h:134
int escript_program_count
Definition: escriptv.cpp:21
unsigned parentblockidx
Definition: eprog.h:56
std::string name
Definition: osmod.cpp:943
Definition: berror.cpp:12
std::vector< FunctionalityModule * > modules
Definition: eprog.h:92