Diff of /pyke/compiler/compiler_bc.py [27797b] .. [664ff0] Maximize Restore

  Switch to side-by-side view

--- a/pyke/compiler/compiler_bc.py
+++ b/pyke/compiler/compiler_bc.py
@@ -1,6 +1,5 @@
 # compiler_bc.py
 
-from __future__ import with_statement, absolute_import, division
 from pyke import tmp_itertools as itertools
 from pyke import rule_base, contexts, pattern, bc_rule
 from pyke import prove
@@ -19,7 +18,7 @@
                             arg_patterns)):
         mark1 = context.mark(True)
         if rule.pattern(0).match_data(context, context,
-                helpers.plan_head1(context.lookup_data('rb_name'))):
+                helpers.fc_head(context.lookup_data('rb_name'))):
           context.end_save_all_undo()
           mark2 = context.mark(True)
           if rule.pattern(1).match_data(context, context,
@@ -51,14 +50,15 @@
                     "%(rule_name)s: got unexpected plan from when clause 5"
                   mark6 = context.mark(True)
                   if rule.pattern(10).match_data(context, context,
-                          (context.lookup_data('lines1') + (context.lookup_data('decl_line'),) + context.lookup_data('fc_funs_lines') + ("",) +
+                          (context.lookup_data('fc_head') + (context.lookup_data('decl_line'),) + context.lookup_data('fc_funs_lines') + ("",) +
                          context.lookup_data('fc_extra_lines')) \
                                                  if context.lookup_data('fc_funs_lines') \
                                                  else ()):
                     context.end_save_all_undo()
                     mark7 = context.mark(True)
                     if rule.pattern(11).match_data(context, context,
-                            (context.lookup_data('bc_plan_lines') + ("",) + context.lookup_data('plan_extra_lines')) \
+                            (("# %s_plans.py" % context.lookup_data('rb_name'),) +
+                           context.lookup_data('bc_plan_lines') + ("",) + context.lookup_data('plan_extra_lines')) \
                                                    if context.lookup_data('bc_plan_lines') \
                                                    else ()):
                       context.end_save_all_undo()
@@ -100,7 +100,7 @@
                  contexts.variable('bc_lines'),
                  contexts.variable('plan_lines'),),
                 (),
-                (contexts.variable('lines1'),
+                (contexts.variable('fc_head'),
                  contexts.variable('bc_head'),
                  contexts.variable('rb_name'),
                  contexts.variable('parent'),