Skip to content

Commit

Permalink
Add enough of [eof] to pass our sanity test.
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Dec 19, 2009
1 parent 6d6eace commit aa6d047
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/Makefile.in
Expand Up @@ -59,6 +59,7 @@ TEST_FILES = \
t/sanity.t \
t/cmd_after.t \
t/cmd_concat.t \
t/cmd_eof.t \
t/cmd_error.t \
t/cmd_flush.t \
t/cmd_for.t \
Expand Down
5 changes: 5 additions & 0 deletions src/Partcl/commands/main.pm
Expand Up @@ -97,6 +97,11 @@ INIT {
}

our sub eof(*@args) {
if +@args != 1 {
error('wrong # args: should be "eof channelId"')
}
my $chan := _getChannel(@args[0]);
return 0;
}

## "error" is special -- see "return"
Expand Down
1 change: 1 addition & 0 deletions src/init.pm
Expand Up @@ -9,6 +9,7 @@ INIT {
our %CHANNELS := TclLexPad.newpad();
%CHANNELS{'stdout'} := pir::getstdout__p();
%CHANNELS{'stderr'} := pir::getstderr__p();
%CHANNELS{'stdin'} := pir::getstdin__p();

my @interp := pir::getinterp__p();
my %PConfig := @interp[6]; ## .IGLOBALS_CONFIG_HASH
Expand Down

0 comments on commit aa6d047

Please sign in to comment.