]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.h
Removed monthname() and replaced with proper strftime() calls.
[citadel.git] / webcit / webcit.h
index bfad3dcaeeae2ede8c3c82421b3f852ff98cef46..da0959ff2b88a4144b337717a6da8c4fd00b9534 100644 (file)
@@ -1,5 +1,9 @@
 /* $Id$ */
 
+/** we need _GNU_SOURCE for various functions arround the NLS-Stuff */
+#define _GNU_SOURCE
+
+
 #include <ctype.h>
 #include <stdlib.h>
 #ifdef HAVE_UNISTD_H
 #include <iconv.h>
 #endif
 
-#include "gettext.h"
-
-#if ENABLE_NLS
+#ifdef ENABLE_NLS
+#include <libintl.h>
 #include <locale.h>
+extern locale_t wc_locales[];
 #define _(string)      gettext(string)
 #else
 #define _(string)      (string)
@@ -546,10 +550,11 @@ void display_menubar(int);
 void smart_goto(char *);
 void worker_entry(void);
 void session_loop(struct httprequest *);
+size_t wc_strftime(char *s, size_t max, const char *format, const struct tm *tm);
 void fmt_date(char *buf, time_t thetime, int brief);
 void fmt_time(char *buf, time_t thetime);
 void httpdate(char *buf, time_t thetime);
-time_t httpdate_to_timestamp(const char *buf);
+time_t httpdate_to_timestamp(char *buf);
 void end_webcit_session(void);
 void page_popup(void);
 void chat_recv(void);
@@ -612,6 +617,7 @@ int load_msg_ptrs(char *servcmd, int with_headers);
 void CtdlEncodeBase64(char *dest, const char *source, size_t sourcelen);
 int CtdlDecodeBase64(char *dest, const char *source, size_t length);
 void free_attachments(struct wcsession *sess);
+void free_march_list(struct wcsession *wcf);
 void set_room_policy(void);
 void display_inetconf(void);
 void save_inetconf(void);
@@ -679,6 +685,10 @@ void end_tab(int tabnum, int num_tabs);
 void str_wiki_index(char *s);
 void display_wiki_page(void);
 
+#ifdef HAVE_ICONV
+iconv_t ctdl_iconv_open(const char *tocode, const char *fromcode);
+#endif
+
 void embed_room_banner(char *, int);
 
 /* navbar types that can be passed to embed_room_banner */
@@ -711,12 +721,8 @@ void utf8ify_rfc822_string(char *buf);
 void begin_burst(void);
 void end_burst(void);
 
-extern char *ascmonths[];      /**< Short (three letter) month names */
-extern char *months[];         /**< Long (full) month names */
 extern char *hourname[];       /**< Names of hours (12am, 1am, etc.) */
-extern char *wdays[];          /**< Days of the week */
 
-void initialize_months_and_days(void);
 void http_datestring(char *buf, size_t n, time_t xtime);