Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

drop builtin chomp from stages 0 and 1

  • Loading branch information...
commit dc234c0cbffb27a25f096580b4baf04fab52f136 1 parent 95bc3e9
@NotFound authored
Showing with 1 addition and 27 deletions.
  1. +1 −9 winxedst0.cpp
  2. +0 −18 winxedst1.winxed
View
10 winxedst0.cpp
@@ -1,5 +1,5 @@
// winxedst0.cpp
-// Revision 28-apr-2012
+// Revision 29-apr-2012
// Winxed compiler stage 0.
@@ -506,14 +506,6 @@ const PredefFunction *PredefFunction::predefs[]= {
new PredefFunctionFixargs("split",
"split {res}, {arg0}, {arg1}",
REGvar, REGstring, REGstring),
- new PredefFunctionFixargs("chomp",
- "get_root_global $P0, ['parrot';'String';'Utils'], 'chomp'\n"
- "{res} = $P0({arg0})",
- REGstring, REGstring),
- new PredefFunctionFixargs("chomp",
- "get_root_global $P0, ['parrot';'String';'Utils'], 'chomp'\n"
- "{res} = $P0({arg0}, {arg1})",
- REGstring, REGstring, REGstring),
new PredefFunctionFixargs("push",
"push {arg0}, {arg1}",
REGnone, REGvar, REGany),
View
18 winxedst1.winxed
@@ -1851,20 +1851,6 @@ encodingname %0, $I0
'split %0, %1, %2',
REGvar, REGstring, REGstring
));
- builder.add(new BuiltinFunction('chomp',
-<<:
-$P0 = get_root_global ['parrot';'String';'Utils'], 'chomp'
-%0 = $P0(%1)
-:>>
- , REGstring, REGstring
- ));
- builder.add(new BuiltinFunction('chomp',
-<<:
-$P0 = get_root_global ['parrot';'String';'Utils'], 'chomp'
-%0 = $P0(%1, %2)
-:>>
- , REGstring, REGstring, REGstring
- ));
builder.add(new BuiltinFunction('push',
'push %1, %2',
REGnone, REGvar, REGany
@@ -10855,10 +10841,6 @@ class RootNamespace : NamespaceBase
{
var bultins_used = self.bultins_used;
- // chomp uses a library function, load the libray if chomp is used
- if (bultins_used['chomp'] != null)
- self.addload('"String/Utils.pbc"');
-
// Load trans opcodes if some of its corresponding builtins are used
for (string trfun in
split(" ", "acos asin atan cos exp ln sin tan pow"))
Please sign in to comment.
Something went wrong with that request. Please try again.