This commit is contained in:
@ -443,7 +443,7 @@ static global_t gtab[] =
|
|||||||
#define MATCH_TERMINATOR(hawk) \
|
#define MATCH_TERMINATOR(hawk) \
|
||||||
(MATCH_TERMINATOR_NORMAL(hawk) || MATCH_TERMINATOR_RBRACE(hawk))
|
(MATCH_TERMINATOR_NORMAL(hawk) || MATCH_TERMINATOR_RBRACE(hawk))
|
||||||
|
|
||||||
#define ADJERR_LOC(hawk,l) do { (hawk)->_gem.errloc = *(l); } while (0)
|
#define ADJERR_LOC(hawk,l) do { if (l) (hawk)->_gem.errloc = *(l); } while (0)
|
||||||
|
|
||||||
#if defined(HAWK_OOCH_IS_BCH)
|
#if defined(HAWK_OOCH_IS_BCH)
|
||||||
static HAWK_INLINE hawk_oow_t uc_to_utf8 (hawk_uch_t uc, hawk_bch_t* buf, hawk_oow_t bsz)
|
static HAWK_INLINE hawk_oow_t uc_to_utf8 (hawk_uch_t uc, hawk_bch_t* buf, hawk_oow_t bsz)
|
||||||
|
@ -236,7 +236,7 @@ int hawk_sed_getopt (hawk_sed_t* sed, hawk_sed_opt_t id, void* value)
|
|||||||
case HAWK_SED_DEPTH_REX_MATCH:
|
case HAWK_SED_DEPTH_REX_MATCH:
|
||||||
*(hawk_oow_t*)value = sed->opt.depth.rex.match;
|
*(hawk_oow_t*)value = sed->opt.depth.rex.match;
|
||||||
return 0;
|
return 0;
|
||||||
};
|
}
|
||||||
|
|
||||||
hawk_sed_seterrnum(sed, HAWK_NULL, HAWK_EINVAL);
|
hawk_sed_seterrnum(sed, HAWK_NULL, HAWK_EINVAL);
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user