aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/stxtools/sbuf.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/utilities/nttools/stxtools/sbuf.h
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/utilities/nttools/stxtools/sbuf.h')
-rw-r--r--pkg/utilities/nttools/stxtools/sbuf.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/utilities/nttools/stxtools/sbuf.h b/pkg/utilities/nttools/stxtools/sbuf.h
new file mode 100644
index 00000000..cda82d9b
--- /dev/null
+++ b/pkg/utilities/nttools/stxtools/sbuf.h
@@ -0,0 +1,15 @@
+#---------------------------------------------------------------------------
+.help sbuf.h Feb93 source
+.ih
+NAME
+sbuf.h -- Memory structure for long strings.
+.endhelp
+#---------------------------------------------------------------------------
+define SB_LEN Memi[$1] # Current length of string.
+define SB_MAXLEN Memi[$1+1] # Current maximum size of buffer.
+define SB_PTR Memi[$1+2] # Pointer to the string array.
+define SB_BUF Memc[SB_PTR($1)+$2]
+define SB_SZ_SB 3 # Size of memory structure.
+#---------------------------------------------------------------------------
+# End of sbuf.h
+#---------------------------------------------------------------------------