/[pcre]/code/trunk/pcre_study.c
ViewVC logotype

Diff of /code/trunk/pcre_study.c

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

revision 659 by ph10, Tue Aug 16 09:48:29 2011 UTC revision 666 by ph10, Mon Aug 22 14:56:43 2011 UTC
# Line 1332  if (min >= 0) Line 1332  if (min >= 0)
1332    study->minlength = min;    study->minlength = min;
1333    }    }
1334    
1335    extra->executable_jit = NULL;
1336    #ifdef SUPPORT_JIT
1337    if ((options & PCRE_STUDY_JIT_COMPILE) != 0) _pcre_jit_compile(re, extra);
1338    #endif
1339    
1340  return extra;  return extra;
1341  }  }
1342    
1343    
1344    /*************************************************
1345    *          Free the study data                   *
1346    *************************************************/
1347    
1348    /* This function frees the memory that was obtained by pcre_study().
1349    
1350    Argument:   a pointer to the pcre_extra block
1351    Returns:    nothing
1352    */
1353    
1354    PCRE_EXP_DEFN void
1355    pcre_free_study(pcre_extra *extra)
1356    {
1357    #ifdef SUPPORT_JIT
1358    if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) != 0 &&
1359         extra->executable_jit != NULL)
1360      _pcre_jit_free(extra->executable_jit);
1361    #endif
1362    pcre_free(extra);
1363    }
1364    
1365  /* End of pcre_study.c */  /* End of pcre_study.c */

Legend:
Removed from v.659  
changed lines
  Added in v.666

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12