projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iris: Rework edgeflag handling
[mesa.git]
/
scons
/
source_list.py
diff --git
a/scons/source_list.py
b/scons/source_list.py
index 8111f43184f77e5b8e41d64266c3cd27df184fcc..e16d1f9b6d2b6a31dc387323a88fcf6df94ea2a4 100644
(file)
--- a/
scons/source_list.py
+++ b/
scons/source_list.py
@@
-13,6
+13,7
@@
The goal is to allow Makefile's and SConscript's to share source listing.
class SourceListParser(object):
def __init__(self):
class SourceListParser(object):
def __init__(self):
+ self.symbol_table = {}
self._reset()
def _reset(self, filename=None):
self._reset()
def _reset(self, filename=None):
@@
-20,7
+21,6
@@
class SourceListParser(object):
self.line_no = 1
self.line_cont = ''
self.line_no = 1
self.line_cont = ''
- self.symbol_table = {}
def _error(self, msg):
raise RuntimeError('%s:%d: %s' % (self.filename, self.line_no, msg))
def _error(self, msg):
raise RuntimeError('%s:%d: %s' % (self.filename, self.line_no, msg))
@@
-125,3
+125,6
@@
class SourceListParser(object):
raise
return self.symbol_table
raise
return self.symbol_table
+
+ def add_symbol(self, name, value):
+ self.symbol_table[name] = value