mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-11 16:37:28 +00:00
Fixes #138. Hotkeys in .kmn files no longer need to be quoted. This update does not change compatibility with earlier versions of Keyman Engine as the difference is entirely in the compiler.
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
/*
|
|
Name: kcframe
|
|
Copyright: Copyright (C) SIL International.
|
|
Documentation:
|
|
Description:
|
|
Create Date: 24 Aug 2015
|
|
|
|
Modified Date: 24 Aug 2015
|
|
Authors: mcdurdin
|
|
Related Files:
|
|
Dependencies:
|
|
|
|
Bugs:
|
|
Todo:
|
|
Notes:
|
|
History: 24 Aug 2015 - mcdurdin - I4865 - Add treat hints and warnings as errors into project
|
|
|
|
24 Aug 2015 - mcdurdin - I4866 - Add warn on deprecated features to project and compile
|
|
|
|
*/
|
|
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
|
|
#include <compiler.h>
|
|
|
|
//extern "C" BOOL __declspec(dllexport) CompileKeyboardFile(PSTR pszInfile, PSTR pszOutfile, BOOL FSaveDebug, CompilerMessageProc pMsgProc)
|
|
|
|
int WINAPI msgproc(int line, DWORD dwMsgCode, LPSTR szText)
|
|
{
|
|
printf("line %d error %x %s\n", line, dwMsgCode, szText);
|
|
return 1;
|
|
}
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
if(argc < 3)
|
|
{
|
|
puts("Usage: kcframe infile.kmn outfile.kmx");
|
|
return 1;
|
|
}
|
|
|
|
return CompileKeyboardFile(argv[1], argv[2], TRUE, FALSE, TRUE, msgproc) ? 0 : 1; // I4865 // I4866
|
|
}
|