From 61a211559ecfbb75d298c51cff371448433459a6 Mon Sep 17 00:00:00 2001 From: Mikael Vejdemo-Johansson <michiexile@gmail.com> Date: Wed, 8 Apr 2015 13:46:42 +0200 Subject: [PATCH] fixed build errors wrt sentinels --- examples/ties.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/ties.c b/examples/ties.c index c7d2de78..341f5ba0 100644 --- a/examples/ties.c +++ b/examples/ties.c @@ -160,7 +160,7 @@ HParser* finkmao() { h_bind_indirect(Lnext, L_); h_bind_indirect(Rnext, R_); h_bind_indirect(Cnext, C_); - HParser *tie = h_choice(h_sequence(L, Lnext), NULL); + HParser *tie = h_choice(h_sequence(L, Lnext, NULL), NULL); return tie; } @@ -173,7 +173,7 @@ HParser* finkmaoTW() { HParser *tuck = h_choice(h_sequence(T, T, U, NULL), h_sequence(W, W, U, NULL), NULL); - return h_choice(h_sequence(prefix, h_many(pair), tuck, NULL)); + return h_choice(h_sequence(prefix, h_many(pair), tuck, NULL), NULL); } HParser* depth1TW() { @@ -185,7 +185,7 @@ HParser* depth1TW() { HParser *tuck = h_choice(h_sequence(T, T, U, NULL), h_sequence(W, W, U, NULL), NULL); - return h_choice(h_sequence(prefix, h_many(h_choice(pair, tuck)), tuck, NULL)); + return h_choice(h_sequence(prefix, h_many(h_choice(pair, tuck, NULL)), tuck, NULL), NULL); } HParser* depth1() { @@ -309,7 +309,7 @@ HParser* depthNTW() { h_bind_indirect(wt2, wt2_); HParser *tuck = h_choice(tstart, wstart, NULL); - return h_choice(h_sequence(prefix, h_many(h_choice(pair, tuck)), tuck, NULL)); + return h_choice(h_sequence(prefix, h_many(h_choice(pair, tuck, NULL)), tuck, NULL), NULL); } -- GitLab