37#pragma warning(disable: 4786)
67 if ((
buf[0]==0)||(
buf[0]==
';'))
continue;
81 if (
buf[0] == 0)
continue;
92 if ( !
str.length() )
return 0;
120 if ( (*
str ==
'x') || (*
str ==
'X') ) {
125 while (readed != 3 &&
str[readed]) {
129 }
else if (
base == 16 && ch >=
'A' && ch <=
'F') {
180 for ( ; tok[
i] != 0; ) {
183 switch ( tok[
i+1] ) {
200 if ( tok[
i+1] >=
'@' ) {
201 s[
j++] = tok[
i+1] -
'@';
217 if (
buf.length() <= 2 )
return 0;
218 if (
buf[0] ==
'[' &&
buf[
buf.length()-1] ==
']' ) {
219 while (
buf[1] ==
' ' )
226 while (
buf[
buf.length()-2] ==
' ' )
229 buf.erase(
buf.length()-2,1);
231 buf.remove(
buf.length()-2,1);
241 if ( !
sa.IsEmpty() ) {
248 int max =
sa.GetItemsInContainer();
249 for (
int i = 0;
i<
max;
i++ )
263 while (
buf.length() ) {
266 if ( wbuf[0]==0 )
break;
277 if (
val > 0 &&
val <= 0xff ) {
349 while (
buf.length() ) {
352 if ( wbuf[0]==0 )
break;
353 if (
strnicmp(wbuf,
"[keymap",7)==0 )
continue;
357 if ( keydef !=
NULL ) {
362 }
else if(!
strnicmp(keydef,
"\\tn_scrollback",
strlen(
"\\tn_scrollback"))) {
366 }
else if(!
strnicmp(keydef,
"\\tn_paste",
strlen(
"\\tn_paste"))) {
387 char charmapname[128];
392 while (
buf.length() ) {
395 if ( wbuf[0]==0 )
break;
396 if (
strnicmp(wbuf,
"[charmap",8)==0 ) {
416 if (
strlen(console) > 1 && console[0] ==
'\\' )
419 bConsole = (
unsigned char)console[0];
421 if ( bHost <= 0 || bConsole <= 0 ) {
442 if ( wbuf[0]==0 )
return 1;
444 if ( wbuf[0] ==
'[' && wbuf[bufLen-1] ==
']' ) {
457 if (
stricmp(temps.
c_str(),
"[end comment]") == 0 )
return 1;
482 if ( !bufLen )
continue;
484 if (
buf[0] ==
'[' &&
buf[bufLen-1] ==
']' ) {
556 if ( !bufLen )
break;
557 if (
buf[0] ==
'[' &&
buf[bufLen-1] ==
']' ) {
567 if (
stricmp(
t.c_str(),
"[comment]") == 0 &&
584 AllOk = SA.
Add(temps);
596 if ( !AllOk )
return 0;
623 while (
config.length() ) {
627 if ( !bufLen || (
buf[0] ==
'[' &&
buf[bufLen-1] ==
']') )
continue;
641 if ( switchKey !=
NULL ) {
652 string keydef(switchKey);
657 if ( switchKey !=
NULL ) {
670 while ((mapdef !=
NULL)&&
686 char * mapdef =
buf + 8;
687 int SuccesLoaded = 0;
689 while ((mapdef !=
NULL)&&
748 for (
int i = 0;
i <
max;
i++ ) {
ACPI_SIZE strlen(const char *String)
char * strtok(char *String, const char *Delimiters)
char * strchr(const char *String, int ch)
static struct sockaddr_in sa
#define MSG_KEYNOCHARMAPS
#define MSG_KEYUNKNOWNMAP
#define MSG_KEYUNEXPTOKIN
int AddGlobalDef(WORD wVirtualKeyCode, char *lpzKeyDef)
TArrayAsVector< KeyMap > mapArray
int switchMap(TKeyDef &tk)
DWORD GetGlobalCode(int i)
int AddKeyDef(WORD wVirtualKeyCode, DWORD dwControlKeyState, char *lpzKeyDef)
int LookOnGlobal(char *vkey)
size_type GetItemsInContainer()
void modmap(char pos, char mapchar, char c)
char get_escape_key() const
char get_dial_key() const
char get_scrollback_key() const
char * ParseKeyDef(const char *buf, WORD &vk_code, DWORD &control)
int LoadKeyMap(string buf)
int LookForPart(stringArray &sa, const char *partType, const char *partName)
int LoadCharMap(string buf)
int Load(const char *filename, const char *szKeysetName)
int LoadGlobal(string &buf)
_Self & erase(size_type __pos=0, size_type __n=npos)
const _CharT * c_str() const
_Self & insert(size_type __pos, const _Self &__s)
static const WCHAR empty[]
#define stricmp(_String1, _String2)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
_CRTIMP char *__cdecl itoa(_In_ int _Val, _Pre_notnull_ _Post_z_ char *_DstBuf, _In_ int _Radix)
#define memmove(s1, s2, n)
int getLongComment(istream &is, char *wbuf, size_t sz)
char * Fix_Tok(char *tok)
DWORD Fix_ControlKeyState(char *Next_Token)
int normalizeSplitter(string &buf)
int printit(const char *it)
int printm(LPTSTR szModule, BOOL fSystem, DWORD dwMessageId,...)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
#define LEFT_CTRL_PRESSED
#define RIGHT_CTRL_PRESSED
#define RIGHT_ALT_PRESSED