diff --git a/build/msbuild/lol.vars.props b/build/msbuild/lol.vars.props
index e5e376de..beb563fa 100644
--- a/build/msbuild/lol.vars.props
+++ b/build/msbuild/lol.vars.props
@@ -5,7 +5,7 @@
$(SolutionDir)\..\external
- $(ExternalDir)\pegtl-1.3.1
+ $(ExternalDir)\pegtl-1.3.1-e7752e81
$(PegtlDir)\include
diff --git a/configure.ac b/configure.ac
index 76b35f3f..c6ea7582 100644
--- a/configure.ac
+++ b/configure.ac
@@ -296,7 +296,7 @@ fi
dnl Use pegtl? Yes, always
if true; then
- LOL_CFLAGS="$LOL_CFLAGS -I\$(top_srcdir)/external/pegtl-1.3.1/include"
+ LOL_CFLAGS="$LOL_CFLAGS -I\$(top_srcdir)/external/pegtl-1.3.1-e7752e81/include"
fi
diff --git a/src/gpu/shader.cpp b/src/gpu/shader.cpp
index cc7144f5..ddcb7363 100644
--- a/src/gpu/shader.cpp
+++ b/src/gpu/shader.cpp
@@ -168,14 +168,14 @@ public:
lolfx_parser(String const &code)
: m_section("header")
{
- pegtl::parse(code.C(), "shader", this);
+ pegtl::parse_string(code.C(), "shader", this);
}
};
template<>
struct lolfx_parser::action
{
- static void apply(input const &in, lolfx_parser *that)
+ static void apply(action_input const &in, lolfx_parser *that)
{
that->m_section = in.string().c_str();
}
@@ -184,7 +184,7 @@ struct lolfx_parser::action
template<>
struct lolfx_parser::action
{
- static void apply(input const &in, lolfx_parser *that)
+ static void apply(action_input const &in, lolfx_parser *that)
{
that->m_programs[that->m_section] = in.string().c_str();
}
diff --git a/tools/lolremez/expression.h b/tools/lolremez/expression.h
index fac9782d..25fe9741 100644
--- a/tools/lolremez/expression.h
+++ b/tools/lolremez/expression.h
@@ -235,7 +235,7 @@ private:
template
struct generic_action
{
- static void apply(input const &in, expression *that)
+ static void apply(action_input const &in, expression *that)
{
UNUSED(in);
that->m_ops.push(OP, -1);
@@ -251,7 +251,7 @@ public:
m_ops.empty();
m_constants.empty();
- pegtl::parse(str, "expression", this);
+ pegtl::parse_string(str, "expression", this);
}
};
@@ -274,9 +274,9 @@ template<> struct expression::action : generic_action
struct expression::action
{
- static void apply(input const &in, expression *that)
+ static void apply(action_input const &in, expression *that)
{
- struct { id id; char const *name; } lut[] =
+ struct { id ret; char const *name; } lut[] =
{
{ id::atan2, "atan2" },
{ id::pow, "pow" },
@@ -289,7 +289,7 @@ struct expression::action
if (strncmp(in.string().c_str(), pair.name, strlen(pair.name)) != 0)
continue;
- that->m_ops.push(pair.id, -1);
+ that->m_ops.push(pair.ret, -1);
return;
}
}
@@ -298,9 +298,9 @@ struct expression::action
template<>
struct expression::action
{
- static void apply(input const &in, expression *that)
+ static void apply(action_input const &in, expression *that)
{
- struct { id id; char const *name; } lut[] =
+ struct { id ret; char const *name; } lut[] =
{
{ id::abs, "abs" },
{ id::sqrt, "sqrt" },
@@ -326,7 +326,7 @@ struct expression::action
if (strncmp(in.string().c_str(), pair.name, strlen(pair.name)) != 0)
continue;
- that->m_ops.push(pair.id, -1);
+ that->m_ops.push(pair.ret, -1);
return;
}
}
@@ -335,7 +335,7 @@ struct expression::action
template<>
struct expression::action
{
- static void apply(input const &in, expression *that)
+ static void apply(action_input const &in, expression *that)
{
/* FIXME: check if the constant is already in the list */
that->m_ops.push(id::constant, that->m_constants.count());