Back to index

php5  5.3.10
Functions
pcre_refcount.c File Reference
#include "config.h"
#include "pcre_internal.h"

Go to the source code of this file.

Functions

PCRE_EXP_DEFN int
PCRE_CALL_CONVENTION 
pcre_refcount (pcre *argument_re, int adjust)

Function Documentation

PCRE_EXP_DEFN int PCRE_CALL_CONVENTION pcre_refcount ( pcre *  argument_re,
int  adjust 
)

Definition at line 70 of file pcre_refcount.c.

{
real_pcre *re = (real_pcre *)argument_re;
if (re == NULL) return PCRE_ERROR_NULL;
re->ref_count = (-adjust > re->ref_count)? 0 :
                (adjust + re->ref_count > 65535)? 65535 :
                re->ref_count + adjust;
return re->ref_count;
}