1 /*
2  * webutl.h --- common utils used in more than one module
3  * nca-073-9
4  *
5  * Copyright (c) 1996-2000 by Netcetera AG.
6  * Copyright (c) 2001 by Apache Software Foundation.
7  * All rights reserved.
8  *
9  * See the file "license.terms" for information on usage and
10  * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11  *
12  * @(#) $Id: webutl.h 520017 2007-03-19 17:18:37Z ronnie $
13  *
14  */
15 
16 #include "tcl.h"
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <string.h>
20 #include "macros.h"
21 
22 #ifndef WEBUTL_H
23 #define WEBUTL_H
24 
25 char DLLEXPORT *allocAndSet(const char *aString);
26 char *allocAndSetN(const char *aString, int N);
27 char *strchrchr(const char *cs, const char c0, const char c1, char *tag);
28 char *myUtfStrStr(const char *s1, const char *s2);
29 char *webEat(char eat, char *cs);
30 char *strWithoutLinebreak(char *cs);
31 
32 int handleConfig(Tcl_Interp * interp, Tcl_Obj ** tclo, Tcl_Obj * newValue,
33 		 int deleteIfEmpty);
34 int tclGetListLength(Tcl_Interp * interp, Tcl_Obj * list);
35 
36 Tcl_Obj *tclSetEnv(Tcl_Interp * interp, char *key, Tcl_Obj * val);
37 
38 int deleteTclObj_fnc(void *tclo, void *dum);
39 
40 Tcl_Obj *Web_GetOrCreateGlobalVar(Tcl_Interp * interp, Tcl_Obj * name,
41 				  int *isNew);
42 
43 #endif
44