#include <ctype.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <typedefs.h>
Go to the source code of this file.
|
ULONG | DoOutput (IN ULONG StateCount, IN PULONG ShiftStates, IN PKEYNAME DescriptionData, IN PKEYNAME LanguageData, IN PVOID AttributeData, IN PVOID DeadKeyData, IN PVOID LigatureData, IN PKEYNAME KeyNameData, IN PKEYNAME KeyNameExtData, IN PKEYNAME KeyNameDeadData) |
|
PCHAR | getVKName (IN ULONG VirtualKey, IN BOOLEAN Prefix) |
|
ULONG | DoParsing (VOID) |
|
◆ CHAR_DEAD_KEY
◆ CHAR_INVALID_KEY
◆ CHAR_LIGATURE_KEY
◆ CHAR_NORMAL_KEY
◆ CHAR_OTHER_KEY
◆ KEYWORD_COUNT
◆ KEYNAME
◆ LAYOUT
◆ LAYOUTENTRY
◆ PKEYNAME
◆ PLAYOUT
◆ PLAYOUTENTRY
◆ PSCVK
◆ PVKNAME
◆ SCVK
◆ VKNAME
◆ DoOutput()
Definition at line 1268 of file output.c.
1278{
1279 ULONG FailureCode = 0;
1280
1281
1284
1285
1287 {
1288
1290
1291
1292 if (!
kbd_rc(DescriptionData, LanguageData)) FailureCode = 2;
1293 }
1294
1295
1296 if (!
kbd_c(StateCount,
1297 ShiftStates,
1300 DeadKeyData,
1301 LigatureData,
1302 KeyNameData,
1303 KeyNameExtData,
1304 KeyNameDeadData))
1305 {
1306
1307 FailureCode = 3;
1308 }
1309
1310
1312 {
1313
1314 if (!
kbd_def()) FailureCode = 4;
1315 }
1316
1317
1318 return FailureCode;
1319}
BOOLEAN kbd_h(IN PLAYOUT Layout)
BOOLEAN kbd_c(IN ULONG StateCount, IN PULONG ShiftStates, IN PVOID AttributeData, IN PLAYOUT Layout, IN PVOID DeadKeyData, IN PVOID LigatureData, IN PKEYNAME KeyNameData, IN PKEYNAME KeyNameExtData, IN PKEYNAME KeyNameDeadData)
BOOLEAN kbd_rc(IN PKEYNAME DescriptionData, IN PKEYNAME LanguageData)
_CRTIMP struct tm *__cdecl localtime(const time_t *_Time)
Referenced by DoParsing().
◆ DoParsing()
Definition at line 972 of file parser.c.
973{
977 ULONG ShiftStates[8];
981
982
986 {
987
991 }
992
993
994 memset(KeyWords, 0,
sizeof(KeyWords));
996 {
997
998 KeyWords[KeyWord]++;
999
1000
1001 if ((KeyWord != 9) && (KeyWords[KeyWord] > 1) && (
Verbose))
1002 {
1003
1004 printf(
"The '%s' keyword appeared multiple times.\n",
1006 }
1007
1008
1009 switch (KeyWord)
1010 {
1011
1012 case 0:
1013
1014 DPRINT1(
"Found KBD section\n");
1016 break;
1017
1018
1019 case 1:
1020
1021 DPRINT1(
"Found VERSION section\n");
1023 break;
1024
1025
1026 case 2:
1027
1028 DPRINT1(
"Found COPYRIGHT section\n");
1030 break;
1031
1032
1033 case 3:
1034
1035 DPRINT1(
"Found COMPANY section\n");
1037 break;
1038
1039
1040 case 4:
1041
1042 DPRINT1(
"Found LOCALENAME section\n");
1044 break;
1045
1046
1047 case 5:
1048
1049 DPRINT1(
"Found MODIFIERS section\n");
1051 break;
1052
1053
1054 case 6:
1055
1056 DPRINT1(
"Found SHIFTSTATE section\n");
1058 if (StateCount < 2)
1059 {
1060
1064 }
1065 break;
1066
1067
1068 case 7:
1069
1070 DPRINT1(
"Found ATTRIBUTES section\n");
1072 break;
1073
1074
1075 case 8:
1076
1077 DPRINT1(
"Found LAYOUT section\n");
1079 &LigatureData,
1080 ShiftStates,
1081 StateCount);
1082 break;
1083
1084
1085 case 9:
1086
1087 DPRINT1(
"Found DEADKEY section\n");
1089 break;
1090
1091
1092 case 10:
1093
1094 DPRINT1(
"Found LIGATURE section\n");
1096 break;
1097
1098
1099 case 11:
1100
1101 DPRINT1(
"Found KEYNAME section\n");
1103 break;
1104
1105
1106 case 12:
1107
1108 DPRINT1(
"Found KEYNAME_EXT section\n");
1110 break;
1111
1112
1113 case 13:
1114
1115 DPRINT1(
"Found KEYNAME_DEAD section\n");
1117 break;
1118
1119
1120 case 14:
1121
1122 DPRINT1(
"Found DESCRIPTIONS section\n");
1124 break;
1125
1126
1127 case 15:
1128
1129 DPRINT1(
"Found LANGUAGENAMES section\n");
1131 break;
1132
1133
1134 case 16:
1135
1136 DPRINT1(
"Found ENDKBD section\n");
1138 break;
1139
1140
1141 default:
1142 break;
1143 }
1144 }
1145
1146
1148
1149
1151 ShiftStates,
1152 DescriptionData,
1153 LanguageData,
1155 DeadKeyData,
1156 LigatureData,
1157 KeyNameData,
1158 KeyNameExtData,
1159 KeyNameDeadData);
1160}
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
Referenced by main().
◆ getVKName()
Definition at line 65 of file parser.c.
67{
69
70
71 if (((VirtualKey >= 'A') && (VirtualKey <= 'Z')) ||
72 ((VirtualKey >= '0') && (VirtualKey <= '9')))
73 {
74
80 }
81
82
84 {
85
87 }
88 else
89 {
90
92 }
93
94
95 for (
i = 0;
i < 36;
i++)
96 {
97
98 if (
VKName[
i].VirtualKey == VirtualKey)
99 {
100
103 }
104 }
105
106
109}
char * strcat(char *DstString, const char *SrcString)
char * strcpy(char *DstString, const char *SrcString)
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
_In_ __drv_aliasesMem PSTRING Prefix
Referenced by kbd_c(), and kbd_h().
◆ CapState
◆ FallbackDriver
◆ g_Layout
◆ gCompany
◆ gCopyright
◆ gDescription
◆ gfpInput
◆ gKBDName
◆ gLocaleName
◆ gpszFileName
◆ gSubVersion
◆ gVersion
◆ gVKeyName
◆ Modifiers
◆ SanityCheck
◆ ScVk
◆ StateLabel
◆ UnicodeFile
◆ Verbose
Definition at line 72 of file chkdsk.c.
Referenced by Chkdsk(), ChkdskEx(), ChkdskFileSystem(), ChkdskFileSystem_UStr(), ChkdskPartition(), ChkdskVolume(), DoLAYOUT(), DoParsing(), DoSHIFTSTATE(), getCharacterInfo(), main(), ParseCommandLine(), VfatChkdsk(), and wmain().
◆ VKName