Skip to content

Commit

Permalink
Replace 2 trivial PIR files with one liners in NQP.
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Apr 5, 2010
1 parent 16f0b3d commit 6a4abcd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 43 deletions.
6 changes: 1 addition & 5 deletions build/Makefile.in
Expand Up @@ -43,14 +43,10 @@ GEN_SOURCES = \
src/init.pir \
src/options.pir

SOURCES = \
src/class/tclstring.pir \
src/class/tcllist.pir

$(PARTCL_EXE) : partcl.pbc
$(PBC_TO_EXE) partcl.pbc

partcl.pbc : src/Partcl.pir $(SOURCES) $(GEN_SOURCES)
partcl.pbc : src/Partcl.pir $(GEN_SOURCES)
$(PARROT) -o $@ $<

.SUFFIXES: .pm .pir
Expand Down
3 changes: 0 additions & 3 deletions src/Partcl.pir
@@ -1,6 +1,3 @@
.include 'src/class/tcllist.pir'
.include 'src/class/tclstring.pir'

.HLL 'tcl'

.namespace []
Expand Down
6 changes: 3 additions & 3 deletions src/TclList.pm
@@ -1,10 +1,10 @@
# This class is currently created via PIR in src/class/tcllist.pir

INIT {
pir::subclass__ps(pir::get_class__ps('ResizablePMCArray'), 'TclList');

my $interp := pir::getinterp__p();
my $tcl := pir::get_class__ps('TclList'),

my $core := pir::get_class__ps('ResizablePMCArray'),

$interp.hll_map($core, $tcl);

$core := pir::get_class__ps('ResizableStringArray'),
Expand Down
4 changes: 2 additions & 2 deletions src/TclString.pm
@@ -1,6 +1,6 @@
# This class is currently created via PIR in src/class/tclstring.pir

INIT {
pir::subclass__ps(pir::get_class__ps('String'), 'TclString');

my $tcl := pir::get_class__ps('TclString');
my $core := pir::get_class__ps('String');
pir::getinterp__p().hll_map($core, $tcl);
Expand Down
14 changes: 0 additions & 14 deletions src/class/tcllist.pir

This file was deleted.

16 changes: 0 additions & 16 deletions src/class/tclstring.pir

This file was deleted.

0 comments on commit 6a4abcd

Please sign in to comment.