X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fparser.h;fp=source%2Fglsl%2Fparser.h;h=bce9698f7d608a4b3c18417bf2eef1d149f54a81;hb=9ec831710f64a62ad5f2e896a55ae82a3519f29e;hp=acfb7d9eed9a8cc857becf5436e59a92bac522ba;hpb=3f899b1fc2e04f4fe74c99ad3e8ebb900c257214;p=libs%2Fgl.git diff --git a/source/glsl/parser.h b/source/glsl/parser.h index acfb7d9e..bce9698f 100644 --- a/source/glsl/parser.h +++ b/source/glsl/parser.h @@ -16,8 +16,8 @@ class Parser { private: std::string source; - unsigned base_index; - unsigned source_index; + int base_index; + int source_index; Tokenizer tokenizer; Preprocessor preprocessor; bool allow_stage_change; @@ -30,11 +30,11 @@ public: Parser(); ~Parser(); - Module &parse(const std::string &, const std::string &, unsigned = 0); - Module &parse(IO::Base &, const std::string &, unsigned = 0); + Module &parse(const std::string &, const std::string &, int); + Module &parse(IO::Base &, const std::string &, int); private: - void parse_source(const std::string &, unsigned); + void parse_source(const std::string &, int); void set_required_version(const Version &); void source_reference(unsigned, const std::string &); void stage_change(Stage::Type);