From e23e15aa5c1a1e476fb022edaefe95f5fbe9c97e Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 25 Oct 2009 19:01:37 +0000 Subject: * lib/cfuns-c.c (oa_concatenate_string): Define. * include/open-axiom.h (openaxiom_ifs): New. (OPENAXIOM_TEXINPUTS_PATH): Likewise. (OPENAXIOM_BIBINPUTS_PATH): Likewise. * driver/main.c (augment_variable): New. (upgrade_environment): Likewise. Call publish_systemdir. (main): Call it instead of publish_systemdir. Handle 'spawn' driver. * driver/utils.h (openaxiom_execute_driver): New kind of driver. * driver/utils.c (openaxiom_preprocess_arguments): Tidy. (openaxiom_execute_core): Likewise. * sman/sman.c (process_arguments): Likewise. (process_options): Likewise. --- src/include/open-axiom.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/include/open-axiom.h') diff --git a/src/include/open-axiom.h b/src/include/open-axiom.h index df814476..67f378d7 100644 --- a/src/include/open-axiom.h +++ b/src/include/open-axiom.h @@ -101,6 +101,17 @@ typedef enum openaxiom_spawn_flags { /* Return the address of the data buffer `BUF'. */ #define oa_buffer_address(BUF) ((openaxiom_byte*)&BUF[0]) +/* Internal field separator character. */ +#ifdef __WIN32__ +# define openaxiom_ifs ';' +#else +# define openaxiom_ifs ':' +#endif + +/* Paths to LaTeX input support file directories. + These paths are relative to system directory. */ +#define OPENAXIOM_TEXINPUTS_PATH "/share/tex" +#define OPENAXIOM_BIBINPUTS_PATH "/share/tex" /* The function sleep() is not available under Windows. Instead, they have Sleep(); with capital S, please. Furthermore, it does not @@ -121,6 +132,7 @@ openaxiom_sleep(int n) OPENAXIOM_EXPORT void oa_allocate_process_argv(openaxiom_process*, int); OPENAXIOM_EXPORT int oa_spawn(openaxiom_process*, openaxiom_spawn_flags); +OPENAXIOM_EXPORT const char* oa_concatenate_string(const char*, const char*); #ifdef __cplusplus } -- cgit v1.2.3