// If we are not allowed to use a DLL, we will link the OBJ files C++Builder 3.0 generates while building the DLL
// directly into our Pascal unit.
{$L pcre/maketables.obj}
{$L pcre/study.obj}
{$L pcre/pcre.obj}
{$L pcre/get.obj}
function _pcre_maketables: PAnsiChar
cdecl
external;
function _pcre_compile(const pattern: PChar
options: Integer
errorptr: PPChar
erroroffset: PInt;
const tables: PChar): Pointer
cdecl
external;
function _pcre_exec(const pattern: Pointer
const hints: Pointer
const subject: PChar;
length, startoffset, options: Integer
offsets: PInt
offsetcount: Integer): Integer
cdecl
external;
function _pcre_get_stringnumber(const pattern: Pointer
const Name: PChar): Integer
cdecl
external;
function _pcre_study(const pattern: Pointer
options: Integer
errorptr: PPChar): Pointer
cdecl
external;
function _pcre_fullinfo(const pattern: Pointer
const hints: Pointer
what: Integer
where: Pointer): Integer
cdecl
external;
function _pcre_version: pchar
cdecl
external;
procedure _pcre_dispose(pattern, hints, chartable: Pointer)
cdecl
external;
// These functions are required by pcre.obj and study.obj
// Unlike the DLL, this unit is not being linked agains the standard C libraries, so we have to provide them ourselves
{$I CHELPERS.PAS}
看了下使用的是CBC编译的obj文件