mcpp_lib.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /* mcpp_lib.h: declarations of libmcpp exported (visible) functions */
  2. #ifndef _MCPP_LIB_H
  3. #define _MCPP_LIB_H
  4. #ifndef _MCPP_OUT_H
  5. #include "mcpp_out.h" /* declaration of OUTDEST */
  6. #endif
  7. #if _WIN32 || _WIN64 || __CYGWIN__ || __CYGWIN64__ || __MINGW32__ \
  8. || __MINGW64__
  9. #if DLL_EXPORT || (__CYGWIN__ && PIC)
  10. #define DLL_DECL __declspec( dllexport)
  11. #elif DLL_IMPORT
  12. #define DLL_DECL __declspec( dllimport)
  13. #else
  14. #define DLL_DECL
  15. #endif
  16. #else
  17. #define DLL_DECL
  18. #endif
  19. extern DLL_DECL int mcpp_lib_main( int argc, char ** argv);
  20. extern DLL_DECL void mcpp_reset_def_out_func( void);
  21. extern DLL_DECL void mcpp_set_out_func(
  22. int (* func_fputc) ( int c, OUTDEST od),
  23. int (* func_fputs) ( const char * s, OUTDEST od),
  24. int (* func_fprintf)( OUTDEST od, const char * format, ...)
  25. );
  26. extern DLL_DECL void mcpp_use_mem_buffers( int tf);
  27. extern DLL_DECL char * mcpp_get_mem_buffer( OUTDEST od);
  28. #endif /* _MCPP_LIB_H */