Skip to content

Commit

Permalink
New GAP-level var ERROR_OUTPUT for '*errout*'
Browse files Browse the repository at this point in the history
This commit introduces a new global variable ERROR_OUTPUT.

As a next step one can make it possible to change the targets
of the magic strings "*stdout*", "*stdin*", and "*errout*",
as suggested by @fingolfin in gap-system#1815. See gap-system#2822.
  • Loading branch information
ssiccha committed Sep 20, 2018
1 parent 3ee3cd6 commit 0ff2ba5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hpcgap/lib/streams.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,10 @@ InstallGlobalFunction( "UnInstallCharReadHookFunc",
# to be bound means active:
Unbind(OnCharReadHookActive);

#############################################################################
##
## Default stream for error messages.
BindGlobal(ERROR_OUTPUT, "*errout*");

#############################################################################
##
Expand Down
1 change: 1 addition & 0 deletions lib/streams.gd
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,7 @@ DeclareGlobalFunction( "UnInstallCharReadHookFunc" );
DeclareGlobalFunction( "InputFromUser" );



#############################################################################
##
#E
4 changes: 4 additions & 0 deletions lib/streams.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,10 @@ InstallGlobalFunction( "UnInstallCharReadHookFunc",
# to be bound means active:
Unbind(OnCharReadHookActive);

#############################################################################
##
## Default stream for error messages.
BindGlobal(ERROR_OUTPUT, "*errout*");

#############################################################################
##
Expand Down

0 comments on commit 0ff2ba5

Please sign in to comment.