aboutsummaryrefslogtreecommitdiff
path: root/boot/dependency.cc
diff options
context:
space:
mode:
Diffstat (limited to 'boot/dependency.cc')
-rw-r--r--boot/dependency.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/boot/dependency.cc b/boot/dependency.cc
index 7bd86fb..dc827fa 100644
--- a/boot/dependency.cc
+++ b/boot/dependency.cc
@@ -19,7 +19,7 @@ along with GCC; see the file COPYING3. If not see
#include <fstream>
#include <sstream>
-#include <string.h>
+#include <cstring>
#include "elna/boot/driver.h"
#include "elna/boot/name_analysis.h"
@@ -35,7 +35,7 @@ namespace elna::boot
yy::parser parser(tokenizer, parse_driver);
dependency outcome;
- if (parser())
+ if (parser() != 0)
{
std::swap(outcome.errors(), parse_driver.errors());
return outcome;
@@ -56,7 +56,7 @@ namespace elna::boot
return outcome;
}
- error_list analyze_semantics(std::unique_ptr<unit>& tree, symbol_bag bag,
+ error_list analyze_semantics(std::unique_ptr<unit>& tree, const symbol_bag& bag,
const target_info& target)
{
name_analysis_visitor name_analyser(bag);