diff options
| author | dos-reis <gdr@axiomatics.org> | 2009-02-07 22:10:17 +0000 |
|---|---|---|
| committer | dos-reis <gdr@axiomatics.org> | 2009-02-07 22:10:17 +0000 |
| commit | 2fbcd8bc4f97cc3e534e11414f5a12dbc08edf2d (patch) | |
| tree | 25f9002df4057d8e967d22c6f66a2d84378b3bcd /src/include | |
| parent | 85f1c4d3dc7dc34ae4436d3ef0ffe0b6c6039b5a (diff) | |
| download | open-axiom-2fbcd8bc4f97cc3e534e11414f5a12dbc08edf2d.tar.gz | |
* algebra/system.spad.pamphlet (hostByteOrder$System): New.
* algebra/data.spad.pamphlet (ByteOrder): New.
* algebra/Makefile.pamphlet (axiom_algebra_layer_1): Include BYTEORD.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/cfuns.h | 3 | ||||
| -rw-r--r-- | src/include/open-axiom.h | 5 |
2 files changed, 7 insertions, 1 deletions
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'. */ |
