From e01f047b0d9715afdd167f3b86459d4f4ffbf532 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 2 Feb 2009 22:56:13 -0500 Subject: [PATCH] Changed some ifs to else ifs. --- mojoshader.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mojoshader.c b/mojoshader.c index 9103f884..44d4a53d 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -6668,22 +6668,22 @@ static int parse_token(Context *ctx) if (isfail(ctx)) return FAIL; // just in case...catch previously unhandled fails here. - if (ctx->output_stack_len != 0) + else if (ctx->output_stack_len != 0) return fail(ctx, "BUG: output stack isn't empty on new token!"); - if (ctx->tokencount == 0) + else if (ctx->tokencount == 0) return fail(ctx, "unexpected end of shader."); - if ((rc = parse_comment_token(ctx)) != 0) + else if ((rc = parse_comment_token(ctx)) != 0) return rc; - if ((rc = parse_end_token(ctx)) != 0) + else if ((rc = parse_end_token(ctx)) != 0) return rc; - if ((rc = parse_phase_token(ctx)) != 0) + else if ((rc = parse_phase_token(ctx)) != 0) return rc; - if ((rc = parse_instruction_token(ctx)) != 0) + else if ((rc = parse_instruction_token(ctx)) != 0) return rc; return failf(ctx, "unknown token (%u)", (uint) *ctx->tokens);