X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramparser.cpp;h=07fa19de655e774aa0765e5bd20f3c0d14f58d48;hp=4f08b97718d26afe4ab1b41b60af3ee5f737d70b;hb=8468279a03d906f79fb6158162c7970d4d7fff60;hpb=ef9ffbc287417520d223ce29dc6c2de110cac945 diff --git a/source/programparser.cpp b/source/programparser.cpp index 4f08b977..07fa19de 100644 --- a/source/programparser.cpp +++ b/source/programparser.cpp @@ -112,7 +112,7 @@ void ProgramParser::parse_source() source_end = source.end(); current_line = 1; allow_preprocess = true; - while(RefPtr statement = parse_global_declaration()) + while(RefPtr statement = parse_global_declaration()) cur_stage->content.body.push_back(statement); } @@ -426,7 +426,7 @@ void ProgramParser::preprocess_stage() cur_stage = &module->stages.back(); } -RefPtr ProgramParser::parse_global_declaration() +RefPtr ProgramParser::parse_global_declaration() { allow_stage_change = true; string token = peek_token(); @@ -480,7 +480,7 @@ RefPtr ProgramParser::parse_global_declaration() throw runtime_error(format_syntax_error("a global declaration")); } -RefPtr ProgramParser::parse_statement() +RefPtr ProgramParser::parse_statement() { string token = peek_token(); if(token=="if")