Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: sebasguts <gutsche@mathematik.uni-siegen.de>
  • Loading branch information
fingolfin and sebasguts authored Mar 21, 2019
1 parent 93c362a commit aa7a8b0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ static void ReadLiteral (
case S_STRING:
GAP_ASSERT(STATE(ValueObj) != 0);
TRY_IF_NO_ERROR { IntrStringExpr(STATE(ValueObj)); }
Match(S_STRING, "", follow );
Match(S_STRING, "", follow);
STATE(ValueObj) = 0;
break;

Expand Down
5 changes: 2 additions & 3 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,13 +969,12 @@ static UInt NextSymbol(void)

// skip over <spaces>, <tabs>, <newlines> and comments
while (c == ' ' || c == '\t' || c== '\n' || c== '\r' || c == '\f' || c=='#') {
if (c == '#'){
if (c == '#') {
c = GET_NEXT_CHAR_NO_LC();
if ( c == '@') {
if (c == '@') {
// we have encountered a pragma
GetPragma();
return S_PRAGMA;

}

SKIP_TO_END_OF_LINE();
Expand Down
2 changes: 1 addition & 1 deletion src/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ static void PrintReturnVoid(Stat stat)
static void PrintPragma(Expr expr)
{
UInt ix = READ_EXPR(expr, 0);
Obj string = GET_VALUE_FROM_CURRENT_BODY(ix);
Obj string = GET_VALUE_FROM_CURRENT_BODY(ix);

Pr( "#", 0L, 0L );
Pr( CSTR_STRING( string ), 0L, 0L );
Expand Down

0 comments on commit aa7a8b0

Please sign in to comment.