-
Notifications
You must be signed in to change notification settings - Fork 29
/
mcpp_lib.h
31 lines (28 loc) · 1.03 KB
/
mcpp_lib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* mcpp_lib.h: declarations of libmcpp exported (visible) functions */
#ifndef _MCPP_LIB_H
#define _MCPP_LIB_H
#ifndef _MCPP_OUT_H
#include "mcpp_out.h" /* declaration of OUTDEST */
#endif
#if _WIN32 || _WIN64 || __CYGWIN__ || __CYGWIN64__ || __MINGW32__ \
|| __MINGW64__
#if DLL_EXPORT || (__CYGWIN__ && PIC)
#define DLL_DECL __declspec( dllexport)
#elif DLL_IMPORT
#define DLL_DECL __declspec( dllimport)
#else
#define DLL_DECL
#endif
#else
#define DLL_DECL
#endif
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_set_out_func(
int (* func_fputc) ( int c, OUTDEST od),
int (* func_fputs) ( const char * s, OUTDEST od),
int (* func_fprintf)( OUTDEST od, const char * format, ...)
);
extern DLL_DECL void mcpp_use_mem_buffers( int tf);
extern DLL_DECL char * mcpp_get_mem_buffer( OUTDEST od);
#endif /* _MCPP_LIB_H */