Author: leo
Date: Sat Aug 13 06:07:30 2005
New Revision: 8940
Added:
branches/leo-ctx5/DEPRECATED
Modified:
branches/leo-ctx5/MANIFEST
branches/leo-ctx5/runtime/parrot/library/Data/Escape.imc
Log:
merge -r8938:8939 from trunk; add DEPRECATED
Added: branches/leo-ctx5/DEPRECATED
==============================================================================
--- (empty file)
+++ branches/leo-ctx5/DEPRECATED Sat Aug 13 06:07:30 2005
@@ -0,0 +1,56 @@
+Deprecated opcodes (branches/leo-ctx5 first)
+
+findclass(out INT, in STR)
+
+ returns a boolean bit if the class exists. The opocde name is misleading
+ doesn't conform to other find_ ops and the functionality is covered by
+ C<find_type>.
+
+ use find_type > 0 instead
+
+newsub(in INT, in INT, labelconst INT, labelconst INT)
+
+ Creates a sub in P0 and a continuation in P1. It was a premature
+ attempt to be able to create a return continuation outside a loop.
+ This isn't needed anymore due to continuation recycling and the opcode
+ also has implicit register usage (P0, P1).
+
+ use 3 arg newsub, find_global, set_p_pc, or just foo() syntax
+
+isnull(in PMC, labelconst INT)
+
+ Despite it's name this is a branching opcode. The name is misleading.
+
+ use if_null or unless_null instead.
+
+Register stack opcodes
+
+pop{i,s,p,n}, popbottom{i,s,p,n}, poptop{i,s,p,n},
+push{i,s,p,n}, pushbottom{i,s,p,n}, pushtop{i,s,p,n},
+savetop, restoretop,
+
+ With the upcoming variable-sized register frame handling these opcodes
+ will stop working and are useless anyway.
+
+ use saveall/restoreall (whole register frame) or
+ user stack opcodes save/restore instead.
+
+Integer stack opcodes
+
+intsave/intrestore/intdepth
+
+ The integer stack was an invention for rx_ opcodes, but as it's a
+ global stack, regexen using these opcodes aren't reentrant.
+
+ use a ResizableIntegerPMC instead and standard keyed access
+
+set_eh
+
+ already dprecated
+ use push_eh
+
+die, die(in INT), die_hard(int INT, in INT)
+
+ die is a special case of die_hard, but the name of the latter isn't
+ really nice. Therefore die_hard with be renamed to die, the 2 argument
+ form of die survives.
Modified: branches/leo-ctx5/MANIFEST
==============================================================================
--- branches/leo-ctx5/MANIFEST (original)
+++ branches/leo-ctx5/MANIFEST Sat Aug 13 06:07:30 2005
@@ -5,6 +5,7 @@ ABI_CHANGES
CREDITS []
ChangeLog []
Configure.pl []
+DEPRECATED []
DEVELOPING []
LICENSES/Artistic [main]doc
LICENSES/gpl.txt [main]doc
Modified: branches/leo-ctx5/runtime/parrot/library/Data/Escape.imc
==============================================================================
--- branches/leo-ctx5/runtime/parrot/library/Data/Escape.imc (original)
+++ branches/leo-ctx5/runtime/parrot/library/Data/Escape.imc Sat Aug 13
06:07:30 2005
@@ -62,7 +62,7 @@ This function returns the quoted string.
i = 0
j = length str
- null ret
+ ret = ""
LOOP:
if i >= j goto END
tmp = str[i]
@@ -101,7 +101,7 @@ n13:
$S0 = sprintf "%o", $P0
concat tmp, $S0
branch DONE
-
+
gt31: # ascii codes greater than 31 below
# "
@@ -120,8 +120,8 @@ n39:
gt40: # ascii codes greater than 40 below
- if c != 92 goto DONE
- set tmp, "\\\\"
+ if c != 92 goto DONE
+ set tmp, "\\\\"
branch DONE
DONE: