diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-08-17 13:21:40 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-08-17 13:21:40 -0230 |
commit | 8c72cd276557e104c38cf56d667c5abcf6aa7921 (patch) | |
tree | 195f04a2da4dbc05515eb955a69856c5018fafb8 /cpp/src/Slice/Parser.cpp | |
parent | Added doc comment build to Mono makefiles. Fixed clean target for doc build (diff) | |
download | ice-8c72cd276557e104c38cf56d667c5abcf6aa7921.tar.bz2 ice-8c72cd276557e104c38cf56d667c5abcf6aa7921.tar.xz ice-8c72cd276557e104c38cf56d667c5abcf6aa7921.zip |
Bug 3140 - skip BOM at top of included file
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index b38172de2a6..e0392780adc 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -5005,7 +5005,7 @@ Slice::Unit::nextLine() _currentLine++; } -void +bool Slice::Unit::scanPosition(const char* s) { assert(*s == '#'); @@ -5104,6 +5104,11 @@ Slice::Unit::scanPosition(const char* s) dc->setFilename(currentFile); _definitionContextMap.insert(make_pair(currentFile, dc)); } + + // + // Return code indicates whether starting parse of a new file. + // + return _currentLine == 0; } int |