fixed a bug of setting the tre option wrongly in qse_awk_buildrex()
This commit is contained in:
parent
81676bb46f
commit
cbfe6bf628
@ -773,6 +773,8 @@ int qse_awk_buildrex (
|
|||||||
qse_tre_t* itre = QSE_NULL;
|
qse_tre_t* itre = QSE_NULL;
|
||||||
int opt = QSE_TRE_EXTENDED;
|
int opt = QSE_TRE_EXTENDED;
|
||||||
|
|
||||||
|
if (!(awk->opt.trait & QSE_AWK_REXBOUND)) opt |= QSE_TRE_NOBOUND;
|
||||||
|
|
||||||
if (code)
|
if (code)
|
||||||
{
|
{
|
||||||
tre = qse_tre_open(qse_awk_getmmgr(awk), 0);
|
tre = qse_tre_open(qse_awk_getmmgr(awk), 0);
|
||||||
@ -782,8 +784,6 @@ int qse_awk_buildrex (
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(awk->opt.trait & QSE_AWK_REXBOUND)) opt |= QSE_TRE_NOBOUND;
|
|
||||||
|
|
||||||
if (qse_tre_compx (tre, ptn, len, QSE_NULL, opt) <= -1)
|
if (qse_tre_compx (tre, ptn, len, QSE_NULL, opt) <= -1)
|
||||||
{
|
{
|
||||||
#if 0 /* TODO */
|
#if 0 /* TODO */
|
||||||
|
Loading…
Reference in New Issue
Block a user