pike.git / src / pike_search.h

version» Context lines:

pike.git/src/pike_search.h:1: Inside #if undefined(PIKE_SEARCH_H)
+ /* + || This file is part of Pike. For copyright information see COPYRIGHT. + || Pike is distributed under GPL, LGPL and MPL. See the file COPYING + || for more information. + */ +    #ifndef PIKE_SEARCH_H   #define PIKE_SEARCH_H      #define MEMSEARCH_LINKS 512   #define BMLEN 768   #define CHARS 256   #define TUNAFISH    - #define generic_mem_searcher pike_mem_searcher -  +    struct hubbe_search_link   {    struct hubbe_search_link *next;    ptrdiff_t offset;    INT32 key;   };      struct hubbe_searcher   { -  struct object *o; /* must be first */ +     void *needle;    ptrdiff_t needlelen;       size_t hsize, max;    struct hubbe_search_link links[MEMSEARCH_LINKS];    struct hubbe_search_link *set[MEMSEARCH_LINKS];   };      struct boyer_moore_hubbe_searcher   { -  struct object *o; /* must be first */ +     void *needle;    ptrdiff_t needlelen;       ptrdiff_t plen;    ptrdiff_t d1[CHARS+1];    ptrdiff_t d2[BMLEN];   };      struct SearchMojtS;   
pike.git/src/pike_search.h:47:   FNORD(1,p_wchar1 *);   FNORD(2,p_wchar2 *);   FNORD(N,PCHARP);      struct SearchMojtVtable   {    SearchMojtFunc0 func0;    SearchMojtFunc1 func1;    SearchMojtFunc2 func2;    SearchMojtFuncN funcN; -  void (*freeme)(void *); +    };      typedef struct SearchMojt   { -  struct SearchMojtVtable *vtab; +  const struct SearchMojtVtable *vtab;    void *data; -  +  struct object *container; /* Refcounted if non-NULL. */   } SearchMojt;      struct pike_mem_searcher   { -  SearchMojt mojt; +  SearchMojt mojt; /* Exception: mojt.container not refcounted here. */    struct pike_string *s; /* search string */    union memsearcher_data    {    struct hubbe_searcher hubbe;    struct boyer_moore_hubbe_searcher bm;    } data;   };         /* Prototypes begin here */
pike.git/src/pike_search.h:82:    ptrdiff_t max_haystacklen);   PMOD_EXPORT SearchMojt compile_memsearcher(PCHARP needle,    ptrdiff_t needlelen,    int max_haystacklen,    struct pike_string *hashkey);   PMOD_EXPORT SearchMojt simple_compile_memsearcher(struct pike_string *str);   PMOD_EXPORT char *my_memmem(char *needle,    size_t needlelen,    char *haystack,    size_t haystacklen); - PMOD_EXPORT void init_generic_memsearcher(struct generic_mem_searcher *s, -  void *needle, -  size_t needlelen, -  char needle_shift, -  size_t estimated_haystack, -  char haystack_shift); - PMOD_EXPORT void *generic_memory_search(struct generic_mem_searcher *s, -  void *haystack, -  size_t haystacklen, -  char haystack_shift); +    void init_pike_searching(void);   void exit_pike_searching(void);   /* Prototypes end here */      #endif -  +