/[pcre]/code/trunk/doc/pcreapi.3
ViewVC logotype

Diff of /code/trunk/doc/pcreapi.3

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 518 by ph10, Tue May 18 15:47:01 2010 UTC revision 531 by ph10, Tue Jun 1 13:53:26 2010 UTC
# Line 132  an application that uses PCRE. The heade Line 132  an application that uses PCRE. The heade
132  and PCRE_MINOR to contain the major and minor release numbers for the library.  and PCRE_MINOR to contain the major and minor release numbers for the library.
133  Applications can use these to include support for different releases of PCRE.  Applications can use these to include support for different releases of PCRE.
134  .P  .P
135    In a Windows environment, if you want to statically link an application program
136    against a non-dll \fBpcre.a\fP file, you must define PCRE_STATIC before
137    including \fBpcre.h\fP or \fBpcrecpp.h\fP, because otherwise the
138    \fBpcre_malloc()\fP and \fBpcre_free()\fP exported functions will be declared
139    \fB__declspec(dllimport)\fP, with unwanted results.
140    .P
141  The functions \fBpcre_compile()\fP, \fBpcre_compile2()\fP, \fBpcre_study()\fP,  The functions \fBpcre_compile()\fP, \fBpcre_compile2()\fP, \fBpcre_study()\fP,
142  and \fBpcre_exec()\fP are used for compiling and matching regular expressions  and \fBpcre_exec()\fP are used for compiling and matching regular expressions
143  in a Perl-compatible manner. A sample program that demonstrates the simplest  in a Perl-compatible manner. A sample program that demonstrates the simplest
# Line 1637  If a pattern contains back references, b Line 1643  If a pattern contains back references, b
1643  gets a block of memory at the start of matching to use for this purpose. If the  gets a block of memory at the start of matching to use for this purpose. If the
1644  call via \fBpcre_malloc()\fP fails, this error is given. The memory is  call via \fBpcre_malloc()\fP fails, this error is given. The memory is
1645  automatically freed at the end of matching.  automatically freed at the end of matching.
1646    .P
1647    This error is also given if \fBpcre_stack_malloc()\fP fails in
1648    \fBpcre_exec()\fP. This can happen only when PCRE has been compiled with
1649    \fB--disable-stack-for-recursion\fP.
1650  .sp  .sp
1651    PCRE_ERROR_NOSUBSTRING    (-7)    PCRE_ERROR_NOSUBSTRING    (-7)
1652  .sp  .sp
# Line 2121  Cambridge CB2 3QH, England. Line 2131  Cambridge CB2 3QH, England.
2131  .rs  .rs
2132  .sp  .sp
2133  .nf  .nf
2134  Last updated: 16 May 2010  Last updated: 01 June 2010
2135  Copyright (c) 1997-2010 University of Cambridge.  Copyright (c) 1997-2010 University of Cambridge.
2136  .fi  .fi

Legend:
Removed from v.518  
changed lines
  Added in v.531

  ViewVC Help
Powered by ViewVC 1.1.5