From ab4a8ba818d6fa8d237a55639c7361b376162f81 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Wed, 21 May 2008 16:10:51 +0000 Subject: * include/cfuns.h (oa_get_tmpdir): Declare. (oa_access_file_for_read): Likewise. * lib/cfuns-c.c (oa_getcwd): Define. (oa_access_file_for_read): Likewise. (oa_get_tmpdir): Likewise. * hyper/addfile.c: Don't include hyper.h (build_ht_filename): Use oa_getcwd, oa_access_file_for_read. (temp_file_open): Use oa_get_tmpdir. * hyper/htadd.c (build_db_filename): Don't fall back to bogus filename. * hyper/hyper.h (temp_dir): Remove. (def_spad): Likewise. --- src/include/cfuns.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') diff --git a/src/include/cfuns.h b/src/include/cfuns.h index 52ad54f7..21f5d037 100644 --- a/src/include/cfuns.h +++ b/src/include/cfuns.h @@ -51,5 +51,8 @@ OPENAXIOM_EXPORT int oa_rename(const char*, const char*); OPENAXIOM_EXPORT int oa_mkdir(const char*); OPENAXIOM_EXPORT int oa_system(const char*); OPENAXIOM_EXPORT char* oa_getenv(const char*); +OPENAXIOM_EXPORT char* oa_getcwd(void); +OPENAXIOM_EXPORT int oa_access_file_for_read(const char*); +OPENAXIOM_EXPORT const char* oa_get_tmpdir(void); #endif /* OPENAXIOM_CFUNS_included */ -- cgit v1.2.3