[cvslog] Module eggdrop-devel: Change committed

cvslog cvs at tsss.iavalley.cc.ia.us
Tue Sep 12 10:35:01 CST 2000


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop-devel
Commit time: 2000-08-12 15:34:11 UTC

Added files:
     src/compat/strftime.c src/compat/strftime.h

Log message:

forgot to add the new files strftime.c and strftime.h, belonging to the strftime_compat patch.

---------------------- diff included ----------------------
Index: eggdrop-devel/src/compat/strftime.c
diff -u /dev/null eggdrop-devel/src/compat/strftime.c:1.1
--- /dev/null	Tue Sep 12 10:34:11 2000
+++ eggdrop-devel/src/compat/strftime.c	Tue Sep 12 10:34:01 2000
@@ -0,0 +1,35 @@
+/*
+ * strftime.c
+ *   Portable strftime implementation. Uses GNU's strftime().
+ *
+ * $Id: strftime.c,v 1.1 2000/09/12 15:34:01 fabian Exp $
+ */
+/* 
+ * Copyright (C) 2000  Eggheads
+ * Written by Fabian Knittel
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+#include "src/main.h"
+#include "strftime.h"
+
+#ifndef HAVE_STRFTIME
+#  undef emacs
+#  undef _LIBC
+#  define strftime	egg_strftime
+
+#  include "gnu_strftime.c"
+#endif	/* !HAVE_STRFTIME */
Index: eggdrop-devel/src/compat/strftime.h
diff -u /dev/null eggdrop-devel/src/compat/strftime.h:1.1
--- /dev/null	Tue Sep 12 10:34:11 2000
+++ eggdrop-devel/src/compat/strftime.h	Tue Sep 12 10:34:01 2000
@@ -0,0 +1,42 @@
+/*
+ * strftime.h
+ *   header file for strftime.c
+ *
+ * $Id: strftime.h,v 1.1 2000/09/12 15:34:01 fabian Exp $
+ */
+/* 
+ * Copyright (C) 2000  Eggheads
+ * Written by Fabian Knittel
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+#ifndef _EGG_COMPAT_STRFTIME_H_
+#define _EGG_COMPAT_STRFTIME_H_
+
+#include "src/main.h"
+#include <time.h>
+
+/* Use the system libraries version of strftime() if available. Otherwise
+ * use our own.
+ */
+#ifndef HAVE_STRFTIME
+size_t egg_strftime(char *s, size_t maxsize, const char *format,
+		    const struct tm *tp);
+#else
+#  define egg_strftime	strftime
+#endif
+
+#endif	/* !_EGG_COMPAT_STRFTIME_H_ */
----------------------- End of diff -----------------------



More information about the Changes mailing list