Code cleanup.

This commit is contained in:
yhirose 2015-07-29 21:48:44 -04:00
parent 8c029c07eb
commit 0ddb5682af
2 changed files with 4 additions and 10 deletions

View File

@ -31,7 +31,7 @@ int main(int argc, const char** argv)
auto opt_help = false;
vector<const char*> path_list;
int argi = 1;
auto argi = 1;
while (argi < argc) {
auto arg = argv[argi++];
if (string("--help") == arg) {
@ -61,7 +61,7 @@ int main(int argc, const char** argv)
peglib::peg peg;
peg.log = [&](size_t ln, size_t col, const string& msg) {
peg.log = [&](auto ln, auto col, const auto& msg) {
cerr << syntax_path << ":" << ln << ":" << col << ": " << msg << endl;
};
@ -84,7 +84,7 @@ int main(int argc, const char** argv)
source_path = "[commendline]";
}
peg.log = [&](size_t ln, size_t col, const string& msg) {
peg.log = [&](auto ln, auto col, const auto& msg) {
cerr << source_path << ":" << ln << ":" << col << ": " << msg << endl;
};

View File

@ -16,12 +16,6 @@
<ItemGroup>
<ClCompile Include="peglint.cc" />
</ItemGroup>
<ItemGroup>
<None Include="test.peg" />
</ItemGroup>
<ItemGroup>
<Text Include="test.txt" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{F85B641A-7538-4809-8175-C528FF632CF6}</ProjectGuid>
<Keyword>Win32Proj</Keyword>