From 3fe344d2eb5c1155ecccd85fe6a994276c5f0cdb Mon Sep 17 00:00:00 2001 From: dos-reis Date: Tue, 19 Aug 2008 22:34:56 +0000 Subject: * 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*. --- src/include/open-axiom.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include') 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 */ -- cgit v1.2.3