summaryrefslogtreecommitdiffstats
path: root/innbbsd/his.h
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-02-01 23:15:20 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-02-01 23:15:20 +0800
commiteb02b264ab76ed138546da08deba14e64ffc22e1 (patch)
tree3c567c8dd350abcc0f6147f1316b990509f0a90e /innbbsd/his.h
parent09241e5aa2e98ce54e68a65064bcb7b2d24f8cf0 (diff)
downloadpttbbs-eb02b264ab76ed138546da08deba14e64ffc22e1.tar
pttbbs-eb02b264ab76ed138546da08deba14e64ffc22e1.tar.gz
pttbbs-eb02b264ab76ed138546da08deba14e64ffc22e1.tar.bz2
pttbbs-eb02b264ab76ed138546da08deba14e64ffc22e1.tar.lz
pttbbs-eb02b264ab76ed138546da08deba14e64ffc22e1.tar.xz
pttbbs-eb02b264ab76ed138546da08deba14e64ffc22e1.tar.zst
pttbbs-eb02b264ab76ed138546da08deba14e64ffc22e1.zip
Clean up include files.
Fix some compile warnings git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4436 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd/his.h')
-rw-r--r--innbbsd/his.h69
1 files changed, 18 insertions, 51 deletions
diff --git a/innbbsd/his.h b/innbbsd/his.h
index fab0f76e..73e0fbae 100644
--- a/innbbsd/his.h
+++ b/innbbsd/his.h
@@ -1,65 +1,15 @@
#ifndef HIS_H
#define HIS_H
-#include <stdio.h>
-#include <fcntl.h>
-#include <ctype.h>
-#include <sys/stat.h>
-#include <sys/param.h>
-#ifndef SEEK_SET
-#include <unistd.h>
-#endif
-#include "dbz.h"
-
-#ifndef XINDEXDIR
-#define XINDEXDIR "/homec/xindex"
-#endif
-#ifndef _PATH_HISTORY
-#define _PATH_HISTORY "/u/staff/bbsroot/csie_util/bntpd/history"
-#endif
-
-#ifndef _PATH_COVERVIEW
-#define _PATH_COVERVIEW ".coverview"
-#endif
-#ifndef _PATH_COVERVIEWDIR
-#define _PATH_COVERVIEWDIR "/homec/xindex"
-#endif
+#include <dbz.h>
#ifndef XINDEX_DBZINCORE
#define XINDEX_DBZINCORE 1
#endif
-#ifndef XINDEXNAME
-#define XINDEXNAME ".index"
-#endif
-#ifndef XINDEXDBM
-#define XINDEXDBM ".dbm"
-#endif
-#ifndef XINDEXINFO
-#define XINDEXINFO ".info"
-#endif
#define LEN 1024
-struct t_article {
- long artnum;
- char subject[LEN]; /* Subject: line from mail header */
- char from[LEN]; /* From: line from mail header (address) */
- char name[LEN]; /* From: line from mail header (full nam e) */
- long date; /* Date: line from header in seconds */
- char xref[LEN]; /* Xref: cross posted article reference line */
- int lines; /* Lines: number of lines in article */
- char *archive; /* Archive-name: line from mail header */
- char *part; /* part no. of archive */
- char *patch; /* patch no. of archive */
-};
-
-typedef struct t_article art_t;
-#define HIS_BADCHAR '_'
#define HIS_FIELDSEP '\t'
-#define HIS_NOEXP "-"
-#define HIS_SUBFIELDSEP '~'
-/* #define HIS_FIELDSEP2 '\034' */
-#define HIS_FIELDSEP2 'I'
#ifndef TRUE
#define TRUE 1
@@ -74,4 +24,21 @@ typedef unsigned char BOOL;
#define ICD_SYNC_COUNT 1
#endif
+/* his.c */
+void HISclose(void);
+void HISmaint(void);
+void mkhistory(char *);
+int myHISsetup(char *);
+char *HISfilesfor(datum *, datum *);
+int myHISwrite(datum *, char *);
+void hisincore(int);
+void HISsetup(void);
+BOOL HISwrite(datum *, long, char *);
+void mkhistory(char *);
+time_t gethisinfo(void);
+
+/* dbztool.c */
+char *DBfetch(char *);
+int storeDB(char *, char *);
+
#endif