aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/tbltext.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/tbtables/tbltext.h
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/tbtables/tbltext.h')
-rw-r--r--pkg/tbtables/tbltext.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/tbtables/tbltext.h b/pkg/tbtables/tbltext.h
new file mode 100644
index 00000000..f870bb76
--- /dev/null
+++ b/pkg/tbtables/tbltext.h
@@ -0,0 +1,13 @@
+# These definitions are for text tables.
+
+define SZ_TEXTBUF (4096 + SZ_LINE) # size of input buffer
+
+# These are possible values for the line type as read by tbzlin:
+define DATA_LINE 1 # column data
+define COMMENT_LINE 2 # a comment (blank or beginning with #)
+define KEYWORD_LINE 3 # a keyword (#k keyword = value)
+define COLDEF_LINE 4 # explicit column definition (#c name etc.)
+
+# This is the initial size (and the increment in size) for the array of
+# pointers to header keywords.
+define INCR_N_KEYWORDS 128