Skip to content

Commit

Permalink
Export READ_ALL_COMMANDS via header file
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Pfeiffer authored and fingolfin committed Aug 16, 2018
1 parent 380c633 commit 92be76e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ static Int READ_COMMAND(Obj *evalResult)
** that can read a single command from a stream without losing the rest of
** its content.
*/
Obj FuncREAD_ALL_COMMANDS(
Obj self, Obj instream, Obj echo, Obj capture, Obj resultCallback)
Obj READ_ALL_COMMANDS(Obj instream, Obj echo, Obj capture, Obj resultCallback)
{
ExecStatus status;
UInt dualSemicolon;
Expand Down Expand Up @@ -202,6 +201,13 @@ Obj FuncREAD_ALL_COMMANDS(
return resultList;
}

Obj FuncREAD_ALL_COMMANDS(
Obj self, Obj instream, Obj echo, Obj capture, Obj resultCallback)
{
return READ_ALL_COMMANDS(instream, echo, capture, resultCallback);
}


/*
Returns a list with one or two entries. The first
entry is set to "false" if there was any error
Expand Down
5 changes: 5 additions & 0 deletions src/streams.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ extern Obj READ_AS_FUNC ( void );
*/
extern Int READ_GAP_ROOT ( const Char * filename );

// READ_ALL_COMMANDS reads a string of GAP statements and executes them
// allowing to capture and process outputs
extern Obj
READ_ALL_COMMANDS(Obj instream, Obj echo, Obj capture, Obj resultCallback);


/****************************************************************************
**
Expand Down

0 comments on commit 92be76e

Please sign in to comment.