minor formatting changes
This commit is contained in:
@@ -61,7 +61,6 @@ static int bin_type(Runtime *runtime, Object **argv, unsigned int argc, Object *
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int bin_unicode(Runtime *runtime, Object **argv, unsigned int argc, Object **rets, unsigned int maxretc, Error *error)
|
||||
{
|
||||
(void) runtime;
|
||||
@@ -111,10 +110,10 @@ static int bin_chr(Runtime *runtime, Object **argv, unsigned int argc, Object **
|
||||
|
||||
|
||||
if(!Object_IsInt(argv[0]))
|
||||
{
|
||||
Error_Report(error, 0, "Argument #%d is not an integer", 1);
|
||||
return -1;
|
||||
}
|
||||
{
|
||||
Error_Report(error, 0, "Argument #%d is not an integer", 1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
char buff[32];
|
||||
|
||||
@@ -77,7 +77,9 @@ static Opcode exprkind_to_opcode(ExprKind kind)
|
||||
}
|
||||
}
|
||||
|
||||
static _Bool emit_instr_for_funccall(ExeBuilder *exeb, CallExprNode *expr, Promise *break_dest, int returns, Error *error)
|
||||
static _Bool
|
||||
emit_instr_for_funccall(ExeBuilder *exeb, CallExprNode *expr,
|
||||
Promise *break_dest, int returns, Error *error)
|
||||
{
|
||||
Node *arg = expr->argv;
|
||||
|
||||
|
||||
+12
-3
@@ -968,13 +968,19 @@ static Node *parse_map_primary_expression(Context *ctx)
|
||||
|
||||
if(done(ctx))
|
||||
{
|
||||
Error_Report(ctx->error, 0, "Source ended where a map key-value separator ':' was expected");
|
||||
Error_Report(ctx->error, 0,
|
||||
"Source ended where a map key-value "
|
||||
"separator ':' was expected");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(current(ctx) != ':')
|
||||
{
|
||||
Error_Report(ctx->error, 0, "Got token \"%.*s\" where a map key-value separator ':' was expected", ctx->token->length, ctx->src + ctx->token->offset);
|
||||
Error_Report(ctx->error, 0,
|
||||
"Got token \"%.*s\" where a map key-value "
|
||||
"separator ':' was expected",
|
||||
ctx->token->length,
|
||||
ctx->src + ctx->token->offset);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1012,7 +1018,10 @@ static Node *parse_map_primary_expression(Context *ctx)
|
||||
if(current(ctx) == TDONE)
|
||||
Error_Report(ctx->error, 0, "Source ended inside a map literal");
|
||||
else
|
||||
Error_Report(ctx->error, 0, "Got unexpected token \"%.*s\" inside map literal, where ',' or '}' were expected", ctx->token->length, ctx->src + ctx->token->offset);
|
||||
Error_Report(ctx->error, 0,
|
||||
"Got unexpected token \"%.*s\" inside "
|
||||
"map literal, where ',' or '}' were expected",
|
||||
ctx->token->length, ctx->src + ctx->token->offset);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user