summaryrefslogtreecommitdiff
path: root/pith/help.h
diff options
context:
space:
mode:
authorEduardo Chappa <echappa@gmx.com>2013-02-03 00:59:38 -0700
committerEduardo Chappa <echappa@gmx.com>2013-02-03 00:59:38 -0700
commit094ca96844842928810f14844413109fc6cdd890 (patch)
treee60efbb980f38ba9308ccb4fb2b77b87bbc115f3 /pith/help.h
downloadalpine-094ca96844842928810f14844413109fc6cdd890.tar.xz
Initial Alpine Version
Diffstat (limited to 'pith/help.h')
-rw-r--r--pith/help.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/pith/help.h b/pith/help.h
new file mode 100644
index 00000000..fb3bcd24
--- /dev/null
+++ b/pith/help.h
@@ -0,0 +1,61 @@
+/*
+ * $Id: help.h 900 2008-01-05 01:13:26Z hubert@u.washington.edu $
+ *
+ * ========================================================================
+ * Copyright 2006-2008 University of Washington
+ * Copyright 2013 Eduardo Chappa
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * ========================================================================
+ */
+
+#ifndef PITH_HELP_INCLUDED
+#define PITH_HELP_INCLUDED
+
+
+#include "../pith/state.h"
+#include "../pith/filttype.h"
+#include "../pith/helptext.h"
+
+
+#define RMMSGLEN 120
+#define RMTIMLEN 15
+#define RMJLEN 500
+#define RMLLEN 2000
+#define RMHLEN 2000
+
+typedef struct _rev_msg {
+ unsigned long seq;
+ short level; /* -1 for journal, debuglevel for dprint */
+ unsigned continuation:1;
+ char message[RMMSGLEN+1];
+ char timestamp[RMTIMLEN+1];
+} REV_MSG_S;
+
+
+typedef enum {No, Jo, Lo, Hi} RMCat;
+
+extern REV_MSG_S rmjoarray[RMJLEN]; /* For regular journal */
+extern REV_MSG_S rmloarray[RMLLEN]; /* debug 0-4 */
+extern REV_MSG_S rmhiarray[RMHLEN]; /* debug 5-9 */
+extern int rmjofirst, rmjolast;
+extern int rmlofirst, rmlolast;
+extern int rmhifirst, rmhilast;
+extern int rm_not_right_now;
+
+
+/* exported protoypes */
+HelpType help_name2section(char *, int);
+void debugjournal_to_file(FILE *);
+void add_review_message(char *, int);
+int gripe_gripe_to(char *);
+char *get_alpine_revision_string(char *, size_t);
+char *get_alpine_revision_number(char *, size_t);
+
+
+#endif /* PITH_HELP_INCLUDED */