1 /* 2 * Copyright 2001-2004 Brandon Long 3 * All Rights Reserved. 4 * 5 * ClearSilver Templating System 6 * 7 * This code is made available under the terms of the ClearSilver License. 8 * http://www.clearsilver.net/license.hdf 9 * 10 */ 11 12 #ifndef __CLEARSILVER_H_ 13 #define __CLEARSILVER_H_ 1 14 15 #include "cs_config.h" 16 17 /* If you need these backward compatible definitions, define CS_COMPAT */ 18 /* These changed after v0.9.1 */ 19 #define CS_COMPAT 0 20 21 #if defined(CS_COMPAT) || !defined(HASH) 22 #define HASH NE_HASH 23 #define HASHNODE NE_HASHNODE 24 #define hash_init ne_hash_init 25 #define hash_destroy ne_hash_destroy 26 #define hash_lookup ne_hash_lookup 27 #define hash_has_key ne_hash_has_key 28 #define hash_remove ne_hash_remove 29 #define hash_next ne_hash_next 30 #define hash_str_comp ne_hash_str_comp 31 #define hash_str_hash ne_hash_str_hash 32 #endif /* CS_COMPAT */ 33 34 #include <stdlib.h> 35 #include <sys/stat.h> 36 37 /* Base libraries */ 38 #include "util/neo_misc.h" 39 #include "util/neo_err.h" 40 #include "util/neo_date.h" 41 #include "util/neo_files.h" 42 #include "util/neo_hash.h" 43 #include "util/neo_hdf.h" 44 #include "util/neo_rand.h" 45 #include "util/neo_net.h" 46 #include "util/neo_server.h" 47 #include "util/neo_str.h" 48 #include "util/ulist.h" 49 #include "util/wildmat.h" 50 #include "util/filter.h" 51 52 #ifdef HAVE_LOCKF 53 # include "util/ulocks.h" 54 # include "util/rcfs.h" 55 56 /* These are dependent on the pthread locking code in ulocks */ 57 # ifdef HAVE_PTHREADS 58 # include "util/skiplist.h" 59 # include "util/dict.h" 60 # endif 61 #endif 62 63 /* This is dependent on Berkeley DB v2 */ 64 #ifdef HAVE_DB2 65 # include "util/wdb.h" 66 #endif 67 68 /* The ClearSilver Template language */ 69 #include "cs/cs.h" 70 71 /* The ClearSilver CGI connector */ 72 #include "cgi/cgi.h" 73 #include "cgi/cgiwrap.h" 74 #include "cgi/date.h" 75 #include "cgi/html.h" 76 77 #endif /* __CLEARSILVER_H_ */ 78