X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=miscutil.h;h=61675a110d29304ddf10b8b5d6f1ad59f555a40d;hp=c8a420f4f6f4520cf6cc9fd0f4bb97b063820cff;hb=eaf36cae45ade9aabc5651da1735766b692fcf15;hpb=3bae2db92ac3852edca084db809e0f79c64cdaf7 diff --git a/miscutil.h b/miscutil.h index c8a420f4..61675a11 100644 --- a/miscutil.h +++ b/miscutil.h @@ -1,6 +1,6 @@ -#ifndef _MISCUTIL_H -#define _MISCUTIL_H -#define MISCUTIL_H_VERSION "$Id: miscutil.h,v 1.6 2001/06/03 11:03:48 oes Exp $" +#ifndef MISCUTIL_H_INCLUDED +#define MISCUTIL_H_INCLUDED +#define MISCUTIL_H_VERSION "$Id: miscutil.h,v 1.10 2001/09/20 13:34:09 steudten Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/miscutil.h,v $ @@ -37,60 +37,23 @@ * * Revisions : * $Log: miscutil.h,v $ - * Revision 1.6 2001/06/03 11:03:48 oes - * Makefile/in + * Revision 1.10 2001/09/20 13:34:09 steudten * - * introduced cgi.c + * change long to int for prototype hash_string() * - * actions.c: + * Revision 1.9 2001/07/29 18:43:08 jongfoster + * Changing #ifdef _FILENAME_H to FILENAME_H_INCLUDED, to conform to + * ANSI C rules. * - * adapted to new enlist_unique arg format + * Revision 1.8 2001/06/29 13:32:14 oes + * Removed logentry from cancelled commit * - * conf loadcfg.c + * Revision 1.7 2001/06/05 22:32:01 jongfoster + * New function make_path() to splice directory and file names together. * - * introduced confdir option - * - * filters.c filtrers.h - * - * extracted-CGI relevant stuff - * - * jbsockets.c - * - * filled comment - * - * jcc.c - * - * support for new cgi mechansim - * - * list.c list.h - * - * functions for new list type: "map" - * extended enlist_unique - * - * miscutil.c .h + * Revision 1.6 2001/06/03 19:12:30 oes * introduced bindup() * - * parsers.c parsers.h - * - * deleted const struct interceptors - * - * pcrs.c - * added FIXME - * - * project.h - * - * added struct map - * added struct http_response - * changes struct interceptors to struct cgi_dispatcher - * moved HTML stuff to cgi.h - * - * re_filterfile: - * - * changed - * - * showargs.c - * NO TIME LEFT - * * Revision 1.5 2001/06/01 10:31:51 oes * Added character class matching to trivimatch; renamed to simplematch * @@ -141,7 +104,7 @@ extern "C" { extern void *zalloc(int size); -extern unsigned long hash_string(const char* s); +extern unsigned int hash_string(const char* s); extern char *safe_strerror(int err); @@ -149,11 +112,14 @@ extern int strcmpic(const char *s1, const char *s2); extern int strncmpic(const char *s1, const char *s2, size_t n); extern char *strsav(char *old, const char *text_to_append); +extern int string_append(char **target_string, const char *text_to_append); extern char *chomp(char *string); extern int simplematch(char *pattern, char *text); -char *bindup(const char *string, int n); +extern char *bindup(const char *string, int n); + +extern char *make_path(const char * dir, const char * file); #ifdef __MINGW32__ extern char *strdup(const char *s); @@ -167,7 +133,7 @@ extern const char miscutil_h_rcs[]; } #endif -#endif /* ndef _MISCUTIL_H */ +#endif /* ndef MISCUTIL_H_INCLUDED */ /* Local Variables: