mcpp_lib.h | mcpp_lib.h | |||
---|---|---|---|---|
#ifndef MCPP_LIB_H | /* mcpp_lib.h: declarations of libmcpp exported (visible) functions */ | |||
#define MCPP_LIB_H | #ifndef _MCPP_LIB_H | |||
#define _MCPP_LIB_H | ||||
/* Choices for output destination */ | #ifndef _MCPP_OUT_H | |||
typedef enum { | #include "mcpp_out.h" /* declaration of OUTDEST */ | |||
OUT, /* ~= fp_out */ | #endif | |||
ERR, /* ~= fp_err */ | ||||
DBG, /* ~= fp_debug */ | ||||
NUM_OUTDEST | ||||
} OUTDEST; | ||||
#if MCPP_LIB | ||||
#if _WIN32 || __CYGWIN__ || __MINGW32__ | #if _WIN32 || __CYGWIN__ || __MINGW32__ | |||
#if DLL_EXPORT || (__CYGWIN__ && PIC) | #if DLL_EXPORT || (__CYGWIN__ && PIC) | |||
#define DLL_DECL __declspec( dllexport) | #define DLL_DECL __declspec( dllexport) | |||
#elif DLL_IMPORT | #elif DLL_IMPORT | |||
#define DLL_DECL __declspec( dllimport) | #define DLL_DECL __declspec( dllimport) | |||
#else | #else | |||
#define DLL_DECL | #define DLL_DECL | |||
#endif | #endif | |||
#else | #else | |||
#define DLL_DECL | #define DLL_DECL | |||
skipping to change at line 34 | skipping to change at line 30 | |||
extern DLL_DECL int mcpp_lib_main( int argc, char ** argv); | extern DLL_DECL int mcpp_lib_main( int argc, char ** argv); | |||
extern DLL_DECL void mcpp_reset_def_out_func( void); | extern DLL_DECL void mcpp_reset_def_out_func( void); | |||
extern DLL_DECL void mcpp_set_out_func( | extern DLL_DECL void mcpp_set_out_func( | |||
int (* func_fputc) ( int c, OUTDEST od), | int (* func_fputc) ( int c, OUTDEST od), | |||
int (* func_fputs) ( const char * s, OUTDEST od), | int (* func_fputs) ( const char * s, OUTDEST od), | |||
int (* func_fprintf)( OUTDEST od, const char * format, ...) | int (* func_fprintf)( OUTDEST od, const char * format, ...) | |||
); | ); | |||
extern DLL_DECL void mcpp_use_mem_buffers( int tf); | extern DLL_DECL void mcpp_use_mem_buffers( int tf); | |||
extern DLL_DECL char * mcpp_get_mem_buffer( OUTDEST od); | extern DLL_DECL char * mcpp_get_mem_buffer( OUTDEST od); | |||
#endif /* MCPP_LIB */ | #endif /* _MCPP_LIB_H */ | |||
#endif /* MCPP_LIB_H */ | ||||
End of changes. 4 change blocks. | ||||
10 lines changed or deleted | 6 lines changed or added | |||