From 47677ca5666c085743c87cabe1f3cd0eceea125e Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 24 Jul 2013 04:10:02 +0000 Subject: [PATCH] minor touch-ups --- qse/lib/cmn/rex.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/qse/lib/cmn/rex.c b/qse/lib/cmn/rex.c index 112b8f82..bfcbbcb4 100644 --- a/qse/lib/cmn/rex.c +++ b/qse/lib/cmn/rex.c @@ -844,10 +844,8 @@ static qse_rex_node_t* comp_occ (comp_t* com, qse_rex_node_t* atom) case QSE_T('{'): if (!(com->rex->option & QSE_REX_NOBOUND)) { - if (getc_noesc(com) <= -1) - return QSE_NULL; - if (occbound(com,atom) <= -1) - return QSE_NULL; + if (getc_noesc(com) <= -1 || + occbound(com,atom) <= -1) return QSE_NULL; } break; } @@ -1052,11 +1050,11 @@ static qse_rex_node_t* comp_branch (comp_t* c, pair_t* pair) * -> ORG(atom) -> Tail */ atom = pseudo_group (c, atom); - } - if (atom == QSE_NULL) return QSE_NULL; #if 0 - } + } #endif + if (atom == QSE_NULL) return QSE_NULL; + } if (pair->tail == QSE_NULL) {