1.1 --- a/rsvp.py Sat Aug 07 02:06:15 2010 +0200
1.2 +++ b/rsvp.py Mon Aug 09 01:23:05 2010 +0200
1.3 @@ -840,10 +840,11 @@
1.4 rc = program.get_raw_image()
1.5 print "Initialising the machine..."
1.6 importer = program.get_importer()
1.7 - true_constant = importer.get_constant(True).location
1.8 - false_constant = importer.get_constant(False).location
1.9 + constants = {}
1.10 + for x in (True, False, NotImplemented):
1.11 + constants[x] = importer.get_constant(x).location
1.12 rm = RSVPMachine(rc, objlist, paramlist, debug=debug, abort_upon_exception=abort_upon_exception)
1.13 - library = Library(rm, true_constant, false_constant)
1.14 + library = Library(rm, constants)
1.15 rm.library = library
1.16 rm.pc = program.code_location
1.17 print "Returning program occupying %d locations." % len(rm.memory)