• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision6860 (tree)
Time2017-07-13 19:01:34
Authordoda

Log Message

eliminate FAR keyword.

削除漏れがあった orz

Change Summary

Incremental Difference

--- trunk/TTXSamples/TTXttyrec/TTXttyplay.c (revision 6859)
+++ trunk/TTXSamples/TTXttyrec/TTXttyplay.c (revision 6860)
@@ -97,7 +97,7 @@
9797 return NULL;
9898 }
9999
100-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
100+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
101101 pvar->ts = ts;
102102 pvar->cv = cv;
103103 pvar->origPReadFile = NULL;
@@ -129,7 +129,7 @@
129129 SendMessage(pvar->cv->HWin, WM_COMMAND, MAKELONG(ID_SETUP_WINDOW, 0), 0);
130130 }
131131
132-static BOOL PASCAL FAR TTXReadFile(HANDLE fh, LPVOID obuff, DWORD oblen, LPDWORD rbytes, LPOVERLAPPED rol) {
132+static BOOL PASCAL TTXReadFile(HANDLE fh, LPVOID obuff, DWORD oblen, LPDWORD rbytes, LPOVERLAPPED rol) {
133133 static struct recheader prh = { 0, 0, 0 };
134134 static unsigned int lbytes;
135135 static char ibuff[BUFFSIZE];
@@ -236,7 +236,7 @@
236236 return FALSE;
237237 }
238238
239-static BOOL PASCAL FAR TTXWriteFile(HANDLE fh, LPCVOID buff, DWORD len, LPDWORD wbytes, LPOVERLAPPED wol) {
239+static BOOL PASCAL TTXWriteFile(HANDLE fh, LPCVOID buff, DWORD len, LPDWORD wbytes, LPOVERLAPPED wol) {
240240 char tmpbuff[2048];
241241 unsigned int spos, dpos;
242242 char *ptr;
@@ -293,7 +293,7 @@
293293 return TRUE;
294294 }
295295
296-static void PASCAL FAR TTXOpenFile(TTXFileHooks *hooks) {
296+static void PASCAL TTXOpenFile(TTXFileHooks *hooks) {
297297 if (pvar->cv->PortType == IdFile && pvar->enable) {
298298 pvar->origPReadFile = *hooks->PReadFile;
299299 pvar->origPWriteFile = *hooks->PWriteFile;
@@ -304,7 +304,7 @@
304304 }
305305 }
306306
307-static void PASCAL FAR TTXCloseFile(TTXFileHooks *hooks) {
307+static void PASCAL TTXCloseFile(TTXFileHooks *hooks) {
308308 if (pvar->origPReadFile) {
309309 *hooks->PReadFile = pvar->origPReadFile;
310310 }
@@ -318,7 +318,7 @@
318318 }
319319 }
320320
321-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
321+static void PASCAL TTXModifyMenu(HMENU menu) {
322322 UINT flag = MF_BYCOMMAND | MF_STRING | MF_ENABLED;
323323
324324 pvar->FileMenu = GetFileMenu(menu);
@@ -336,7 +336,7 @@
336336 // InsertMenu(menu, ID_HELPMENU, MF_ENABLED, ID_MENU_REPLAY, "&t");
337337 }
338338
339-static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) {
339+static void PASCAL TTXModifyPopupMenu(HMENU menu) {
340340 if (menu==pvar->FileMenu) {
341341 if (pvar->enable) {
342342 EnableMenuItem(pvar->FileMenu, ID_MENU_REPLAY, MF_BYCOMMAND | MF_GRAYED);
@@ -347,7 +347,7 @@
347347 }
348348 }
349349
350-static void PASCAL FAR TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
350+static void PASCAL TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
351351 char buff[1024];
352352 PCHAR next;
353353 pvar->origParseParam(Param, ts, DDETopic);
@@ -363,7 +363,7 @@
363363 }
364364 }
365365
366-static void PASCAL FAR TTXReadIniFile(PCHAR fn, PTTSet ts) {
366+static void PASCAL TTXReadIniFile(PCHAR fn, PTTSet ts) {
367367 (pvar->origReadIniFile)(fn, ts);
368368 // ts->TitleFormat = 0;
369369 pvar->maxwait = GetPrivateProfileInt(INISECTION, "MaxWait", 0, fn);
@@ -370,7 +370,7 @@
370370 pvar->speed = GetPrivateProfileInt(INISECTION, "Speed", 0, fn);
371371 }
372372
373-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
373+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
374374 pvar->origParseParam = *hooks->ParseParam;
375375 *hooks->ParseParam = TTXParseParam;
376376 pvar->origReadIniFile = *hooks->ReadIniFile;
@@ -377,7 +377,7 @@
377377 *hooks->ReadIniFile = TTXReadIniFile;
378378 }
379379
380-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
380+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
381381 OPENFILENAME ofn;
382382
383383 switch (cmd) {
@@ -414,17 +414,17 @@
414414 return 0;
415415 }
416416
417-static BOOL FAR PASCAL TTXSetupWin(HWND parent, PTTSet ts) {
417+static BOOL PASCAL TTXSetupWin(HWND parent, PTTSet ts) {
418418 return (TRUE);
419419 }
420420
421-static BOOL FAR PASCAL TTXGetHostName(HWND parent, PGetHNRec GetHNRec) {
421+static BOOL PASCAL TTXGetHostName(HWND parent, PGetHNRec GetHNRec) {
422422 GetHNRec->PortType = IdTCPIP;
423423 _snprintf_s(GetHNRec->HostName, MAXPATHLEN, _TRUNCATE, "/R=\"%s\" /TP", pvar->openfn);
424424 return (TRUE);
425425 }
426426
427-static void PASCAL FAR TTXGetUIHooks(TTXUIHooks *hooks) {
427+static void PASCAL TTXGetUIHooks(TTXUIHooks *hooks) {
428428 if (pvar->ChangeTitle) {
429429 pvar->ChangeTitle = FALSE;
430430 *hooks->SetupWin = TTXSetupWin;
@@ -455,7 +455,7 @@
455455 TTXCloseFile
456456 };
457457
458-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
458+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
459459 int size = sizeof(Exports) - sizeof(exports->size);
460460
461461 if (size > exports->size) {
--- trunk/TTXSamples/TTXttyrec/TTXttyrec.c (revision 6859)
+++ trunk/TTXSamples/TTXttyrec/TTXttyrec.c (revision 6860)
@@ -89,7 +89,7 @@
8989 }
9090 }
9191
92-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
92+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
9393 pvar->ts = ts;
9494 pvar->cv = cv;
9595 pvar->origPrecv = NULL;
@@ -99,7 +99,7 @@
9999 pvar->record = FALSE;
100100 }
101101
102-static void PASCAL FAR TTXReadIniFile(PCHAR fn, PTTSet ts) {
102+static void PASCAL TTXReadIniFile(PCHAR fn, PTTSet ts) {
103103 (pvar->origReadIniFile)(fn, ts);
104104 pvar->rec_stsize = GetOnOff(INISECTION, "RecordStartSize", fn, TRUE);
105105 }
@@ -118,12 +118,12 @@
118118 return;
119119 }
120120
121-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
121+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
122122 pvar->origReadIniFile = *hooks->ReadIniFile;
123123 *hooks->ReadIniFile = TTXReadIniFile;
124124 }
125125
126-int PASCAL FAR TTXrecv(SOCKET s, char *buff, int len, int flags) {
126+int PASCAL TTXrecv(SOCKET s, char *buff, int len, int flags) {
127127 int rlen;
128128
129129 rlen = pvar->origPrecv(s, buff, len, flags);
@@ -133,7 +133,7 @@
133133 return rlen;
134134 }
135135
136-BOOL PASCAL FAR TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, LPOVERLAPPED rol) {
136+BOOL PASCAL TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, LPOVERLAPPED rol) {
137137 if (!pvar->origPReadFile(fh, buff, len, rbytes, rol))
138138 return FALSE;
139139
@@ -143,18 +143,18 @@
143143 return TRUE;
144144 }
145145
146-static void PASCAL FAR TTXOpenTCP(TTXSockHooks *hooks) {
146+static void PASCAL TTXOpenTCP(TTXSockHooks *hooks) {
147147 pvar->origPrecv = *hooks->Precv;
148148 *hooks->Precv = TTXrecv;
149149 }
150150
151-static void PASCAL FAR TTXCloseTCP(TTXSockHooks *hooks) {
151+static void PASCAL TTXCloseTCP(TTXSockHooks *hooks) {
152152 if (pvar->origPrecv) {
153153 *hooks->Precv = pvar->origPrecv;
154154 }
155155 }
156156
157-static void PASCAL FAR TTXOpenFile(TTXFileHooks *hooks) {
157+static void PASCAL TTXOpenFile(TTXFileHooks *hooks) {
158158 if (pvar->cv->PortType == IdSerial) {
159159 pvar->origPReadFile = *hooks->PReadFile;
160160 *hooks->PReadFile = TTXReadFile;
@@ -161,13 +161,13 @@
161161 }
162162 }
163163
164-static void PASCAL FAR TTXCloseFile(TTXFileHooks *hooks) {
164+static void PASCAL TTXCloseFile(TTXFileHooks *hooks) {
165165 if (pvar->origPReadFile) {
166166 *hooks->PReadFile = pvar->origPReadFile;
167167 }
168168 }
169169
170-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
170+static void PASCAL TTXModifyMenu(HMENU menu) {
171171 UINT flag = MF_BYCOMMAND | MF_STRING | MF_ENABLED;
172172
173173 pvar->FileMenu = GetFileMenu(menu);
@@ -180,7 +180,7 @@
180180 // MF_BYCOMMAND | MF_SEPARATOR, 0, NULL);
181181 }
182182
183-static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) {
183+static void PASCAL TTXModifyPopupMenu(HMENU menu) {
184184 if (menu==pvar->FileMenu) {
185185 if (pvar->cv->Ready)
186186 EnableMenuItem(pvar->FileMenu, ID_MENUITEM, MF_BYCOMMAND | MF_ENABLED);
@@ -189,7 +189,7 @@
189189 }
190190 }
191191
192-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
192+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
193193 OPENFILENAME ofn;
194194 char fname[MAX_PATH];
195195 char buff[20];
@@ -237,7 +237,7 @@
237237 return 0;
238238 }
239239
240-static void PASCAL FAR TTXEnd(void) {
240+static void PASCAL TTXEnd(void) {
241241 if (pvar->fh != INVALID_HANDLE_VALUE) {
242242 CloseHandle(pvar->fh);
243243 pvar->fh = INVALID_HANDLE_VALUE;
@@ -263,7 +263,7 @@
263263 TTXCloseFile
264264 };
265265
266-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
266+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
267267 int size = sizeof(Exports) - sizeof(exports->size);
268268
269269 if (size > exports->size) {
--- trunk/TTXSamples/TTXAdditionalTitle/TTXAdditionalTitle.c (revision 6859)
+++ trunk/TTXSamples/TTXAdditionalTitle/TTXAdditionalTitle.c (revision 6860)
@@ -46,7 +46,7 @@
4646 static TInstVar *pvar;
4747 static TInstVar InstVar;
4848
49-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
49+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
5050 pvar->ts = ts;
5151 pvar->cv = cv;
5252 pvar->origPrecv = NULL;
@@ -174,7 +174,7 @@
174174 }
175175 }
176176
177-int PASCAL FAR TTXrecv(SOCKET s, char *buff, int len, int flags) {
177+int PASCAL TTXrecv(SOCKET s, char *buff, int len, int flags) {
178178 int rlen;
179179
180180 if ((rlen = pvar->origPrecv(s, buff, len, flags)) > 0) {
@@ -183,7 +183,7 @@
183183 return rlen;
184184 }
185185
186-BOOL PASCAL FAR TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, LPOVERLAPPED rol) {
186+BOOL PASCAL TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, LPOVERLAPPED rol) {
187187 BOOL result;
188188
189189 if ((result = pvar->origPReadFile(fh, buff, len, rbytes, rol)) != FALSE)
@@ -191,29 +191,29 @@
191191 return result;
192192 }
193193
194-static void PASCAL FAR TTXOpenTCP(TTXSockHooks *hooks) {
194+static void PASCAL TTXOpenTCP(TTXSockHooks *hooks) {
195195 pvar->origPrecv = *hooks->Precv;
196196 *hooks->Precv = TTXrecv;
197197 }
198198
199-static void PASCAL FAR TTXCloseTCP(TTXSockHooks *hooks) {
199+static void PASCAL TTXCloseTCP(TTXSockHooks *hooks) {
200200 if (pvar->origPrecv) {
201201 *hooks->Precv = pvar->origPrecv;
202202 }
203203 }
204204
205-static void PASCAL FAR TTXOpenFile(TTXFileHooks *hooks) {
205+static void PASCAL TTXOpenFile(TTXFileHooks *hooks) {
206206 pvar->origPReadFile = *hooks->PReadFile;
207207 *hooks->PReadFile = TTXReadFile;
208208 }
209209
210-static void PASCAL FAR TTXCloseFile(TTXFileHooks *hooks) {
210+static void PASCAL TTXCloseFile(TTXFileHooks *hooks) {
211211 if (pvar->origPReadFile) {
212212 *hooks->PReadFile = pvar->origPReadFile;
213213 }
214214 }
215215
216-static BOOL FAR PASCAL TTXSetupWin(HWND parent, PTTSet ts) {
216+static BOOL PASCAL TTXSetupWin(HWND parent, PTTSet ts) {
217217 BOOL ret;
218218
219219 strncpy_s(pvar->ts->Title, sizeof(pvar->ts->Title), pvar->orig_title, _TRUNCATE);
@@ -226,11 +226,11 @@
226226 return ret;
227227 }
228228
229-static BOOL FAR PASCAL TTXDummySetupWin(HWND parent, PTTSet ts) {
229+static BOOL PASCAL TTXDummySetupWin(HWND parent, PTTSet ts) {
230230 return (TRUE);
231231 }
232232
233-static void PASCAL FAR TTXGetUIHooks(TTXUIHooks *hooks) {
233+static void PASCAL TTXGetUIHooks(TTXUIHooks *hooks) {
234234 if (pvar->ChangeTitle) {
235235 pvar->ChangeTitle = FALSE;
236236 *hooks->SetupWin = TTXDummySetupWin;
@@ -242,7 +242,7 @@
242242 return;
243243 }
244244
245-static void PASCAL FAR TTXReadIniFile(PCHAR fn, PTTSet ts) {
245+static void PASCAL TTXReadIniFile(PCHAR fn, PTTSet ts) {
246246 char buff[sizeof(pvar->ts->Title)];
247247
248248 (pvar->origReadIniFile)(fn, ts);
@@ -266,7 +266,7 @@
266266 }
267267 }
268268
269-static void PASCAL FAR TTXWriteIniFile(PCHAR fn, PTTSet ts) {
269+static void PASCAL TTXWriteIniFile(PCHAR fn, PTTSet ts) {
270270 strncpy_s(pvar->ts->Title, sizeof(pvar->ts->Title), pvar->orig_title, _TRUNCATE);
271271 (pvar->origWriteIniFile)(fn, ts);
272272 SetTitleStr(pvar->orig_title, FALSE);
@@ -287,7 +287,7 @@
287287 }
288288 }
289289
290-static void PASCAL FAR TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
290+static void PASCAL TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
291291 char buff[1024];
292292 PCHAR next;
293293
@@ -303,7 +303,7 @@
303303 }
304304 }
305305
306-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
306+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
307307 pvar->origReadIniFile = *hooks->ReadIniFile;
308308 *hooks->ReadIniFile = TTXReadIniFile;
309309 pvar->origWriteIniFile = *hooks->WriteIniFile;
@@ -313,7 +313,7 @@
313313 }
314314
315315 /*
316-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
316+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
317317 if (cmd==ID_MENUITEM) {
318318 return 1;
319319 }
@@ -340,7 +340,7 @@
340340 TTXCloseFile
341341 };
342342
343-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
343+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
344344 int size = sizeof(Exports) - sizeof(exports->size);
345345
346346 if (size > exports->size) {
--- trunk/TTXSamples/TTXCopyIniFile/TTXCopyIniFile.c (revision 6859)
+++ trunk/TTXSamples/TTXCopyIniFile/TTXCopyIniFile.c (revision 6860)
@@ -21,17 +21,17 @@
2121 static TInstVar *pvar;
2222 static TInstVar InstVar;
2323
24-static void PASCAL FAR TTXReadIniFile(PCHAR fn, PTTSet ts) {
24+static void PASCAL TTXReadIniFile(PCHAR fn, PTTSet ts) {
2525 strcpy_s(pvar->origIniFileName, sizeof(pvar->origIniFileName), fn);
2626 (pvar->origReadIniFile)(fn, ts);
2727 }
2828
29-static void PASCAL FAR TTXWriteIniFile(PCHAR fn, PTTSet ts) {
29+static void PASCAL TTXWriteIniFile(PCHAR fn, PTTSet ts) {
3030 CopyFile(pvar->origIniFileName, fn, TRUE);
3131 (pvar->origWriteIniFile)(fn, ts);
3232 }
3333
34-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
34+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
3535 if (pvar->origIniFileName[0] == 0) {
3636 pvar->origReadIniFile = *hooks->ReadIniFile;
3737 *hooks->ReadIniFile = TTXReadIniFile;
@@ -61,7 +61,7 @@
6161 NULL // TTXCloseFile
6262 };
6363
64-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
64+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
6565 int size = sizeof(Exports) - sizeof(exports->size);
6666
6767 if (size > exports->size) {
--- trunk/TTXSamples/TTXResizeWin/TTXResizeWin.c (revision 6859)
+++ trunk/TTXSamples/TTXResizeWin/TTXResizeWin.c (revision 6860)
@@ -27,18 +27,18 @@
2727 static TInstVar *pvar;
2828 static TInstVar InstVar;
2929
30-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
30+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
3131 pvar->ts = ts;
3232 pvar->cv = cv;
3333 pvar->ReplaceTermDlg = FALSE;
3434 }
3535
36-static BOOL FAR PASCAL TTXSetupTerminal(HWND parent, PTTSet ts) {
36+static BOOL PASCAL TTXSetupTerminal(HWND parent, PTTSet ts) {
3737 pvar->ReplaceTermDlg = FALSE;
3838 return (TRUE);
3939 }
4040
41-static void PASCAL FAR TTXGetUIHooks(TTXUIHooks *hooks) {
41+static void PASCAL TTXGetUIHooks(TTXUIHooks *hooks) {
4242 if (pvar->ReplaceTermDlg) {
4343 *hooks->SetupTerminal = TTXSetupTerminal;
4444 }
@@ -45,12 +45,12 @@
4545 return;
4646 }
4747
48-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
48+static void PASCAL TTXModifyMenu(HMENU menu) {
4949 pvar->SetupMenu = menu;
5050 InsertMenu(pvar->SetupMenu, ID_HELPMENU, MF_ENABLED, ID_MENUITEM, MENU_STR);
5151 }
5252
53-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
53+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
5454 if (cmd == ID_MENUITEM) {
5555 pvar->ts->TerminalWidth = TERM_WIDTH;
5656 pvar->ts->TerminalHeight = TERM_HEIGHT;
@@ -79,7 +79,7 @@
7979 NULL, // TTXEnd
8080 };
8181
82-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
82+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
8383 int size = sizeof(Exports) - sizeof(exports->size);
8484
8585 if (size > exports->size) {
--- trunk/TTXSamples/TTXViewMode/TTXViewMode.c (revision 6859)
+++ trunk/TTXSamples/TTXViewMode/TTXViewMode.c (revision 6860)
@@ -61,7 +61,7 @@
6161 return NULL;
6262 }
6363
64-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
64+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
6565 pvar->ts = ts;
6666 pvar->cv = cv;
6767 pvar->origPsend = NULL;
@@ -70,7 +70,7 @@
7070 pvar->origWriteIniFile = NULL;
7171 }
7272
73-static int PASCAL FAR TTXsend(SOCKET s, const char *buf, int len, int flags) {
73+static int PASCAL TTXsend(SOCKET s, const char *buf, int len, int flags) {
7474 if (pvar->enable) {
7575 return len;
7676 }
@@ -79,7 +79,7 @@
7979 }
8080 }
8181
82-static BOOL PASCAL FAR TTXWriteFile(HANDLE fh, LPCVOID buff, DWORD len, LPDWORD wbytes, LPOVERLAPPED wol) {
82+static BOOL PASCAL TTXWriteFile(HANDLE fh, LPCVOID buff, DWORD len, LPDWORD wbytes, LPOVERLAPPED wol) {
8383 if (pvar->enable) {
8484 *wbytes = len;
8585 return TRUE;
@@ -89,41 +89,41 @@
8989 }
9090 }
9191
92-static void PASCAL FAR TTXOpenTCP(TTXSockHooks *hooks) {
92+static void PASCAL TTXOpenTCP(TTXSockHooks *hooks) {
9393 pvar->origPsend = *hooks->Psend;
9494 *hooks->Psend = TTXsend;
9595 }
9696
97-static void PASCAL FAR TTXCloseTCP(TTXSockHooks *hooks) {
97+static void PASCAL TTXCloseTCP(TTXSockHooks *hooks) {
9898 if (pvar->origPsend) {
9999 *hooks->Psend = pvar->origPsend;
100100 }
101101 }
102102
103-static void PASCAL FAR TTXOpenFile(TTXFileHooks *hooks) {
103+static void PASCAL TTXOpenFile(TTXFileHooks *hooks) {
104104 pvar->origPWriteFile = *hooks->PWriteFile;
105105 *hooks->PWriteFile = TTXWriteFile;
106106 }
107107
108-static void PASCAL FAR TTXCloseFile(TTXFileHooks *hooks) {
108+static void PASCAL TTXCloseFile(TTXFileHooks *hooks) {
109109 if (pvar->origPWriteFile) {
110110 *hooks->PWriteFile = pvar->origPWriteFile;
111111 }
112112 }
113113
114-static void PASCAL FAR TTXReadIniFile(PCHAR fn, PTTSet ts) {
114+static void PASCAL TTXReadIniFile(PCHAR fn, PTTSet ts) {
115115 pvar->origReadIniFile(fn, ts);
116116 GetPrivateProfileString(SECTION, "Password", "", pvar->password, sizeof(pvar->password), fn);
117117 return;
118118 }
119119
120-static void PASCAL FAR TTXWriteIniFile(PCHAR fn, PTTSet ts) {
120+static void PASCAL TTXWriteIniFile(PCHAR fn, PTTSet ts) {
121121 pvar->origWriteIniFile(fn, ts);
122122 // WritePrivateProfileString(SECTION, "Password", pvar->password, fn);
123123 return;
124124 }
125125
126-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
126+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
127127 pvar->origReadIniFile = *hooks->ReadIniFile;
128128 *hooks->ReadIniFile = TTXReadIniFile;
129129 pvar->origWriteIniFile = *hooks->WriteIniFile;
@@ -130,7 +130,7 @@
130130 *hooks->WriteIniFile = TTXWriteIniFile;
131131 }
132132
133-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
133+static void PASCAL TTXModifyMenu(HMENU menu) {
134134 UINT flag = MF_BYCOMMAND | MF_STRING | MF_ENABLED;
135135
136136 pvar->SetupMenu = GetSetupMenu(menu);
@@ -142,7 +142,7 @@
142142 InsertMenu(pvar->ControlMenu, ID_CONTROL_MACRO, MF_BYCOMMAND | MF_SEPARATOR, 0, NULL);
143143 }
144144
145-static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) {
145+static void PASCAL TTXModifyPopupMenu(HMENU menu) {
146146 if (menu == pvar->ControlMenu) {
147147 if (pvar->cv->Ready)
148148 EnableMenuItem(pvar->ControlMenu, ID_MENU_VIEWMODE, MF_BYCOMMAND | MF_ENABLED);
@@ -217,7 +217,7 @@
217217 return FALSE;
218218 }
219219
220-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
220+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
221221 switch (cmd) {
222222 case ID_MENU_VIEWMODE:
223223 if (pvar->enable) {
@@ -281,7 +281,7 @@
281281 TTXCloseFile
282282 };
283283
284-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
284+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
285285 int size = sizeof(Exports) - sizeof(exports->size);
286286 /* do version checking if necessary */
287287 /* if (Version!=TTVERSION) return FALSE; */
--- trunk/TTXSamples/ttxtest/ttxtest.c (revision 6859)
+++ trunk/TTXSamples/ttxtest/ttxtest.c (revision 6860)
@@ -94,7 +94,7 @@
9494 or you will slow down the startup process even if your extension is not
9595 going to be used.
9696 */
97-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
97+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
9898 pvar->ts = ts;
9999 pvar->cv = cv;
100100 }
@@ -125,7 +125,7 @@
125125 This function is called for each extension, in load order (see below).
126126 Thus, the extension with highest load order puts its hooks in last.
127127 */
128-static void PASCAL FAR TTXOpenTCP(TTXSockHooks *hooks) {
128+static void PASCAL TTXOpenTCP(TTXSockHooks *hooks) {
129129 printf("TTXOpenTCP %d\n", ORDER);
130130 }
131131
@@ -139,7 +139,7 @@
139139 This function is called for each extension, in reverse load order (see
140140 below).
141141 */
142-static void PASCAL FAR TTXCloseTCP(TTXSockHooks *hooks) {
142+static void PASCAL TTXCloseTCP(TTXSockHooks *hooks) {
143143 printf("TTXCloseTCP %d\n", ORDER);
144144 }
145145
@@ -175,7 +175,7 @@
175175 This function is called for each extension, in load order (see below).
176176 Thus, the extension with highest load order puts its hooks in last.
177177 */
178-static void PASCAL FAR TTXGetUIHooks(TTXUIHooks *hooks) {
178+static void PASCAL TTXGetUIHooks(TTXUIHooks *hooks) {
179179 printf("TTXSetUIHooks %d\n", ORDER);
180180 }
181181
@@ -197,7 +197,7 @@
197197 This function is called for each extension, in load order (see below).
198198 Thus, the extension with highest load order puts its hooks in last.
199199 */
200-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
200+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
201201 printf("TTXSetSetupHooks %d\n", ORDER);
202202 }
203203
@@ -205,7 +205,7 @@
205205
206206 This function is called for each extension, in load order (see below).
207207 */
208-static void PASCAL FAR TTXSetWinSize(int rows, int cols) {
208+static void PASCAL TTXSetWinSize(int rows, int cols) {
209209 printf("TTXSetWinSize %d\n", ORDER);
210210 }
211211
@@ -221,7 +221,7 @@
221221 Thus, the extension with highest load order number puts its items in last.
222222 */
223223 #define ID_MENUITEM 6000
224-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
224+static void PASCAL TTXModifyMenu(HMENU menu) {
225225 UINT flag = MF_ENABLED;
226226
227227 printf("TTXModifyMenu %d\n", ORDER);
@@ -241,7 +241,7 @@
241241
242242 This function is called for each extension, in load order (see below).
243243 */
244-static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) {
244+static void PASCAL TTXModifyPopupMenu(HMENU menu) {
245245 printf("TTXModifyPopupMenu %d\n", ORDER);
246246
247247 if (menu==pvar->SetupMenu)
@@ -264,7 +264,7 @@
264264 below). Thus, the extension that has highest load order number gets to
265265 process the command first.
266266 */
267-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
267+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
268268 printf("TTXProcessCommand %d\n", ORDER);
269269
270270 if (cmd==ID_MENUITEM)
@@ -289,13 +289,13 @@
289289 This function is called for each extension, in reverse load order (see
290290 below).
291291 */
292-static void PASCAL FAR TTXEnd(void) {
292+static void PASCAL TTXEnd(void) {
293293 printf("TTXEnd %d\n", ORDER);
294294 }
295295
296296 /*
297297 */
298-static void PASCAL FAR TTXSetCommandLine(PCHAR cmd, int cmdlen, PGetHNRec rec) {
298+static void PASCAL TTXSetCommandLine(PCHAR cmd, int cmdlen, PGetHNRec rec) {
299299 printf("TTXSetCommandLine %d\n", ORDER);
300300 }
301301
@@ -325,7 +325,7 @@
325325 This function is called for each extension, in load order (see below).
326326 Thus, the extension with highest load order puts its hooks in last.
327327 */
328-static void PASCAL FAR TTXOpenFile(TTXFileHooks *hooks) {
328+static void PASCAL TTXOpenFile(TTXFileHooks *hooks) {
329329 printf("TTXOpenFile %d\n", ORDER);
330330 }
331331
@@ -339,7 +339,7 @@
339339 This function is called for each extension, in reverse load order (see
340340 below).
341341 */
342-static void PASCAL FAR TTXCloseFile(TTXFileHooks *hooks) {
342+static void PASCAL TTXCloseFile(TTXFileHooks *hooks) {
343343 printf("TTXCloseFile %d\n", ORDER);
344344 }
345345
@@ -414,7 +414,7 @@
414414 extra functions that have been added since this extension was compiled
415415 will automatically be NULL and thus get default behaviour.)
416416 */
417-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
417+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
418418 int size = sizeof(Exports) - sizeof(exports->size);
419419 /* do version checking if necessary */
420420 /* if (Version!=TTVERSION) return FALSE; */
--- trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.c (revision 6859)
+++ trunk/TTXSamples/TTXAlwaysOnTop/TTXAlwaysOnTop.c (revision 6860)
@@ -57,12 +57,12 @@
5757 return NULL;
5858 }
5959
60-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
60+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
6161 pvar->ts = ts;
6262 pvar->ontop = FALSE;
6363 }
6464
65-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
65+static void PASCAL TTXModifyMenu(HMENU menu) {
6666 UINT flag = MF_BYCOMMAND | MF_STRING | MF_ENABLED;
6767
6868 pvar->ControlMenu = GetControlMenu(menu);
@@ -78,7 +78,7 @@
7878 MF_BYCOMMAND | MF_SEPARATOR, 0, NULL);
7979 }
8080
81-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
81+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
8282 switch (cmd) {
8383 case ID_MENU_BASE:
8484 if (pvar->ontop) {
@@ -130,7 +130,7 @@
130130 NULL, // TTXEnd
131131 };
132132
133-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
133+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
134134 int size = sizeof(Exports) - sizeof(exports->size);
135135
136136 if (size > exports->size) {
--- trunk/TTXSamples/TTXResizeMenu/TTXResizeMenu.c (revision 6859)
+++ trunk/TTXSamples/TTXResizeMenu/TTXResizeMenu.c (revision 6860)
@@ -152,7 +152,7 @@
152152 }
153153 }
154154
155-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
155+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
156156 pvar->ts = ts;
157157 pvar->cv = cv;
158158 pvar->ReplaceTermDlg = FALSE;
@@ -167,12 +167,12 @@
167167 }
168168 }
169169
170-static BOOL FAR PASCAL TTXSetupTerminal(HWND parent, PTTSet ts) {
170+static BOOL PASCAL TTXSetupTerminal(HWND parent, PTTSet ts) {
171171 pvar->ReplaceTermDlg = FALSE;
172172 return (TRUE);
173173 }
174174
175-static void PASCAL FAR TTXGetUIHooks(TTXUIHooks *hooks) {
175+static void PASCAL TTXGetUIHooks(TTXUIHooks *hooks) {
176176 if (pvar->ReplaceTermDlg) {
177177 *hooks->SetupTerminal = TTXSetupTerminal;
178178 }
@@ -179,7 +179,7 @@
179179 return;
180180 }
181181
182-static void PASCAL FAR ResizeMenuReadIniFile(PCHAR fn, PTTSet ts) {
182+static void PASCAL ResizeMenuReadIniFile(PCHAR fn, PTTSet ts) {
183183 int i, x, y;
184184 char Key[20], Buff[100];
185185
@@ -221,12 +221,12 @@
221221 pvar->MenuItems = i;
222222 }
223223
224-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
224+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
225225 pvar->origReadIniFile = *hooks->ReadIniFile;
226226 *hooks->ReadIniFile = ResizeMenuReadIniFile;
227227 }
228228
229-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
229+static void PASCAL TTXModifyMenu(HMENU menu) {
230230 MENUITEMINFO mi;
231231
232232 if (pvar->MenuItems > 0) {
@@ -242,13 +242,13 @@
242242 }
243243 }
244244
245-static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) {
245+static void PASCAL TTXModifyPopupMenu(HMENU menu) {
246246 if (menu == pvar->ResizeMenu) {
247247 UpdateMenu();
248248 }
249249 }
250250
251-static int PASCAL FAR TTXProcessCommand(HWND HWin, WORD cmd) {
251+static int PASCAL TTXProcessCommand(HWND HWin, WORD cmd) {
252252 int num, full_h, full_w;
253253 if (cmd >= ID_MENUID_BASE && cmd < ID_MENUID_BASE + pvar->MenuItems) {
254254 GetMonitorSizeByChar(&full_w, &full_h);
@@ -290,7 +290,7 @@
290290 NULL, // TTXEnd
291291 };
292292
293-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
293+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
294294 int size = sizeof(Exports) - sizeof(exports->size);
295295
296296 if (size > exports->size) {
--- trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.c (revision 6859)
+++ trunk/TTXSamples/TTXShowCommandLine/TTXShowCommandLine.c (revision 6860)
@@ -18,12 +18,12 @@
1818 static TInstVar *pvar;
1919 static TInstVar InstVar;
2020
21-static void PASCAL FAR TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
21+static void PASCAL TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
2222 MessageBox(NULL, Param, "TTXShowCommandLine", MB_OK|MB_ICONEXCLAMATION);
2323 pvar->origParseParam(Param, ts, DDETopic);
2424 }
2525
26-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
26+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
2727 pvar->origParseParam = *hooks->ParseParam;
2828 *hooks->ParseParam = TTXParseParam;
2929 }
@@ -44,7 +44,7 @@
4444 NULL, // TTXEnd
4545 };
4646
47-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
47+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
4848 int size = sizeof(Exports) - sizeof(exports->size);
4949
5050 if (size > exports->size) {
--- trunk/TTXSamples/TTXOutputBuffering/TTXOutputBuffering.c (revision 6859)
+++ trunk/TTXSamples/TTXOutputBuffering/TTXOutputBuffering.c (revision 6860)
@@ -27,7 +27,7 @@
2727 //
2828 // TTXInit -- 起動時処理
2929 //
30-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
30+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
3131 pvar->ts = ts;
3232 pvar->cv = cv;
3333 pvar->origPsend = NULL;
@@ -63,7 +63,7 @@
6363 //
6464 // TTXSend -- キー入力処理
6565 //
66-static int PASCAL FAR TTXsend(SOCKET s, const char *buf, int len, int flags) {
66+static int PASCAL TTXsend(SOCKET s, const char *buf, int len, int flags) {
6767 int i, wlen, left_len;
6868
6969 if (len > 0 && pvar->enable) {
@@ -121,7 +121,7 @@
121121 // TTXOpen -- セッション開始処理
122122 // Psend をフックする。
123123 //
124-static void PASCAL FAR TTXOpenTCP(TTXSockHooks *hooks) {
124+static void PASCAL TTXOpenTCP(TTXSockHooks *hooks) {
125125 pvar->origPsend = *hooks->Psend;
126126 *hooks->Psend = TTXsend;
127127 pvar->buff_used = 0;
@@ -131,7 +131,7 @@
131131 // TTXCloseTCP -- セッション終了時処理
132132 // Psend のフックを解除する。
133133 //
134-static void PASCAL FAR TTXCloseTCP(TTXSockHooks *hooks) {
134+static void PASCAL TTXCloseTCP(TTXSockHooks *hooks) {
135135 if (pvar->origPsend) {
136136 *hooks->Psend = pvar->origPsend;
137137 }
@@ -156,7 +156,7 @@
156156 NULL, // TTXCloseFile
157157 };
158158
159-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
159+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
160160 int size = sizeof(Exports) - sizeof(exports->size);
161161 /* do version checking if necessary */
162162 /* if (Version!=TTVERSION) return FALSE; */
--- trunk/TTXSamples/TTXKcodeChange/TTXKcodeChange.c (revision 6859)
+++ trunk/TTXSamples/TTXKcodeChange/TTXKcodeChange.c (revision 6860)
@@ -41,7 +41,7 @@
4141 static TInstVar *pvar;
4242 static TInstVar InstVar;
4343
44-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
44+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
4545 pvar->ts = ts;
4646 pvar->cv = cv;
4747 pvar->config[0] = NULL;
@@ -322,7 +322,7 @@
322322 }
323323 }
324324
325-int PASCAL FAR TTXrecv(SOCKET s, char *buff, int len, int flags) {
325+int PASCAL TTXrecv(SOCKET s, char *buff, int len, int flags) {
326326 int rlen;
327327
328328 if ((rlen = pvar->origPrecv(s, buff, len, flags)) > 0) {
@@ -331,7 +331,7 @@
331331 return rlen;
332332 }
333333
334-BOOL PASCAL FAR TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, LPOVERLAPPED rol) {
334+BOOL PASCAL TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, LPOVERLAPPED rol) {
335335 BOOL result;
336336
337337 if ((result = pvar->origPReadFile(fh, buff, len, rbytes, rol)) != FALSE)
@@ -339,23 +339,23 @@
339339 return result;
340340 }
341341
342-static void PASCAL FAR TTXOpenTCP(TTXSockHooks *hooks) {
342+static void PASCAL TTXOpenTCP(TTXSockHooks *hooks) {
343343 pvar->origPrecv = *hooks->Precv;
344344 *hooks->Precv = TTXrecv;
345345 }
346346
347-static void PASCAL FAR TTXCloseTCP(TTXSockHooks *hooks) {
347+static void PASCAL TTXCloseTCP(TTXSockHooks *hooks) {
348348 if (pvar->origPrecv) {
349349 *hooks->Precv = pvar->origPrecv;
350350 }
351351 }
352352
353-static void PASCAL FAR TTXOpenFile(TTXFileHooks *hooks) {
353+static void PASCAL TTXOpenFile(TTXFileHooks *hooks) {
354354 pvar->origPReadFile = *hooks->PReadFile;
355355 *hooks->PReadFile = TTXReadFile;
356356 }
357357
358-static void PASCAL FAR TTXCloseFile(TTXFileHooks *hooks) {
358+static void PASCAL TTXCloseFile(TTXFileHooks *hooks) {
359359 if (pvar->origPReadFile) {
360360 *hooks->PReadFile = pvar->origPReadFile;
361361 }
@@ -380,7 +380,7 @@
380380 TTXCloseFile
381381 };
382382
383-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
383+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
384384 int size = sizeof(Exports) - sizeof(exports->size);
385385
386386 if (size > exports->size) {
--- trunk/TTXSamples/TTXCallSysMenu/TTXCallSysMenu.c (revision 6859)
+++ trunk/TTXSamples/TTXCallSysMenu/TTXCallSysMenu.c (revision 6860)
@@ -20,7 +20,7 @@
2020 static TInstVar *pvar;
2121 static TInstVar InstVar;
2222
23-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
23+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
2424 if (cmd==MENU_ID) {
2525 PostMessage(hWin, WM_SYSCOMMAND, SC_KEYMENU, MAKELPARAM(0x20, 0));
2626 return 1;
@@ -48,7 +48,7 @@
4848 NULL, // TTXCloseFile
4949 };
5050
51-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
51+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
5252 int size = sizeof(Exports) - sizeof(exports->size);
5353 /* do version checking if necessary */
5454 /* if (Version!=TTVERSION) return FALSE; */
--- trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c (revision 6859)
+++ trunk/TTXSamples/TTXRecurringCommand/TTXRecurringCommand.c (revision 6860)
@@ -258,7 +258,7 @@
258258 //
259259 // TTXInit -- 起動時処理
260260 //
261-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
261+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
262262 pvar->ts = ts;
263263 pvar->cv = cv;
264264 pvar->origPsend = NULL;
@@ -272,7 +272,7 @@
272272 // TTXSend, TTXWriteFile -- キー入力処理
273273 // キー入力があったら、タイマを延長する
274274 //
275-static int PASCAL FAR TTXsend(SOCKET s, const char *buf, int len, int flags) {
275+static int PASCAL TTXsend(SOCKET s, const char *buf, int len, int flags) {
276276 if (pvar->enable && len > 0) {
277277 SetTimer(pvar->cv->HWin, IdRecurringTimer, pvar->interval * 1000, RecurringTimerProc);
278278 }
@@ -279,7 +279,7 @@
279279 return pvar->origPsend(s, buf, len, flags);
280280 }
281281
282-static BOOL PASCAL FAR TTXWriteFile(HANDLE fh, LPCVOID buff, DWORD len, LPDWORD wbytes, LPOVERLAPPED wol) {
282+static BOOL PASCAL TTXWriteFile(HANDLE fh, LPCVOID buff, DWORD len, LPDWORD wbytes, LPOVERLAPPED wol) {
283283 if (pvar->enable && len > 0) {
284284 SetTimer(pvar->cv->HWin, IdRecurringTimer, pvar->interval * 1000, RecurringTimerProc);
285285 }
@@ -290,7 +290,7 @@
290290 // TTXOpenTCP, TTXOpenFile -- セッション開始処理
291291 // Psend, WriteFileをフックし、有効ならばタイマをセットする。
292292 //
293-static void PASCAL FAR TTXOpenTCP(TTXSockHooks *hooks) {
293+static void PASCAL TTXOpenTCP(TTXSockHooks *hooks) {
294294 pvar->origPsend = *hooks->Psend;
295295 *hooks->Psend = TTXsend;
296296
@@ -299,7 +299,7 @@
299299 }
300300 }
301301
302-static void PASCAL FAR TTXOpenFile(TTXFileHooks *hooks) {
302+static void PASCAL TTXOpenFile(TTXFileHooks *hooks) {
303303 pvar->origPWriteFile = *hooks->PWriteFile;
304304 *hooks->PWriteFile = TTXWriteFile;
305305
@@ -312,7 +312,7 @@
312312 // TTXCloseTCP, TTXCloseFile -- セッション終了時処理
313313 // Psend, WriteFileのフックを解除し、タイマを止める。
314314 //
315-static void PASCAL FAR TTXCloseTCP(TTXSockHooks *hooks) {
315+static void PASCAL TTXCloseTCP(TTXSockHooks *hooks) {
316316 if (pvar->origPsend) {
317317 *hooks->Psend = pvar->origPsend;
318318 }
@@ -319,7 +319,7 @@
319319 KillTimer(pvar->cv->HWin, IdRecurringTimer);
320320 }
321321
322-static void PASCAL FAR TTXCloseFile(TTXFileHooks *hooks) {
322+static void PASCAL TTXCloseFile(TTXFileHooks *hooks) {
323323 if (pvar->origPWriteFile) {
324324 *hooks->PWriteFile = pvar->origPWriteFile;
325325 }
@@ -365,7 +365,7 @@
365365 pvar->enable = GetOnOff(SECTION, "Enable", sect, FALSE);
366366 }
367367
368-static void PASCAL FAR TTXReadIniFile(PCHAR fn, PTTSet ts) {
368+static void PASCAL TTXReadIniFile(PCHAR fn, PTTSet ts) {
369369 pvar->origReadIniFile(fn, ts);
370370 ReadINI(fn, ts);
371371
@@ -372,7 +372,7 @@
372372 return;
373373 }
374374
375-static void PASCAL FAR TTXWriteIniFile(PCHAR fn, PTTSet ts) {
375+static void PASCAL TTXWriteIniFile(PCHAR fn, PTTSet ts) {
376376 char buff[20];
377377
378378 pvar->origWriteIniFile(fn, ts);
@@ -395,7 +395,7 @@
395395 // /F= による設定ファイルの切り替えのみ対応。
396396 //
397397
398-static void PASCAL FAR TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
398+static void PASCAL TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
399399 char buff[1024];
400400 PCHAR next;
401401 pvar->origParseParam(Param, ts, DDETopic);
@@ -411,7 +411,7 @@
411411 return;
412412 }
413413
414-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
414+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
415415 pvar->origReadIniFile = *hooks->ReadIniFile;
416416 *hooks->ReadIniFile = TTXReadIniFile;
417417
@@ -428,7 +428,7 @@
428428 // メニュー処理
429429 // コントロールメニューにRecurringCommandを追加。
430430 //
431-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
431+static void PASCAL TTXModifyMenu(HMENU menu) {
432432 UINT flag = MF_BYCOMMAND | MF_STRING | MF_ENABLED;
433433
434434 pvar->SetupMenu = GetSetupMenu(menu);
@@ -449,7 +449,7 @@
449449 InsertMenu(pvar->ControlMenu, ID_CONTROL_MACRO, MF_BYCOMMAND | MF_SEPARATOR, 0, NULL);
450450 }
451451
452-static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) {
452+static void PASCAL TTXModifyPopupMenu(HMENU menu) {
453453 if (menu==pvar->ControlMenu) {
454454 if (pvar->enable) {
455455 CheckMenuItem(pvar->ControlMenu, ID_MENU_CONTROL, MF_BYCOMMAND | MF_CHECKED);
@@ -568,7 +568,7 @@
568568 //
569569 // メニューコマンド処理
570570 //
571-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
571+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
572572 switch (cmd) {
573573 case ID_MENU_SETUP:
574574 switch (DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_SETUP_RECURRINGCOMMAND),
@@ -632,7 +632,7 @@
632632 TTXCloseFile
633633 };
634634
635-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
635+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
636636 int size = sizeof(Exports) - sizeof(exports->size);
637637 /* do version checking if necessary */
638638 /* if (Version!=TTVERSION) return FALSE; */
--- trunk/TTXSamples/TTXFixedWinSize/TTXFixedWinSize.c (revision 6859)
+++ trunk/TTXSamples/TTXFixedWinSize/TTXFixedWinSize.c (revision 6860)
@@ -26,7 +26,7 @@
2626 static TInstVar *pvar;
2727 static TInstVar InstVar;
2828
29-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
29+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
3030 pvar->ts = ts;
3131 pvar->cv = cv;
3232
@@ -35,7 +35,7 @@
3535 pvar->origReadIniFile = NULL;
3636 }
3737
38-static BOOL FAR PASCAL FixedSizeSetupTerminalDlg(HWND parent, PTTSet ts) {
38+static BOOL PASCAL FixedSizeSetupTerminalDlg(HWND parent, PTTSet ts) {
3939 BOOL ret;
4040 if (pvar->sizeModify) {
4141 pvar->ts->TerminalWidth = WIDTH;
@@ -54,23 +54,23 @@
5454 return ret;
5555 }
5656
57-static void PASCAL FAR TTXGetUIHooks(TTXUIHooks *hooks) {
57+static void PASCAL TTXGetUIHooks(TTXUIHooks *hooks) {
5858 pvar->origSetupTerminalDlg = *hooks->SetupTerminal;
5959 *hooks->SetupTerminal = FixedSizeSetupTerminalDlg;
6060 }
6161
62-static void PASCAL FAR FixedSizeReadIniFile(PCHAR fn, PTTSet ts) {
62+static void PASCAL FixedSizeReadIniFile(PCHAR fn, PTTSet ts) {
6363 (pvar->origReadIniFile)(fn, ts);
6464 ts->TerminalWidth = WIDTH;
6565 ts->TerminalHeight = HEIGHT;
6666 }
6767
68-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
68+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
6969 pvar->origReadIniFile = *hooks->ReadIniFile;
7070 *hooks->ReadIniFile = FixedSizeReadIniFile;
7171 }
7272
73-static void PASCAL FAR TTXSetWinSize(int rows, int cols) {
73+static void PASCAL TTXSetWinSize(int rows, int cols) {
7474 if (rows != HEIGHT || cols != WIDTH) {
7575 pvar->sizeModify = TRUE;
7676 // Call Setup-Terminal dialog
@@ -94,7 +94,7 @@
9494 NULL, // TTXEnd
9595 };
9696
97-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
97+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
9898 int size = sizeof(Exports) - sizeof(exports->size);
9999
100100 if (size > exports->size) {
--- trunk/TTXSamples/TTXCommandLineOpt/TTXCommandLineOpt.c (revision 6859)
+++ trunk/TTXSamples/TTXCommandLineOpt/TTXCommandLineOpt.c (revision 6860)
@@ -20,7 +20,7 @@
2020 static TInstVar *pvar;
2121 static TInstVar InstVar;
2222
23-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
23+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
2424 pvar->ts = ts;
2525 pvar->cv = cv;
2626 }
@@ -54,7 +54,7 @@
5454 return TRUE;
5555 }
5656
57-static void PASCAL FAR TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
57+static void PASCAL TTXParseParam(PCHAR Param, PTTSet ts, PCHAR DDETopic) {
5858 char buff[1024];
5959 PCHAR start, cur, next;
6060 int x, y;
@@ -85,7 +85,7 @@
8585 pvar->origParseParam(Param, ts, DDETopic);
8686 }
8787
88-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks *hooks) {
88+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
8989 pvar->origParseParam = *hooks->ParseParam;
9090 *hooks->ParseParam = TTXParseParam;
9191 }
@@ -106,7 +106,7 @@
106106 NULL, // TTXEnd
107107 };
108108
109-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports *exports) {
109+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
110110 int size = sizeof(Exports) - sizeof(exports->size);
111111
112112 if (size > exports->size) {
Show on old repository browser