Author: particle
Date: Wed Dec 28 12:32:30 2005
New Revision: 10741

Added:
   trunk/runtime/parrot/library/Data/Dumper.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Data/Dumper.imc
   trunk/runtime/parrot/library/Data/Dumper/Base.pir
      - copied unchanged from r10740, 
trunk/runtime/parrot/library/Data/Dumper/Base.imc
   trunk/runtime/parrot/library/Data/Dumper/Default.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Data/Dumper/Default.imc
   trunk/runtime/parrot/library/Data/Escape.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Data/Escape.imc
   trunk/runtime/parrot/library/Data/Replace.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Data/Replace.imc
   trunk/runtime/parrot/library/Data/Sort.pir
      - copied, changed from r10740, trunk/runtime/parrot/library/Data/Sort.imc
   trunk/runtime/parrot/library/Stream/Base.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Stream/Base.imc
   trunk/runtime/parrot/library/Stream/Combiner.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Stream/Combiner.imc
   trunk/runtime/parrot/library/Stream/Coroutine.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Stream/Coroutine.imc
   trunk/runtime/parrot/library/Stream/Filter.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Stream/Filter.imc
   trunk/runtime/parrot/library/Stream/Lines.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Stream/Lines.imc
   trunk/runtime/parrot/library/Stream/ParrotIO.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Stream/ParrotIO.imc
   trunk/runtime/parrot/library/Stream/Replay.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Stream/Replay.imc
   trunk/runtime/parrot/library/Stream/Sub.pir
      - copied, changed from r10740, trunk/runtime/parrot/library/Stream/Sub.imc
   trunk/runtime/parrot/library/Stream/Writer.pir
      - copied, changed from r10740, 
trunk/runtime/parrot/library/Stream/Writer.imc
   trunk/runtime/parrot/library/dumper.pir
      - copied, changed from r10740, trunk/runtime/parrot/library/dumper.imc
Removed:
   trunk/runtime/parrot/library/Data/Dumper.imc
   trunk/runtime/parrot/library/Data/Dumper/Base.imc
   trunk/runtime/parrot/library/Data/Dumper/Default.imc
   trunk/runtime/parrot/library/Data/Escape.imc
   trunk/runtime/parrot/library/Data/Replace.imc
   trunk/runtime/parrot/library/Data/Sort.imc
   trunk/runtime/parrot/library/Stream/Base.imc
   trunk/runtime/parrot/library/Stream/Combiner.imc
   trunk/runtime/parrot/library/Stream/Coroutine.imc
   trunk/runtime/parrot/library/Stream/Filter.imc
   trunk/runtime/parrot/library/Stream/Lines.imc
   trunk/runtime/parrot/library/Stream/ParrotIO.imc
   trunk/runtime/parrot/library/Stream/Replay.imc
   trunk/runtime/parrot/library/Stream/Sub.imc
   trunk/runtime/parrot/library/Stream/Writer.imc
   trunk/runtime/parrot/library/dumper.imc
Modified:
   trunk/MANIFEST
   trunk/examples/streams/Bytes.pir
   trunk/examples/streams/Combiner.pir
   trunk/examples/streams/Coroutine.pir
   trunk/examples/streams/FileLines.pir
   trunk/examples/streams/Filter.pir
   trunk/examples/streams/Include.pir
   trunk/examples/streams/Lines.pir
   trunk/examples/streams/ParrotIO.pir
   trunk/examples/streams/Replay.pir
   trunk/examples/streams/SubCounter.pir
   trunk/examples/streams/SubHello.pir
   trunk/examples/streams/Writer.pir
   trunk/languages/Zcode/z3main.pir
   trunk/runtime/parrot/library/JSON.imc
   trunk/runtime/parrot/library/PGE/Hs.pir
   trunk/t/examples/streams.t
   trunk/t/library/data_escape.t
   trunk/t/library/dumper.t
   trunk/t/library/sort.t
   trunk/t/library/streams.t
