Skip to content

Commit

Permalink
tre.bi: Fix dupdefs under TRE_USE_SYSTEM_REGEX_H
Browse files Browse the repository at this point in the history
These functions are already declared in crt/regex.bi which is used under
TRE_USE_SYSTEM_REGEX_H.
  • Loading branch information
dkl committed Apr 17, 2016
1 parent a785030 commit 6f89ec7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Expand Up @@ -13,6 +13,7 @@ Version 1.06.0
- utf_conv.bi: When given a NULL destination buffer, no-op conversions (UTF16 => UTF16 or UTF32 => UTF32) didn't allocate a new buffer, but just returned the source buffer, violating the contract used for proper conversions (which allocate a new buffer if a NULL destination is passed).
- utf_conv.bi: In UTF8 => UTF16/32 and UTF32 => UTF16 conversions, strings longer than 8 chars could be truncated
- #797: False-positive warnings when mixing booleans with comparisons in logic operations
- TRE binding: Didn't compile with TRE_USE_SYSTEM_REGEX_H


Version 1.05.0
Expand Down
4 changes: 0 additions & 4 deletions inc/tre/tre.bi
Expand Up @@ -114,13 +114,9 @@ const REG_NOSPEC = REG_LITERAL
const RE_DUP_MAX = 255

#ifdef TRE_USE_SYSTEM_REGEX_H
declare function regcomp(byval preg as regex_t ptr, byval regex as const zstring ptr, byval cflags as long) as long
declare function tre_regcomp alias "regcomp"(byval preg as regex_t ptr, byval regex as const zstring ptr, byval cflags as long) as long
declare function regexec(byval preg as const regex_t ptr, byval string as const zstring ptr, byval nmatch as uinteger, byval pmatch as regmatch_t ptr, byval eflags as long) as long
declare function tre_regexec alias "regexec"(byval preg as const regex_t ptr, byval string as const zstring ptr, byval nmatch as uinteger, byval pmatch as regmatch_t ptr, byval eflags as long) as long
declare function regerror(byval errcode as long, byval preg as const regex_t ptr, byval errbuf as zstring ptr, byval errbuf_size as uinteger) as uinteger
declare function tre_regerror alias "regerror"(byval errcode as long, byval preg as const regex_t ptr, byval errbuf as zstring ptr, byval errbuf_size as uinteger) as uinteger
declare sub regfree(byval preg as regex_t ptr)
declare sub tre_regfree alias "regfree"(byval preg as regex_t ptr)
#else
declare function tre_regcomp(byval preg as regex_t ptr, byval regex as const zstring ptr, byval cflags as long) as long
Expand Down

0 comments on commit 6f89ec7

Please sign in to comment.