summaryrefslogtreecommitdiff
path: root/halibut.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-04-09 18:16:43 +0000
committerSimon Tatham <anakin@pobox.com>2004-04-09 18:16:43 +0000
commitdceee0294f3814dd97c3c273200011977a8ecca6 (patch)
treecab42931644ddfa8fe63675c5c2dc26fb06cc98d /halibut.h
parent0e64c9d347e230cb338514b7f5d9c29bf6940128 (diff)
downloadhalibut-dceee0294f3814dd97c3c273200011977a8ecca6.zip
halibut-dceee0294f3814dd97c3c273200011977a8ecca6.tar.gz
halibut-dceee0294f3814dd97c3c273200011977a8ecca6.tar.bz2
halibut-dceee0294f3814dd97c3c273200011977a8ecca6.tar.xz
Added an info(1) backend, which constructs .info files directly
without going through the .texi source stage. A few things left to do, notably documentation, but the basics all seem to be there. [originally from svn r4047]
Diffstat (limited to 'halibut.h')
-rw-r--r--halibut.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/halibut.h b/halibut.h
index 3fc752d..3e600c7 100644
--- a/halibut.h
+++ b/halibut.h
@@ -127,6 +127,8 @@ struct word_Tag {
int breaks; /* can a line break after it? */
wchar_t *text;
filepos fpos;
+
+ void *private_data; /* for temp use in backends */
};
enum {
/* ORDERING CONSTRAINT: these normal-word types ... */
@@ -252,9 +254,9 @@ char *ustrtoa(wchar_t *s, char *outbuf, int size);
wchar_t *ustrfroma(char *s, wchar_t *outbuf, int size);
char *utoa_dup(wchar_t *s);
wchar_t *ufroma_dup(char *s);
-int ustrlen(wchar_t *s);
+int ustrlen(wchar_t const *s);
wchar_t *uadv(wchar_t *s);
-wchar_t *ustrcpy(wchar_t *dest, wchar_t *source);
+wchar_t *ustrcpy(wchar_t *dest, wchar_t const *source);
wchar_t utolower(wchar_t);
int uisalpha(wchar_t);
int ustrcmp(wchar_t *lhs, wchar_t *rhs);
@@ -305,10 +307,10 @@ struct tagRdstringc {
extern const rdstring empty_rdstring;
extern const rdstringc empty_rdstringc;
void rdadd(rdstring *rs, wchar_t c);
-void rdadds(rdstring *rs, wchar_t *p);
+void rdadds(rdstring *rs, wchar_t const *p);
wchar_t *rdtrim(rdstring *rs);
void rdaddc(rdstringc *rs, char c);
-void rdaddsc(rdstringc *rs, char *p);
+void rdaddsc(rdstringc *rs, char const *p);
char *rdtrimc(rdstringc *rs);
int compare_wordlists(word *a, word *b);
@@ -436,4 +438,10 @@ paragraph *whlp_config_filename(char *filename);
void man_backend(paragraph *, keywordlist *, indexdata *);
paragraph *man_config_filename(char *filename);
+/*
+ * bk_info.c
+ */
+void info_backend(paragraph *, keywordlist *, indexdata *);
+paragraph *info_config_filename(char *filename);
+
#endif