Rev 49658 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
tre-config.h contains additional defines that their configure puts inconfig.h.We have remapped the POSIX entry points with a tre_ suffix: withoutit there was confusion with entry points in OS libraries on some OSes(e.g. Mac OS X).Pro tem alloca has been disabled: the declarations used do not work onWindows, and most likely not on FreeBSD.The way we compile it, TRE works internally in one of three modesSTR_BYTE, using bytesSTR_MBS , using wchar_t for matching, I/O in MBCSSTR_WIDE, using wchar_tWe've added interfaces tre_regcompb, tre_regexecb and regaexecb to forceSTR_BYTE. Unless forced, bytes are used in a single-byte locale andwchar_t in a MBCS. We need to force both for useBytes=TRUE and forsupport for UTF-8 encoded strings in a single-byte locale (principallyon Windows). You do need to ensure that regcomp and regexec use thesame type.The offsets in the regmatch_t structure are in characters forSTR_WIDE, bytes for the other two modes.On Windows (MinGW?), iswctype is missing 'blank'.REG_LITERAL was not matching "" in some cases, hence a change atline 1652 of tre-parse.c.