Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv29052
Modified Files:
tran.py
Log Message:
added the optional linkie argument to Interpreter.add_section
Index: tran.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -d -r1.130 -r1.131
--- tran.py 22 May 2003 18:04:19 -0000 1.130
+++ tran.py 22 May 2003 18:11:40 -0000 1.131
@@ -251,10 +251,12 @@
__slots__ = 'sections current recordee regpaths hanging regstack state meaning register_names toksrc included byte_order'.split()
universal_meaning = make_universal_meaning()
- def add_section (this, name):
+ def add_section (this, name, linkie = None):
if this.sections.has_key(name):
raise 'Duplicate section name', name
- this.sections[name] = Linkie(this.byte_order)
+ if linkie == None:
+ linkie = Linkie(this.byte_order)
+ this.sections[name] = linkie
def switch_to_section (this, name):
this.current = this.sections[name]
|