Log:
#37520: [TODO] rename library files from .imc to .pir
~converted Stream/* and Data/* libraries, and all references to them

Modified: trunk/MANIFEST
==============================================================================
--- trunk/MANIFEST      (original)
+++ trunk/MANIFEST      Wed Dec 28 12:32:30 2005
@@ -1443,12 +1443,12 @@ parrotbug                               
 runtime/parrot/dynext/README                      [main]doc
 runtime/parrot/include/DWIM.imc                   [main]doc
 runtime/parrot/include/README                     [main]doc
-runtime/parrot/library/Data/Dumper.imc            [library]
-runtime/parrot/library/Data/Dumper/Base.imc       [library]
-runtime/parrot/library/Data/Dumper/Default.imc    [library]
-runtime/parrot/library/Data/Escape.imc            [library]
-runtime/parrot/library/Data/Replace.imc           [library]
-runtime/parrot/library/Data/Sort.imc              [library]
+runtime/parrot/library/Data/Dumper.pir            [library]
+runtime/parrot/library/Data/Dumper/Base.pir       [library]
+runtime/parrot/library/Data/Dumper/Default.pir    [library]
+runtime/parrot/library/Data/Escape.pir            [library]
+runtime/parrot/library/Data/Replace.pir           [library]
+runtime/parrot/library/Data/Sort.pir              [library]
 runtime/parrot/library/Digest/MD5.pir             [library]
 runtime/parrot/library/File/Spec.pir              [library]
 runtime/parrot/library/File/Spec/Unix.pir         [library]
@@ -1476,15 +1476,15 @@ runtime/parrot/library/SDL/Rect.pir     
 runtime/parrot/library/SDL/Sprite.pir             [library]
 runtime/parrot/library/SDL/StopWatch.pir          [library]
 runtime/parrot/library/SDL/Surface.pir            [library]
-runtime/parrot/library/Stream/Base.imc            [library]
-runtime/parrot/library/Stream/Combiner.imc        [library]
-runtime/parrot/library/Stream/Coroutine.imc       [library]
-runtime/parrot/library/Stream/Filter.imc          [library]
-runtime/parrot/library/Stream/Lines.imc           [library]
-runtime/parrot/library/Stream/ParrotIO.imc        [library]
-runtime/parrot/library/Stream/Replay.imc          [library]
-runtime/parrot/library/Stream/Sub.imc             [library]
-runtime/parrot/library/Stream/Writer.imc          [library]
+runtime/parrot/library/Stream/Base.pir            [library]
+runtime/parrot/library/Stream/Combiner.pir        [library]
+runtime/parrot/library/Stream/Coroutine.pir       [library]
+runtime/parrot/library/Stream/Filter.pir          [library]
+runtime/parrot/library/Stream/Lines.pir           [library]
+runtime/parrot/library/Stream/ParrotIO.pir        [library]
+runtime/parrot/library/Stream/Replay.pir          [library]
+runtime/parrot/library/Stream/Sub.pir             [library]
+runtime/parrot/library/Stream/Writer.pir          [library]
 runtime/parrot/library/Test/Builder.pir           [library]
 runtime/parrot/library/Test/Builder/Output.pir    [library]
 runtime/parrot/library/Test/Builder/Test.pir      [library]

Modified: trunk/examples/streams/Bytes.pir
==============================================================================
--- trunk/examples/streams/Bytes.pir    (original)
+++ trunk/examples/streams/Bytes.pir    Wed Dec 28 12:32:30 2005
@@ -14,8 +14,8 @@ This example shows the usage of C<Stream
 .sub _main :main
     .local pmc stream
 
-    load_bytecode "library/Stream/Sub.imc"
-    load_bytecode "library/Stream/Replay.imc"
+    load_bytecode "library/Stream/Sub.pir"
+    load_bytecode "library/Stream/Replay.pir"
 
     find_type $I0, "Stream::Sub"
     new $P0, $I0

Modified: trunk/examples/streams/Combiner.pir
==============================================================================
--- trunk/examples/streams/Combiner.pir (original)
+++ trunk/examples/streams/Combiner.pir Wed Dec 28 12:32:30 2005
@@ -29,9 +29,9 @@ Creates the 3 Stream objects and dumps t
     .local pmc text
     .local pmc combined
 
-    load_bytecode "library/Stream/Base.imc"
-    load_bytecode "library/Stream/Combiner.imc"
-    load_bytecode "library/Stream/Sub.imc"
+    load_bytecode "library/Stream/Base.pir"
+    load_bytecode "library/Stream/Combiner.pir"
+    load_bytecode "library/Stream/Sub.pir"
 
     # create the counter stream
     find_type $I0, "Stream::Sub"

Modified: trunk/examples/streams/Coroutine.pir
==============================================================================
--- trunk/examples/streams/Coroutine.pir        (original)
+++ trunk/examples/streams/Coroutine.pir        Wed Dec 28 12:32:30 2005
@@ -24,8 +24,8 @@ Creates a coroutine stream and dumps it.
     .local pmc stream
     .local pmc temp
 
-    load_bytecode "library/Stream/Base.imc"
-    load_bytecode "library/Stream/Coroutine.imc"
+    load_bytecode "library/Stream/Base.pir"
+    load_bytecode "library/Stream/Coroutine.pir"
 
     # create the coroutine stream    
     find_type $I0, "Stream::Coroutine"

Modified: trunk/examples/streams/FileLines.pir
==============================================================================
--- trunk/examples/streams/FileLines.pir        (original)
+++ trunk/examples/streams/FileLines.pir        Wed Dec 28 12:32:30 2005
@@ -33,10 +33,10 @@ stream for it. Then it combines the stre
     name = argv[1]
 NO_NAME:
 
-    load_bytecode "library/Stream/ParrotIO.imc"
-    load_bytecode "library/Stream/Lines.imc"
-    load_bytecode "library/Stream/Sub.imc"
-    load_bytecode "library/Stream/Combiner.imc"
+    load_bytecode "library/Stream/ParrotIO.pir"
+    load_bytecode "library/Stream/Lines.pir"
+    load_bytecode "library/Stream/Sub.pir"
+    load_bytecode "library/Stream/Combiner.pir"
 
     # create a file stream
     find_type $I0, "Stream::ParrotIO"

Modified: trunk/examples/streams/Filter.pir
==============================================================================
--- trunk/examples/streams/Filter.pir   (original)
+++ trunk/examples/streams/Filter.pir   Wed Dec 28 12:32:30 2005
@@ -21,8 +21,8 @@ Creates a counter stream that generates 
     .local pmc stream
     .local pmc filter
 
-    load_bytecode "library/Stream/Sub.imc"
-    load_bytecode "library/Stream/Filter.imc"
+    load_bytecode "library/Stream/Sub.pir"
+    load_bytecode "library/Stream/Filter.pir"
     
     # create the counter stream
     find_type $I0, "Stream::Sub"

Modified: trunk/examples/streams/Include.pir
==============================================================================
--- trunk/examples/streams/Include.pir  (original)
+++ trunk/examples/streams/Include.pir  Wed Dec 28 12:32:30 2005
@@ -15,7 +15,7 @@ Creates a counter stream and dumps it.
 .sub _main
     .local pmc stream
 
-    load_bytecode "library/Stream/Sub.imc"
+    load_bytecode "library/Stream/Sub.pir"
     
     find_type $I0, "Stream::Sub"
     new stream, $I0

Modified: trunk/examples/streams/Lines.pir
==============================================================================
--- trunk/examples/streams/Lines.pir    (original)
+++ trunk/examples/streams/Lines.pir    Wed Dec 28 12:32:30 2005
@@ -16,8 +16,8 @@ Creates a stream and pipes it through a 
     .local pmc stream
     .local pmc lines
 
-    load_bytecode "library/Stream/Sub.imc"
-    load_bytecode "library/Stream/Lines.imc"
+    load_bytecode "library/Stream/Sub.pir"
+    load_bytecode "library/Stream/Lines.pir"
     
     # create a text stream
     find_type $I0, "Stream::Sub"

Modified: trunk/examples/streams/ParrotIO.pir
==============================================================================
--- trunk/examples/streams/ParrotIO.pir (original)
+++ trunk/examples/streams/ParrotIO.pir Wed Dec 28 12:32:30 2005
@@ -19,7 +19,7 @@ PMC to the stream with the C<assign> op.
 .sub _main :main
     .local pmc stream
 
-    load_bytecode "library/Stream/ParrotIO.imc"
+    load_bytecode "library/Stream/ParrotIO.pir"
 
     # create the ParrotIO stream    
     find_type $I0, "Stream::ParrotIO"

Modified: trunk/examples/streams/Replay.pir
==============================================================================
--- trunk/examples/streams/Replay.pir   (original)
+++ trunk/examples/streams/Replay.pir   Wed Dec 28 12:32:30 2005
@@ -1,8 +1,8 @@
 .sub _main :main
     .local pmc stream
     
-    load_bytecode "library/Stream/Writer.imc"
-    load_bytecode "library/Stream/Replay.imc"
+    load_bytecode "library/Stream/Writer.pir"
+    load_bytecode "library/Stream/Replay.pir"
     
     find_type $I0, "Stream::Writer"
     new stream, $I0

Modified: trunk/examples/streams/SubCounter.pir
==============================================================================
--- trunk/examples/streams/SubCounter.pir       (original)
+++ trunk/examples/streams/SubCounter.pir       Wed Dec 28 12:32:30 2005
@@ -15,8 +15,8 @@ Creates a C<Stream::Sub> and dumps it.
 .sub _main
     .local pmc stream
 
-    load_bytecode "library/Stream/Base.imc"
-    load_bytecode "library/Stream/Sub.imc"
+    load_bytecode "library/Stream/Base.pir"
+    load_bytecode "library/Stream/Sub.pir"
     
     find_type $I0, "Stream::Sub"
     new stream, $I0

Modified: trunk/examples/streams/SubHello.pir
==============================================================================
--- trunk/examples/streams/SubHello.pir (original)
+++ trunk/examples/streams/SubHello.pir Wed Dec 28 12:32:30 2005
@@ -15,7 +15,7 @@ Creates a C<Stream::Sub> and dumps it.
 .sub _main :main
     .local pmc stream
 
-    load_bytecode "library/Stream/Sub.imc"
+    load_bytecode "library/Stream/Sub.pir"
 
     find_type $I0, "Stream::Sub"
     new stream, $I0

Modified: trunk/examples/streams/Writer.pir
==============================================================================
--- trunk/examples/streams/Writer.pir   (original)
+++ trunk/examples/streams/Writer.pir   Wed Dec 28 12:32:30 2005
@@ -15,7 +15,7 @@ Creates a C<Stream::Writer> and writes t
 .sub _main :main
     .local pmc stream
 
-    load_bytecode "library/Stream/Writer.imc"
+    load_bytecode "library/Stream/Writer.pir"
 
     find_type $I0, "Stream::Writer"
     new stream, $I0

Modified: trunk/languages/Zcode/z3main.pir
==============================================================================
--- trunk/languages/Zcode/z3main.pir    (original)
+++ trunk/languages/Zcode/z3main.pir    Wed Dec 28 12:32:30 2005
@@ -8,7 +8,7 @@
   addattribute $P0, "file"
   addattribute $P0, "image"
   addattribute $P0, "opts"
-  load_bytecode "library/Data/Escape.imc"
+  load_bytecode "library/Data/Escape.pir"
   .return($P0)
 .end
 

Copied: trunk/runtime/parrot/library/Data/Dumper.pir (from r10740, 
trunk/runtime/parrot/library/Data/Dumper.imc)
==============================================================================
--- trunk/runtime/parrot/library/Data/Dumper.imc        (original)
+++ trunk/runtime/parrot/library/Data/Dumper.pir        Wed Dec 28 12:32:30 2005
@@ -1,7 +1,7 @@
 .sub __library_data_dumper_onload :load
     find_type $I0, "Data::Dumper"
     if $I0 > 1 goto END
-    load_bytecode "library/Data/Dumper/Default.imc"
+    load_bytecode "library/Data/Dumper/Default.pir"
     newclass $P0, "Data::Dumper"
 END:
     .return ()

Copied: trunk/runtime/parrot/library/Data/Dumper/Default.pir (from r10740, 
trunk/runtime/parrot/library/Data/Dumper/Default.imc)
==============================================================================
--- trunk/runtime/parrot/library/Data/Dumper/Default.imc        (original)
+++ trunk/runtime/parrot/library/Data/Dumper/Default.pir        Wed Dec 28 
12:32:30 2005
@@ -19,9 +19,9 @@ This module provides the default output 
 .sub __library_data_dumper_default_onload :load
     find_type $I0, "Data::Dumper::Default"
     if $I0 > 1 goto END
-    load_bytecode "library/Data/Dumper/Base.imc"
-    load_bytecode "library/Data/Sort.imc"
-    load_bytecode "library/Data/Escape.imc"
+    load_bytecode "library/Data/Dumper/Base.pir"
+    load_bytecode "library/Data/Sort.pir"
+    load_bytecode "library/Data/Escape.pir"
     getclass $P0, "Data::Dumper::Base"
     subclass $P0, $P0, "Data::Dumper::Default"
 END:

Copied: trunk/runtime/parrot/library/Data/Escape.pir (from r10740, 
trunk/runtime/parrot/library/Data/Escape.imc)
==============================================================================
--- trunk/runtime/parrot/library/Data/Escape.imc        (original)
+++ trunk/runtime/parrot/library/Data/Escape.pir        Wed Dec 28 12:32:30 2005
@@ -6,7 +6,7 @@ Data::Escape - simple string escaping im
 
     ...
 
-    load_bytecode "library/Data/Escape.imc"
+    load_bytecode "library/Data/Escape.pir"
 
     .local pmc escape
 

Copied: trunk/runtime/parrot/library/Data/Replace.pir (from r10740, 
trunk/runtime/parrot/library/Data/Replace.imc)
==============================================================================
--- trunk/runtime/parrot/library/Data/Replace.imc       (original)
+++ trunk/runtime/parrot/library/Data/Replace.pir       Wed Dec 28 12:32:30 2005
@@ -6,7 +6,7 @@ Data::Replace - data replacing implement
 
     ...
 
-    load_bytecode "library/Data/Replace.imc"
+    load_bytecode "library/Data/Replace.pir"
 
     .local pmc replace
 

Copied: trunk/runtime/parrot/library/Data/Sort.pir (from r10740, 
trunk/runtime/parrot/library/Data/Sort.imc)
==============================================================================
--- trunk/runtime/parrot/library/Data/Sort.imc  (original)
+++ trunk/runtime/parrot/library/Data/Sort.pir  Wed Dec 28 12:32:30 2005
@@ -6,7 +6,7 @@ Data::Sort - simple sort algorithm imple
 
     ...
 
-    load_bytecode "library/Data/Sort.imc"
+    load_bytecode "library/Data/Sort.pir"
 
     .local pmc sort
 

Modified: trunk/runtime/parrot/library/JSON.imc
==============================================================================
--- trunk/runtime/parrot/library/JSON.imc       (original)
+++ trunk/runtime/parrot/library/JSON.imc       Wed Dec 28 12:32:30 2005
@@ -366,8 +366,8 @@ done:
   .return (result)
 .end
 
-.include  'library/Data/Escape.imc'
-.include  'library/Data/Sort.imc'
+.include  'library/Data/Escape.pir'
+.include  'library/Data/Sort.pir'
 
 =item (pmc) = _json_to_pmc(string)
 

Modified: trunk/runtime/parrot/library/PGE/Hs.pir
==============================================================================
--- trunk/runtime/parrot/library/PGE/Hs.pir     (original)
+++ trunk/runtime/parrot/library/PGE/Hs.pir     Wed Dec 28 12:32:30 2005
@@ -56,7 +56,7 @@ whole thing may be taken out or refactor
 
 .sub "__onload" :load
     .local pmc load
-    load_bytecode "Data/Escape.imc"
+    load_bytecode "Data/Escape.pir"
 .end
 
 .sub "add_rule"

Copied: trunk/runtime/parrot/library/Stream/Base.pir (from r10740, 
trunk/runtime/parrot/library/Stream/Base.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/Base.imc        (original)
+++ trunk/runtime/parrot/library/Stream/Base.pir        Wed Dec 28 12:32:30 2005
@@ -30,7 +30,7 @@ TBD
     find_type $I0, "Stream::Base"
     if $I0 > 1 goto END
 
-    load_bytecode "library/Data/Escape.imc"
+    load_bytecode "library/Data/Escape.pir"
 
     newclass $P0, "Stream::Base"
     addattribute $P0, 'source'
@@ -240,7 +240,7 @@ INCLUDE_DEL:
 Include stream2 in this stream. The next read on this stream will
 act on the included stream.
 
-Please have a look at F<examples/streams/Include.imc> to see how it works.
+Please have a look at F<examples/streams/Include.pir> to see how it works.
 
 =cut
 

Copied: trunk/runtime/parrot/library/Stream/Combiner.pir (from r10740, 
trunk/runtime/parrot/library/Stream/Combiner.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/Combiner.imc    (original)
+++ trunk/runtime/parrot/library/Stream/Combiner.pir    Wed Dec 28 12:32:30 2005
@@ -11,8 +11,8 @@ version 0.1
 =head1 SYNOPSIS
 
 Please have a look at the examples
-F<examples/streams/Combiner.imc> and
-F<examples/streams/FileLines.imc>.
+F<examples/streams/Combiner.pir> and
+F<examples/streams/FileLines.pir>.
 
 =head1 DESCRIPTION
 
@@ -32,7 +32,7 @@ TBD
     find_type i, "Stream::Combiner"
     if i > 1 goto END
 
-    load_bytecode "library/Stream/Base.imc"
+    load_bytecode "library/Stream/Base.pir"
 
     getclass base, "Stream::Base"
     subclass comb, base, "Stream::Combiner"

Copied: trunk/runtime/parrot/library/Stream/Coroutine.pir (from r10740, 
trunk/runtime/parrot/library/Stream/Coroutine.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/Coroutine.imc   (original)
+++ trunk/runtime/parrot/library/Stream/Coroutine.pir   Wed Dec 28 12:32:30 2005
@@ -8,7 +8,7 @@ version 0.1
 
 =head1 SYNOPSIS
 
-please see F<examples/streams/Coroutine.imc>
+please see F<examples/streams/Coroutine.pir>
 
 =head1 DESCRIPTION
 
@@ -28,7 +28,7 @@ TBD
     find_type i, "Stream::Coroutine"
     if i > 1 goto END
     
-    load_bytecode "library/Stream/Base.imc"
+    load_bytecode "library/Stream/Base.pir"
 
     getclass base, "Stream::Base"
     subclass coro, base, "Stream::Coroutine"

Copied: trunk/runtime/parrot/library/Stream/Filter.pir (from r10740, 
trunk/runtime/parrot/library/Stream/Filter.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/Filter.imc      (original)
+++ trunk/runtime/parrot/library/Stream/Filter.pir      Wed Dec 28 12:32:30 2005
@@ -8,7 +8,7 @@ version 0.1
 
 =head1 SYNOPSIS
 
-please see F<examples/streams/Filter.imc>
+please see F<examples/streams/Filter.pir>
 
 =head1 DESCRIPTION
 
@@ -28,7 +28,7 @@ TBD
     find_type i, "Stream::Filter"
     if i > 1 goto END
 
-    load_bytecode "library/Stream/Base.imc"
+    load_bytecode "library/Stream/Base.pir"
 
     getclass base, "Stream::Base"
     subclass filter, base, "Stream::Filter"

Copied: trunk/runtime/parrot/library/Stream/Lines.pir (from r10740, 
trunk/runtime/parrot/library/Stream/Lines.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/Lines.imc       (original)
+++ trunk/runtime/parrot/library/Stream/Lines.pir       Wed Dec 28 12:32:30 2005
@@ -8,7 +8,7 @@ version 0.1
 
 =head1 SYNOPSIS
 
-please see F<examples/streams/Lines.imc> and F<examples/streams/FileLines.imc>
+please see F<examples/streams/Lines.pir> and F<examples/streams/FileLines.pir>
 
 =head1 DESCRIPTION
 
@@ -20,7 +20,7 @@ TBD
 
 =cut
 
-.include "library/Data/Escape.imc"
+.include "library/Data/Escape.pir"
 
 .sub onload :load, :anon
     .local int i
@@ -30,7 +30,7 @@ TBD
     find_type i, "Stream::Lines"
     if i > 1 goto END
 
-    load_bytecode "library/Stream/Base.imc"
+    load_bytecode "library/Stream/Base.pir"
 
     getclass base, "Stream::Base"
     subclass lines, base, "Stream::Lines"

Copied: trunk/runtime/parrot/library/Stream/ParrotIO.pir (from r10740, 
trunk/runtime/parrot/library/Stream/ParrotIO.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/ParrotIO.imc    (original)
+++ trunk/runtime/parrot/library/Stream/ParrotIO.pir    Wed Dec 28 12:32:30 2005
@@ -8,7 +8,7 @@ version 0.1
 
 =head1 SYNOPSIS
 
-please see F<examples/streams/ParrotIO.imc> and 
F<examples/streams/FileLines.imc>
+please see F<examples/streams/ParrotIO.pir> and 
F<examples/streams/FileLines.pir>
 
 =head1 DESCRIPTION
 
@@ -28,7 +28,7 @@ TDB
     find_type i, "Stream::ParrotIO"
     if i > 1 goto END
 
-    load_bytecode "library/Stream/Base.imc"
+    load_bytecode "library/Stream/Base.pir"
 
     getclass base, "Stream::Base"
     subclass io, base, "Stream::ParrotIO"

Copied: trunk/runtime/parrot/library/Stream/Replay.pir (from r10740, 
trunk/runtime/parrot/library/Stream/Replay.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/Replay.imc      (original)
+++ trunk/runtime/parrot/library/Stream/Replay.pir      Wed Dec 28 12:32:30 2005
@@ -10,7 +10,7 @@ version 0.1
 
 =head1 SYNOPSIS
 
-    load_bytecode "library/Stream/Replay.imc"
+    load_bytecode "library/Stream/Replay.pir"
 
     $I0 = find_type "Stream::Replay"
     $P0 = new $I0
@@ -41,7 +41,7 @@ By using C<clone>, you can read data fro
     find_type $I0, "Stream::Replay"
     if $I0 > 1 goto END
     
-    load_bytecode "library/Stream/Base.imc"
+    load_bytecode "library/Stream/Base.pir"
     
     # Stream::Replay
     getclass $P0, "Stream::Base"

Copied: trunk/runtime/parrot/library/Stream/Sub.pir (from r10740, 
trunk/runtime/parrot/library/Stream/Sub.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/Sub.imc (original)
+++ trunk/runtime/parrot/library/Stream/Sub.pir Wed Dec 28 12:32:30 2005
@@ -60,7 +60,7 @@ The stream will be disconnected automati
     find_type i, "Stream::Sub"
     if i > 1 goto END
 
-    load_bytecode "library/Stream/Base.imc"
+    load_bytecode "library/Stream/Base.pir"
 
     getclass base, "Stream::Base"
     subclass sub, base, "Stream::Sub"

Copied: trunk/runtime/parrot/library/Stream/Writer.pir (from r10740, 
trunk/runtime/parrot/library/Stream/Writer.imc)
==============================================================================
--- trunk/runtime/parrot/library/Stream/Writer.imc      (original)
+++ trunk/runtime/parrot/library/Stream/Writer.pir      Wed Dec 28 12:32:30 2005
@@ -36,7 +36,7 @@ version 0.1
     find_type $I0, "Stream::Writer"
     if $I0 > 1 goto END
 
-    load_bytecode "library/Stream/Base.imc"
+    load_bytecode "library/Stream/Base.pir"
 
     getclass $P0, "Stream::Base"
     subclass $P1, $P0, "Stream::Writer"

Copied: trunk/runtime/parrot/library/dumper.pir (from r10740, 
trunk/runtime/parrot/library/dumper.imc)
==============================================================================
--- trunk/runtime/parrot/library/dumper.imc     (original)
+++ trunk/runtime/parrot/library/dumper.pir     Wed Dec 28 12:32:30 2005
@@ -1,6 +1,6 @@
 =head1 TITLE
 
-dumper.imc - PIR version of Data::Dumper
+dumper.pir - PIR version of Data::Dumper
 
 =head1 VERSION
 
@@ -17,7 +17,7 @@ version 0.10
        ...
 
        END
-       .include "library/dumper.imc"
+       .include "library/dumper.pir"
 
 
 =head1 DESCRIPTION
@@ -29,7 +29,7 @@ version 0.10
 # first method prints usage information
 .sub __library_dumper_onload
     print "usage:"
-    print "\tload_bytecode \"library/Data/Dumper.imc\"\n"
+    print "\tload_bytecode \"library/Data/Dumper.pir\"\n"
     print "\t...\n"
     print "\tnew dumper, \"Data::Dumper\"\n"
     print "\tdumper.\"dumper\"( foo, \"foo\" )\n\n"
@@ -68,7 +68,7 @@ B<Note:> This function currently returns
 the dumped data as a string, like Perl's Data::Dumper. Instead,
 everything is printed out using C<print>.
 
-B<Note: #2> Hash keys are now sorted using C<_sort()> (library/sort.imc)
+B<Note: #2> Hash keys are now sorted using C<_sort()> (library/sort.pir)
 
 =cut
 
@@ -144,10 +144,10 @@ Returns the global dumper instance used 
 
     find_type mytype, "Data::Dumper"
     if mytype != 0 goto TYPE_OK
-    load_bytecode "library/Data/Dumper.imc"
+    load_bytecode "library/Data/Dumper.pir"
     find_type mytype, "Data::Dumper"
     if mytype != 0 goto TYPE_OK
-    print "fatal error: failure while loading library/Data/Dumper.imc\n"
+    print "fatal error: failure while loading library/Data/Dumper.pir\n"
     end
 TYPE_OK:
 

Modified: trunk/t/examples/streams.t
==============================================================================
--- trunk/t/examples/streams.t  (original)
+++ trunk/t/examples/streams.t  Wed Dec 28 12:32:30 2005
@@ -91,10 +91,10 @@ read:[   32     if argc < 2 goto NO_NAME
 read:[   33     name = argv[1]]
 read:[   34 NO_NAME:]
 read:[   35 ]
-read:[   36     load_bytecode "library/Stream/ParrotIO.imc"]
-read:[   37     load_bytecode "library/Stream/Lines.imc"]
-read:[   38     load_bytecode "library/Stream/Sub.imc"]
-read:[   39     load_bytecode "library/Stream/Combiner.imc"]
+read:[   36     load_bytecode "library/Stream/ParrotIO.pir"]
+read:[   37     load_bytecode "library/Stream/Lines.pir"]
+read:[   38     load_bytecode "library/Stream/Sub.pir"]
+read:[   39     load_bytecode "library/Stream/Combiner.pir"]
 read:[   40 ]
 read:[   41     # create a file stream]
 read:[   42     find_type $I0, "Stream::ParrotIO"]
@@ -216,7 +216,7 @@ read:[ill be disconnected.\n\nInstead of
 read:[ method, you can also assign your own ParrotIO\nPMC]
 read:[ to the stream with the C<assign> op.\n\n=cut\n\n.sub ]
 read:[_main :main\n    .local pmc stream\n\n    load_byteco]
-read:[de "library/Stream/ParrotIO.imc"\n\n    # create the]
+read:[de "library/Stream/ParrotIO.pir"\n\n    # create the]
 read:[ ParrotIO stream    \n    find_type $I0, "Stream::P]
 read:[arrotIO"\n    new stream, $I0\n\n    # open this file]
 read:[\n    stream."open"( "examples/streams/ParrotIO.pir]

Modified: trunk/t/library/data_escape.t
==============================================================================
--- trunk/t/library/data_escape.t       (original)
+++ trunk/t/library/data_escape.t       Wed Dec 28 12:32:30 2005
@@ -20,7 +20,7 @@ t/library/data_escape.t - Data::Escape t
 =cut
 
 
-my $lib= 'Data/Escape.imc';
+my $lib= 'Data/Escape.pir';
 my $ns= 'Data::Escape';
 my @subs= qw/ String /;
 

Modified: trunk/t/library/dumper.t
==============================================================================
--- trunk/t/library/dumper.t    (original)
+++ trunk/t/library/dumper.t    Wed Dec 28 12:32:30 2005
@@ -27,7 +27,7 @@ Tests data dumping.
 # no. 1
 pir_output_is(<<'CODE', <<'OUT', "dumping array of sorted numbers");
 
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 .sub test :main
     .local pmc array
 
@@ -63,7 +63,7 @@ OUT
 # no. 2
 
 pir_output_is(<<'CODE', <<'OUT', "dumping unsorted numbers");
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 .sub test :main
     .local pmc array
 
@@ -99,7 +99,7 @@ OUT
 # no. 3
 pir_output_is(<<'CODE', <<'OUT', "dumping sorted strings");
 
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 .sub test :main
     .local pmc array
 
@@ -146,7 +146,7 @@ pir_output_is(<<'CODE', <<'OUT', "sortin
 
     _dumper( array, "strings" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "strings" => PerlArray (size:8) [
     "charlie",
@@ -190,7 +190,7 @@ pir_output_is(<<'CODE', <<'OUT', "dumpin
 
     _dumper( array, "array" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array" => PerlArray (size:20) [
     0.100000,
@@ -276,7 +276,7 @@ pir_output_is(<<'CODE', <<'OUT', "dumpin
     _dumper( hash1,"hash1" )
 
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "hash1" => PerlHash {
 }
@@ -341,7 +341,7 @@ pir_output_is(<<'CODE', <<'OUT', "proper
     _dumper( array )
 
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "VAR1" => PerlArray (size:2) [
     "test1",
@@ -386,7 +386,7 @@ pir_output_is(<<'CODE', <<'OUT', "indent
     print indent
     print "'\n"
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "hash" => PerlHash {
 |  "hash2" => PerlHash {
@@ -432,7 +432,7 @@ pir_output_is(<<'CODE', <<'OUT', "back-r
     setprop hash, "backref", hash
     _dumper( hash )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "VAR1" => PerlHash {
     "hello" => "world"
@@ -455,7 +455,7 @@ pir_output_is(<<'CODE', <<'OUT', "self-r
     setprop hash, "self", prop
     _dumper( hash )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "VAR1" => PerlHash {
     "hello" => "world"
@@ -489,7 +489,7 @@ pir_output_is(<<'CODE', <<'OUT', "self-r
     push array, prop
     _dumper( array )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "VAR1" => PerlArray (size:4) [
     PerlHash {
@@ -555,7 +555,7 @@ pir_output_is(<<'CODE', <<'OUT', "dumpin
     .pcc_end_return
 .end
 .namespace [""]
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "VAR1" => PerlArray (size:2) [
     PMC 'TestClass' {
@@ -595,7 +595,7 @@ pir_output_is(<<'CODE', <<'OUT', "dumpin
 
     _dumper( array, "array" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array" => PerlArray (size:5) [
     0,
@@ -609,7 +609,7 @@ OUT
 # no. 14
 pir_output_is( << 'CODE', << 'OUT', "dumping strings");
 
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 .sub _test :main
     .local pmc array
     array = new PerlArray
@@ -697,7 +697,7 @@ pir_output_is(<<'CODE', <<'OUT', "dumpin
     _dumper( hash1,"hash1" )
 
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "hash1" => Hash {
 }
@@ -750,7 +750,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     int1 = 12345
     _dumper( int1, "Int:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "Int:" => 12345
 OUTPUT
@@ -765,7 +765,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     float1 = 12345.678
     _dumper( float1, "Float:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "Float:" => 12345.7
 OUTPUT
@@ -780,7 +780,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     push array, "hello"
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => ResizablePMCArray (size:2) [
     12345,
@@ -798,7 +798,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     push array, "world"
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => ResizableStringArray (size:2) [
     "hello",
@@ -816,7 +816,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     push array, 67890
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => ResizableIntegerArray (size:2) [
     12345,
@@ -834,7 +834,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     push array, 67.89
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => ResizableFloatArray (size:2) [
     123.45,
@@ -853,7 +853,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     array[1] = "hello"
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => FixedPMCArray (size:2) [
     12345,
@@ -872,7 +872,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     array[1] = "world"
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => FixedStringArray (size:2) [
     "hello",
@@ -891,7 +891,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     array[1] = 67890
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => FixedIntegerArray (size:2) [
     12345,
@@ -910,7 +910,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     array[1] = 67.89
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => FixedFloatArray (size:2) [
     123.45,
@@ -928,7 +928,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "dum
     push array, "world"
     _dumper( array, "array:" )
 .end
-.include "library/dumper.imc"
+.include "library/dumper.pir"
 CODE
 "array:" => StringArray (size:2) [
     "hello",
@@ -965,7 +965,7 @@ pir_output_is(<<'CODE', <<'OUTPUT', "cus
     print "\n}"
 .end
 .namespace ['']
-.include 'library/dumper.imc'
+.include 'library/dumper.pir'
 
 CODE
 "VAR1" => PMC 'bar'  __value => {

Modified: trunk/t/library/sort.t
==============================================================================
--- trunk/t/library/sort.t      (original)
+++ trunk/t/library/sort.t      Wed Dec 28 12:32:30 2005
@@ -57,7 +57,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 0
 1
@@ -103,7 +103,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 0
 1
@@ -150,7 +150,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 0
 1
@@ -195,7 +195,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 alpha
 bravo
@@ -238,7 +238,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 alpha
 bravo
@@ -293,7 +293,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 0
 0
@@ -344,7 +344,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 h
 w
@@ -390,7 +390,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 h
 w
@@ -429,7 +429,7 @@ LOOP:
     if i < j goto LOOP
     end
 .end
-.include "library/Data/Sort.imc"
+.include "library/Data/Sort.pir"
 CODE
 aaaa1
 aaaa2

Modified: trunk/t/library/streams.t
==============================================================================
--- trunk/t/library/streams.t   (original)
+++ trunk/t/library/streams.t   Wed Dec 28 12:32:30 2005
@@ -35,7 +35,7 @@ pir_output_is(<<"CODE", <<"OUT", "load a
 
 .sub _main
     print "loading '$a'...\\n"
-    load_bytecode "library/Stream/$a.imc"
+    load_bytecode "library/Stream/$a.pir"
     print "loaded\\n"
 
     find_type \$I0, "Stream::$a"
@@ -64,7 +64,7 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
 .sub _main :main
     .local pmc stream
 
-    load_bytecode "library/Stream/Sub.imc"
+    load_bytecode "library/Stream/Sub.pir"
 
     find_type I0, "Stream::Sub"
     new stream, I0
@@ -111,8 +111,8 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
 .sub _main :main
     .local pmc stream
 
-    load_bytecode "library/Stream/Sub.imc"
-    load_bytecode "library/Stream/Replay.imc"
+    load_bytecode "library/Stream/Sub.pir"
+    load_bytecode "library/Stream/Replay.pir"
 
     find_type $I0, "Stream::Sub"
     new $P0, $I0
@@ -190,9 +190,9 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
     .local pmc text
     .local pmc combined
 
-    load_bytecode "library/Stream/Base.imc"
-    load_bytecode "library/Stream/Combiner.imc"
-    load_bytecode "library/Stream/Sub.imc"
+    load_bytecode "library/Stream/Base.pir"
+    load_bytecode "library/Stream/Combiner.pir"
+    load_bytecode "library/Stream/Sub.pir"
 
     # create the counter stream
     find_type I0, "Stream::Sub"
@@ -279,8 +279,8 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
 .sub _main
     .local pmc stream
 
-    load_bytecode "library/Stream/Base.imc"
-    load_bytecode "library/Stream/Coroutine.imc"
+    load_bytecode "library/Stream/Base.pir"
+    load_bytecode "library/Stream/Coroutine.pir"
 
     # create the coroutine stream
     find_type I0, "Stream::Coroutine"
@@ -352,10 +352,10 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
 
     name = "t/library/perlhist.txt"
 
-    load_bytecode "library/Stream/ParrotIO.imc"
-    load_bytecode "library/Stream/Lines.imc"
-    load_bytecode "library/Stream/Sub.imc"
-    load_bytecode "library/Stream/Combiner.imc"
+    load_bytecode "library/Stream/ParrotIO.pir"
+    load_bytecode "library/Stream/Lines.pir"
+    load_bytecode "library/Stream/Sub.pir"
+    load_bytecode "library/Stream/Combiner.pir"
 
     # create a file stream
     find_type $I0, "Stream::ParrotIO"
@@ -717,8 +717,8 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
     .local pmc stream
     .local pmc filter
 
-    load_bytecode "library/Stream/Sub.imc"
-    load_bytecode "library/Stream/Filter.imc"
+    load_bytecode "library/Stream/Sub.pir"
+    load_bytecode "library/Stream/Filter.pir"
 
     # create the counter stream
     find_type I0, "Stream::Sub"
@@ -804,7 +804,7 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
 .sub _main
     .local pmc stream
 
-    load_bytecode "library/Stream/Sub.imc"
+    load_bytecode "library/Stream/Sub.pir"
 
     find_type I0, "Stream::Sub"
     new stream, I0
@@ -913,8 +913,8 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
     .local pmc stream
     .local pmc lines
 
-    load_bytecode "library/Stream/Sub.imc"
-    load_bytecode "library/Stream/Lines.imc"
+    load_bytecode "library/Stream/Sub.pir"
+    load_bytecode "library/Stream/Lines.pir"
 
     # create a text stream
     find_type I0, "Stream::Sub"
@@ -962,7 +962,7 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
     .local pmc stream
     .local pmc temp
 
-    load_bytecode "library/Stream/ParrotIO.imc"
+    load_bytecode "library/Stream/ParrotIO.pir"
 
     # create the ParrotIO stream
     find_type I0, "Stream::ParrotIO"
@@ -1277,8 +1277,8 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
 .sub _main :main
     .local pmc stream
 
-    load_bytecode "library/Stream/Writer.imc"
-    load_bytecode "library/Stream/Replay.imc"
+    load_bytecode "library/Stream/Writer.pir"
+    load_bytecode "library/Stream/Replay.pir"
 
     find_type I0, "Stream::Writer"
     new stream, I0
@@ -1381,8 +1381,8 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
     .local pmc stream
     .local pmc temp
 
-    load_bytecode "library/Stream/Base.imc"
-    load_bytecode "library/Stream/Sub.imc"
+    load_bytecode "library/Stream/Base.pir"
+    load_bytecode "library/Stream/Sub.pir"
 
     find_type I0, "Stream::Sub"
     new stream, I0
@@ -1443,7 +1443,7 @@ pir_output_is(<<'CODE', <<'OUT', "Stream
 .sub _main :main
     .local pmc stream
 
-    load_bytecode "library/Stream/Writer.imc"
+    load_bytecode "library/Stream/Writer.pir"
 
     find_type I0, "Stream::Writer"
     new stream, I0

Reply via email to