aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/stxtools/sbuf.h
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /pkg/utilities/nttools/stxtools/sbuf.h
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
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
+#---------------------------------------------------------------------------