aboutsummaryrefslogtreecommitdiff
path: root/src/include/open-axiom.h
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-08-19 22:34:56 +0000
committerdos-reis <gdr@axiomatics.org>2008-08-19 22:34:56 +0000
commit3fe344d2eb5c1155ecccd85fe6a994276c5f0cdb (patch)
tree874a5f2495a475f2451fa3e5d286b296140aab8b /src/include/open-axiom.h
parentee89a54eb72128aa7c4655d12a5c5e9a97858172 (diff)
downloadopen-axiom-3fe344d2eb5c1155ecccd85fe6a994276c5f0cdb.tar.gz
* include/open-axiom.h (oa_buffer_address): New macro.
* sman/session.c (read_from_spad_io): Use It. (accept_session_connection): Likewise. (read_from_session): Likewise. * sman/sman.c (read_from_spad_io): Likewise. (read_from_manager): Likewise. (exec_command_env): Explicitly cast the null pointer to char*.
Diffstat (limited to 'src/include/open-axiom.h')
-rw-r--r--src/include/open-axiom.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/open-axiom.h b/src/include/open-axiom.h
index 378e1802..391e12e3 100644
--- a/src/include/open-axiom.h
+++ b/src/include/open-axiom.h
@@ -70,4 +70,11 @@ typedef void* openaxiom_handle;
# define OPENAXIOM_HAVE_GRAPHICS 1
#endif
+
+/* Return the address of the data buffer `BUF'. */
+
+#define oa_buffer_address(BUF) ((openaxiom_byte*)&BUF[0])
+
+
+
#endif /* OPENAXIOM_included */