From 2fbcd8bc4f97cc3e534e11414f5a12dbc08edf2d Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 7 Feb 2009 22:10:17 +0000 Subject: * algebra/system.spad.pamphlet (hostByteOrder$System): New. * algebra/data.spad.pamphlet (ByteOrder): New. * algebra/Makefile.pamphlet (axiom_algebra_layer_1): Include BYTEORD. --- src/include/cfuns.h | 3 ++- src/include/open-axiom.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/cfuns.h b/src/include/cfuns.h index 99929a69..4d0a8f05 100644 --- a/src/include/cfuns.h +++ b/src/include/cfuns.h @@ -4,7 +4,7 @@ /* Copyright (C) 1991-2002, The Numerical ALgorithms Group Ltd. All rights reserved. - Copyright (C) 2007-2008, Gabriel Dos Reis. + Copyright (C) 2007-2009, Gabriel Dos Reis. All rights resrved. Redistribution and use in source and binary forms, with or without @@ -65,6 +65,7 @@ OPENAXIOM_EXPORT int oa_copy_file(const char*, const char*); OPENAXIOM_EXPORT double plus_infinity(void); OPENAXIOM_EXPORT double minus_infinity(void); OPENAXIOM_EXPORT double NANQ(void); +OPENAXIOM_EXPORT openaxiom_byteorder oa_get_host_byteorder(void); #ifdef __cplusplus diff --git a/src/include/open-axiom.h b/src/include/open-axiom.h index d4790120..b27c9ea3 100644 --- a/src/include/open-axiom.h +++ b/src/include/open-axiom.h @@ -79,6 +79,11 @@ extern "C" { # define OPENAXIOM_HAVE_GRAPHICS 1 #endif +/* Byte order enumeration. */ +typedef enum openaxiom_byteorder { + oa_unknown_endian, oa_little_endian, oa_big_endian +} openaxiom_byteorder; + /* Return the address of the data buffer `BUF'. */ -- cgit v1.2.3