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;
116 unsigned char retval = 0;
120 if ( (*
str ==
'x') || (*
str ==
'X') ) {
125 while (readed != 3 &&
str[readed]) {
128 retval = retval*
base + (ch -
'0');
129 }
else if (
base == 16 && ch >=
'A' && ch <=
'F') {
130 retval = retval*
base + (ch-
'A'+10);
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++ ) {
#define memmove(s1, s2, n)
int normalizeSplitter(string &buf)
char * strcat(char *DstString, const char *SrcString)
int LookForPart(stringArray &sa, const char *partType, const char *partName)
ACPI_SIZE strlen(const char *String)
DWORD Fix_ControlKeyState(char *Next_Token)
_Check_return_ _CRTIMP int __cdecl strnicmp(_In_z_ const char *_Str1, _In_z_ const char *_Str, _In_ size_t _MaxCount)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
void modmap(char pos, char mapchar, char c)
int LoadKeyMap(string buf)
GLenum GLuint GLenum GLsizei const GLchar * buf
int getLongComment(istream &is, char *wbuf, size_t sz)
char * Fix_Tok(char *tok)
const _CharT * c_str() const
_Check_return_ _CRTIMP int __cdecl stricmp(_In_z_ const char *_Str1, _In_z_ const char *_Str2)
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
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
_CRTIMP char *__cdecl itoa(_In_ int _Val, _Pre_notnull_ _Post_z_ char *_DstBuf, _In_ int _Radix)
static int getbyte(const char *str)
int printit(const char *it)
int switchMap(TKeyDef &tk)
char get_scrollback_key() const
int LoadCharMap(string buf)
#define LEFT_CTRL_PRESSED
TArrayAsVector< KeyMap > mapArray
DWORD GetGlobalCode(int i)
int printm(LPTSTR szModule, BOOL fSystem, DWORD dwMessageId,...)
int LookOnGlobal(char *vkey)
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
#define MSG_KEYUNEXPTOKIN
int AddKeyDef(WORD wVirtualKeyCode, DWORD dwControlKeyState, char *lpzKeyDef)
char * strtok(char *String, const char *Delimiters)
char get_escape_key() const
size_type GetItemsInContainer()
char * strchr(const char *String, int ch)
int LoadGlobal(string &buf)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
char get_dial_key() const
char * strcpy(char *DstString, const char *SrcString)
#define MSG_KEYNOCHARMAPS
char * ParseKeyDef(const char *buf, WORD &vk_code, DWORD &control)
#define RIGHT_CTRL_PRESSED
int AddGlobalDef(WORD wVirtualKeyCode, char *lpzKeyDef)
int Load(const char *filename, const char *szKeysetName)
_Self & insert(size_type __pos, const _Self &__s)
#define MSG_KEYUNKNOWNMAP
_Self & erase(size_type __pos=0, size_type __n=npos)
static struct sockaddr_in sa
#define RIGHT_ALT_PRESSED
static char * getline(istream &i, char *buf, int size)