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 21, 2018
1 parent 3ee3cd6 commit 0706841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/error.g
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ CallAndInstallPostRestore( function()
ASS_GVAR( "QUITTING", false );
end);

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

#############################################################################
##
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

0 comments on commit 0706841

Please sign in to comment.