Changeset a5d47f


Ignore:
Timestamp:
2008-11-14 10:49:28 (5 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
master, 3.0, 4.0, experimental-ims
Children:
facafba
Parents:
e04c13
git-author:
Poul-Henning Kamp <phk@…> (2008-11-14 10:49:28)
git-committer:
Poul-Henning Kamp <phk@…> (2008-11-14 10:49:28)
Message:

Retire VRT_re_test()

git-svn-id:  http://www.varnish-cache.org/svn/trunk/varnish-cache@3393 d4fa192b-c00b-0410-8231-f00ffab90ce4

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_vrt_re.c

    rbe7c4e ra5d47f  
    8585} 
    8686 
    87 int 
    88 VRT_re_test(struct vsb *sb, const char *re, int sub) 
    89 { 
    90         int i; 
    91         regex_t t; 
    92         char buf[BUFSIZ]; 
    93  
    94         memset(&t, 0, sizeof t); 
    95         i = regcomp(&t, re, REG_EXTENDED | (sub ? 0 : REG_NOSUB)); 
    96         if (i == 0) { 
    97                 regfree(&t); 
    98                 return (0); 
    99         } 
    100         (void)regerror(i, &t, buf, sizeof buf); 
    101         vsb_printf(sb, "Regexp compilation error:\n\n%s\n\n", buf); 
    102         regfree(&t); 
    103         return (1); 
    104 } 
    105  
    10687const char * 
    10788VRT_regsub(const struct sess *sp, int all, const char *str, void *re, 
  • include/vrt.h

    rbe7c4e ra5d47f  
    137137void VRT_re_fini(void *); 
    138138int VRT_re_match(const char *, void *re); 
    139 int VRT_re_test(struct vsb *, const char *, int sub); 
    140139const char *VRT_regsub(const struct sess *sp, int all, const char *, 
    141140    void *, const char *); 
Note: See TracChangeset for help on using the changeset viewer.