diff options
author | dos-reis <gdr@axiomatics.org> | 2008-09-25 04:59:08 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2008-09-25 04:59:08 +0000 |
commit | e0c8f3d8155dabb7d7d54e426f56febfab77ee92 (patch) | |
tree | 4240cc0b9ec9eb01a4bf3e067a13cc74d6c7d403 /src/include | |
parent | e2b728ff9a53eb2ff4518ad10beb649b5e636f74 (diff) | |
download | open-axiom-e0c8f3d8155dabb7d7d54e426f56febfab77ee92.tar.gz |
* include/cfuns.h (oa_copy_file): Declare.
* lib/cfuns-c.c (oa_chdir): Define.
(oa_dirname): Fix typo.
* hyper/htadd.c (copy_file): Remove.
(build_db_filename): Tidy.
(delete_file): Use oa_copy_file.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cfuns.h | 11 | ||||
-rw-r--r-- | src/include/open-axiom.h | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/include/cfuns.h b/src/include/cfuns.h index 225ce6de..932c6d2c 100644 --- a/src/include/cfuns.h +++ b/src/include/cfuns.h @@ -38,6 +38,10 @@ #include "open-axiom.h" +#ifdef __cplusplus +extern "C" { +#endif + OPENAXIOM_EXPORT int addtopath(char*); OPENAXIOM_EXPORT int directoryp(char*); OPENAXIOM_EXPORT int make_path_from_file(char*, char*); @@ -55,8 +59,15 @@ OPENAXIOM_EXPORT char* oa_getcwd(void); OPENAXIOM_EXPORT int oa_access_file_for_read(const char*); OPENAXIOM_EXPORT char* oa_dirname(const char*); OPENAXIOM_EXPORT const char* oa_get_tmpdir(void); +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); + +#ifdef __cplusplus +} +#endif + #endif /* OPENAXIOM_CFUNS_included */ diff --git a/src/include/open-axiom.h b/src/include/open-axiom.h index 19cbfedf..cae21d08 100644 --- a/src/include/open-axiom.h +++ b/src/include/open-axiom.h @@ -65,6 +65,10 @@ typedef void* openaxiom_handle; #include <unistd.h> +#ifdef __cplusplus +extern "C" { +#endif + /* Do we have graphics support? */ #ifdef X_DISPLAY_MISSING # define OPENAXIOM_HAVE_GRAPHICS 0 @@ -94,4 +98,9 @@ openaxiom_sleep(int n) #endif } + +#ifdef __cplusplus +} +#endif + #endif /* OPENAXIOM_included */ |