switch source tree from k&r to c99
This commit is contained in:
+29
-32
@@ -22,9 +22,8 @@ extern INPUT_RECORD ir;
|
||||
char dllname[512];
|
||||
char *shortdllname;
|
||||
|
||||
int FDECL(__declspec(dllexport) __stdcall ProcessKeystroke,
|
||||
(HANDLE hConIn, INPUT_RECORD *ir, boolean *valid,
|
||||
BOOLEAN_P numberpad, int portdebug));
|
||||
int __declspec(dllexport) __stdcall ProcessKeystroke(HANDLE hConIn,
|
||||
INPUT_RECORD *ir, boolean *valid, boolean numberpad, int portdebug);
|
||||
|
||||
int WINAPI
|
||||
DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
|
||||
@@ -101,17 +100,16 @@ static const struct pad {
|
||||
|
||||
#define inmap(x, vk) (((x) > 'A' && (x) < 'Z') || (vk) == 0xBF || (x) == '2')
|
||||
|
||||
int __declspec(dllexport) __stdcall ProcessKeystroke(hConIn, ir, valid,
|
||||
numberpad, portdebug)
|
||||
HANDLE hConIn;
|
||||
INPUT_RECORD *ir;
|
||||
boolean *valid;
|
||||
boolean numberpad;
|
||||
int portdebug;
|
||||
int __declspec(dllexport) __stdcall
|
||||
ProcessKeystroke(
|
||||
HANDLE hConIn,
|
||||
INPUT_RECORD *ir,
|
||||
boolean *valid,
|
||||
boolean numberpad,
|
||||
int portdebug)
|
||||
{
|
||||
int metaflags = 0, k = 0;
|
||||
int keycode, vk;
|
||||
unsigned char ch, pre_ch, mk = 0;
|
||||
unsigned char ch, pre_ch;
|
||||
unsigned short int scan;
|
||||
unsigned long shiftstate;
|
||||
int altseq = 0;
|
||||
@@ -193,9 +191,10 @@ int portdebug;
|
||||
return ch;
|
||||
}
|
||||
|
||||
int __declspec(dllexport) __stdcall NHkbhit(hConIn, ir)
|
||||
HANDLE hConIn;
|
||||
INPUT_RECORD *ir;
|
||||
int __declspec(dllexport) __stdcall
|
||||
NHkbhit(
|
||||
HANDLE hConIn,
|
||||
INPUT_RECORD *ir)
|
||||
{
|
||||
int done = 0; /* true = "stop searching" */
|
||||
int retval; /* true = "we had a match" */
|
||||
@@ -247,20 +246,19 @@ INPUT_RECORD *ir;
|
||||
return retval;
|
||||
}
|
||||
|
||||
int __declspec(dllexport) __stdcall CheckInput(hConIn, ir, count, numpad,
|
||||
mode, mod, cc)
|
||||
HANDLE hConIn;
|
||||
INPUT_RECORD *ir;
|
||||
DWORD *count;
|
||||
boolean numpad;
|
||||
int mode;
|
||||
int *mod;
|
||||
coord *cc;
|
||||
int __declspec(dllexport) __stdcall CheckInput(
|
||||
HANDLE hConIn,
|
||||
INPUT_RECORD *ir,
|
||||
DWORD *count,
|
||||
boolean numpad,
|
||||
int mode,
|
||||
int *mod,
|
||||
coord *cc)
|
||||
{
|
||||
#if defined(SAFERHANGUP)
|
||||
DWORD dwWait;
|
||||
#endif
|
||||
int ch;
|
||||
int ch = 0;
|
||||
boolean valid = 0, done = 0;
|
||||
|
||||
#ifdef QWERTZ_SUPPORT
|
||||
@@ -324,8 +322,8 @@ coord *cc;
|
||||
return mode ? 0 : ch;
|
||||
}
|
||||
|
||||
int __declspec(dllexport) __stdcall SourceWhere(buf)
|
||||
char **buf;
|
||||
int __declspec(dllexport) __stdcall
|
||||
SourceWhere(char** buf)
|
||||
{
|
||||
if (!buf)
|
||||
return 0;
|
||||
@@ -333,8 +331,8 @@ char **buf;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int __declspec(dllexport) __stdcall SourceAuthor(buf)
|
||||
char **buf;
|
||||
int __declspec(dllexport) __stdcall
|
||||
SourceAuthor(char** buf)
|
||||
{
|
||||
if (!buf)
|
||||
return 0;
|
||||
@@ -342,9 +340,8 @@ char **buf;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int __declspec(dllexport) __stdcall KeyHandlerName(buf, full)
|
||||
char **buf;
|
||||
int full;
|
||||
int __declspec(dllexport) __stdcall
|
||||
KeyHandlerName(char** buf, int full)
|
||||
{
|
||||
if (!buf)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user