Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv14233
Modified Files:
linkie.py
Log Message:
made Linkie.place_symbol warn when placing unprefixed symbols
Index: linkie.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/linkie.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- linkie.py 9 Mar 2003 20:12:38 -0000 1.17
+++ linkie.py 14 Mar 2003 07:01:05 -0000 1.18
@@ -148,6 +148,9 @@
Does NOT check uniqueness.
None signifies the current offset."""
if type(symbol) <> StringType: raise 'Not a string', symbol
+ if not symbol[0] in '#&$!':
+ # FIXME: backwards compatibility
+ print 'WARNING: unprefixed symbol', symbol, 'being placed'
if value == None: value = len(this._binary) + this._skipped
if symbol[0] in '&$': value += this._origin
this._symbols.append((symbol, value))
|