X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fprogramparser.cpp;h=07fa19de655e774aa0765e5bd20f3c0d14f58d48;hp=4f08b97718d26afe4ab1b41b60af3ee5f737d70b;hb=16a9d75c8e124a0faf89c56533792cb97a214e37;hpb=c041ea998569f24b2af9c5af47dffd337ff78146 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")