📄 teckit_compiler.h
字号:
/* TECkit_Compiler.h Public API to the TECkit compiler library. Jonathan Kew 22-Dec-2001 14-May-2002 added WINAPI to function declarations 5-Jul-2002 corrected placement of WINAPI/CALLBACK to keep MS compiler happy 18-Mar-2005 added option to generate XML representation 21-May-2005 changes based on Ulrik Petersen's patch for MS VC++ 6*//* TECkit_Compiler.h Copyright (c) 2002-2005 SIL International.*/#ifndef __TECkit_Compiler_H__#define __TECkit_Compiler_H__#include "TECkit_Common.h"#ifdef __cplusplusextern "C" {#endif#ifdef _WIN32/* MS compiler has predefined _WIN32, so assume Windows target */#include <windows.h> // apparently just using windef.h fails on VC++6#else/* not the MS compiler, so try Metrowerks' platform macros */#ifndef __APPLE__#if defined __dest_os && (__dest_os == __win32_os)#include <windef.h>#endif#endif#endif#ifndef WINAPI#define WINAPI#define CALLBACK#endif#define kCompilerOpts_FormMask 0x0000000F /* see TECkit_Common.h for encoding form constants */#define kCompilerOpts_Compress 0x00000010 /* generate compressed mapping table */#define kCompilerOpts_XML 0x00000020 /* instead of a compiled binary table, generate an XML representation of the mapping */typedef void (CALLBACK *TECkit_ErrorFn)(void* userData, char* msg, char* param, UInt32 line);TECkit_StatusWINAPITECkit_Compile(char* txt, UInt32 len, Byte doCompression, TECkit_ErrorFn errFunc, void* userData, Byte** outTable, UInt32* outLen);TECkit_StatusWINAPITECkit_CompileOpt(char* txt, UInt32 len, TECkit_ErrorFn errFunc, void* userData, Byte** outTable, UInt32* outLen, UInt32 opts);voidWINAPITECkit_DisposeCompiled(Byte* table);UInt32WINAPITECkit_GetCompilerVersion();#ifdef __cplusplus}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -