dmetaphone.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef DMETAPHONE_INCL
  2. #define DMETAPHONE_INCL
  3. #ifdef _WIN32
  4. #define DMETAPHONE_CALL _cdecl
  5. #else
  6. #define DMETAPHONE_CALL
  7. #endif
  8. #ifdef DMETAPHONE_EXPORTS
  9. #define DMETAPHONE_API DECL_EXPORT
  10. #else
  11. #define DMETAPHONE_API DECL_IMPORT
  12. #endif
  13. #include "hqlplugins.hpp"
  14. extern "C" {
  15. #ifdef DMETAPHONE_EXPORTS
  16. DMETAPHONE_API bool getECLPluginDefinition(ECLPluginDefinitionBlock *pb);
  17. DMETAPHONE_API void setPluginContext(IPluginContext * _ctx);
  18. #endif
  19. DMETAPHONE_API void DMETAPHONE_CALL mpDMetaphone1(size32_t & __ret_len,char * & __ret_str,unsigned _len_instr,const char * instr);
  20. DMETAPHONE_API void DMETAPHONE_CALL mpDMetaphone2(size32_t & __ret_len,char * & __ret_str,unsigned _len_instr,const char * instr);
  21. DMETAPHONE_API void DMETAPHONE_CALL mpDMetaphoneBoth(size32_t & __ret_len,char * & __ret_str,unsigned _len_instr,const char * instr);
  22. DMETAPHONE_API void DMETAPHONE_CALL mpDMetaphone1_20(char * __ret_str,unsigned _len_instr,const char * instr);
  23. DMETAPHONE_API void DMETAPHONE_CALL mpDMetaphone2_20(char * __ret_str,unsigned _len_instr,const char * instr);
  24. DMETAPHONE_API void DMETAPHONE_CALL mpDMetaphoneBoth_40(char * __ret_str,unsigned _len_instr,const char * instr);
  25. }
  26. #endif