aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff/dwbinit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/troff/dwbinit.h')
-rw-r--r--src/cmd/troff/dwbinit.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cmd/troff/dwbinit.h b/src/cmd/troff/dwbinit.h
new file mode 100644
index 00000000..acb1476c
--- /dev/null
+++ b/src/cmd/troff/dwbinit.h
@@ -0,0 +1,19 @@
+/*
+ *
+ * A structure used to adjust pathnames in DWB C code. Pointers
+ * set the address field, arrays use the value field and must
+ * also set length to the number elements in the array. Pointers
+ * are always reallocated and then reinitialized; arrays are only
+ * reinitialized, if there's room.
+ *
+ */
+
+typedef struct {
+ char **address;
+ char *value;
+ int length;
+} dwbinit;
+
+extern void DWBinit(char *, dwbinit *);
+extern char* DWBhome(void);
+extern void DWBprefix(char *, char *, int);