-
Notifications
You must be signed in to change notification settings - Fork 17
/
tcprs_rt.cpp
92 lines (78 loc) · 2.36 KB
/
tcprs_rt.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifdef RCSID
static char RCSid[] =
"$Header$";
#endif
/*
* Copyright (c) 2000, 2002 Michael J. Roberts. All Rights Reserved.
*
* Please see the accompanying license file, LICENSE.TXT, for information
* on using and copying this software.
*/
/*
Name
tcprs_rt.cpp - stubs for parser functions not needed in run-time
Function
Interpreters that include "eval()" functionality require a portion of the
compiler, including code body and expression compilation. This module
provides stubs for functions that aren't needed for interpreter
configurations, but which are referenced from the parts of the compiler we
do need, to resolve symbols at link time. Many of these stubs are simply
never called in interpreter builds, because the conditions that would
trigger their invocation can't occur; others just need to provide defaults
or other simplified functionality when called; others generate errors,
because the functionality they provide is specifically not supported in
interpreter builds.
Notes
Modified
02/02/00 MJRoberts - Creation
*/
#include "tctarg.h"
#include "tcprs.h"
#include "vmerr.h"
#include "vmerrnum.h"
#include "tctok.h"
/* ------------------------------------------------------------------------ */
/*
* Simple stubs for functions not used in the dynamic compiler
*/
/*
* Debug records aren't needed when we're compiling code in the debugger
* itself - debugger-generated code can't itself be debugged
*/
void CTPNStmBase::add_debug_line_rec()
{
}
void CTPNStmBase::add_debug_line_rec(CTcTokFileDesc *, long)
{
}
/*
* Add an entry to the global symbol table. We can't define new global
* symbols in an interactive debug session, so this does nothing.
*/
void CTcPrsSymtab::add_to_global_symtab(CTcPrsSymtab *, CTcSymbol *)
{
}
int CTPNStmObjectBase::parse_nested_obj_prop(
CTPNObjProp* &, int *, tcprs_term_info *, const CTcToken *, int)
{
return FALSE;
}
/*
* Set the sourceTextGroup mode. This doesn't apply in the debugger, since
* #pragma isn't allowed.
*/
void CTcParser::set_source_text_group_mode(int)
{
}
/*
* we don't need static object generation, since we use G_vmifc interface
* to generate live objects in the VM
*/
CTcSymObj *CTcParser::add_gen_obj_stat(CTcSymObj *)
{
return 0;
}
void CTcParser::add_gen_obj_prop_stat(
CTcSymObj *, CTcSymProp *, const CTcConstVal *)
{
}