aboutsummaryrefslogtreecommitdiff
path: root/lpcap.c
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2016-06-27 15:24:09 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2016-06-27 15:24:09 -0300
commitd9fa8ccdf9af5c01a31cfe81eaf3d90e84b41428 (patch)
tree662f1cfe618eae04d8180b817a67b4b21dff239e /lpcap.c
parent450cb2596448c19e672a30616bbd22d98b8c6588 (diff)
downloadlpeglabel-d9fa8ccdf9af5c01a31cfe81eaf3d90e84b41428.tar.gz
lpeglabel-d9fa8ccdf9af5c01a31cfe81eaf3d90e84b41428.tar.bz2
lpeglabel-d9fa8ccdf9af5c01a31cfe81eaf3d90e84b41428.zip
Updating lpeglabel to lpeg-1.0
Diffstat (limited to 'lpcap.c')
-rw-r--r--lpcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lpcap.c b/lpcap.c
index b6911cb..c9085de 100644
--- a/lpcap.c
+++ b/lpcap.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lpcap.c,v 1.5 2014/12/12 16:58:47 roberto Exp $ 2** $Id: lpcap.c,v 1.6 2015/06/15 16:09:57 roberto Exp $
3** Copyright 2007, Lua.org & PUC-Rio (see 'lpeg.html' for license) 3** Copyright 2007, Lua.org & PUC-Rio (see 'lpeg.html' for license)
4*/ 4*/
5 5
@@ -126,7 +126,7 @@ static Capture *findback (CapState *cs, Capture *cap) {
126 continue; /* opening an enclosing capture: skip and get previous */ 126 continue; /* opening an enclosing capture: skip and get previous */
127 if (captype(cap) == Cgroup) { 127 if (captype(cap) == Cgroup) {
128 getfromktable(cs, cap->idx); /* get group name */ 128 getfromktable(cs, cap->idx); /* get group name */
129 if (lua_equal(L, -2, -1)) { /* right group? */ 129 if (lp_equal(L, -2, -1)) { /* right group? */
130 lua_pop(L, 2); /* remove reference name and group name */ 130 lua_pop(L, 2); /* remove reference name and group name */
131 return cap; 131 return cap;
132 } 132 }