lib.h

Go to the documentation of this file.
00001 //
00002 // lib.h
00003 //
00004 // lib: Contains typical declarations and header inclusions used by
00005 //      most sources in this directory.
00006 //
00007 // Part of the ht://Dig package   <http://www.htdig.org/>
00008 // Copyright (c) 1999, 2000, 2001 The ht://Dig Group
00009 // For copyright details, see the file COPYING in your distribution
00010 // or the GNU General Public License version 2 or later 
00011 // <http://www.gnu.org/copyleft/gpl.html>
00012 //
00013 // $Id: lib_8h-source.html,v 1.1 2008/06/08 10:19:50 sebdiaz Exp $
00014 //
00015 
00016 #ifndef _lib_h
00017 #define _lib_h
00018 
00019 #include "clib.h"
00020 
00021 #include <string.h>
00022 
00023 #if TIME_WITH_SYS_TIME
00024 # include <sys/time.h>
00025 # include <time.h>
00026 #else
00027 # if HAVE_SYS_TIME_H
00028 #  include <sys/time.h>
00029 # else
00030 #  include <time.h>
00031 # endif
00032 #endif
00033 
00034 //
00035 // Other defines used throughout the library
00036 //
00037 #define OK              0
00038 #define NOTOK           (-1)
00039 
00040 //
00041 // Too many problems with system strptime() functions...  Just use our own
00042 // version of it.
00043 //
00044 extern "C" char *Htstrptime(char *buf, char *fmt, struct tm *tm);
00045 
00046 //
00047 // timegm() is quite rare, so provide our own.
00048 //
00049 extern "C" time_t Httimegm(struct tm *tm);
00050 
00051 #endif

Generated on Sun Jun 8 10:56:39 2008 for GNUmifluz by  doxygen 1.5.5