• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscapheguic翻訳omegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

Tera TermにCD-ROM取り出し機能を追加します。


Commit MetaInfo

Revisão8bfa3a094bc6f38ae9b19100c1b8603effc84610 (tree)
Hora2019-08-26 16:00:59
AutorIWAMOTO Kouichi <sue@iwmt...>
CommiterIWAMOTO Kouichi

Mensagem de Log

Eliminate FAR keyword.

Mudança Sumário

Diff

--- a/TTXEject.c
+++ b/TTXEject.c
@@ -68,7 +68,7 @@ typedef struct {
6868 int Pin;
6969 } TInstVar;
7070
71-static TInstVar FAR * pvar;
71+static TInstVar *pvar;
7272 static TInstVar InstVar;
7373
7474 #define GetFileMenu(menu) GetSubMenuByChildID(menu, ID_FILE_NEWCONNECTION)
@@ -97,7 +97,7 @@ HMENU GetSubMenuByChildID(HMENU menu, UINT id) {
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->origPrecv = NULL;
@@ -106,12 +106,12 @@ static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
106106 pvar->origPWriteFile = NULL;
107107 }
108108
109-static void PASCAL FAR TTXReadIniFile(PCHAR fn, PTTSet ts) {
109+static void PASCAL TTXReadIniFile(PCHAR fn, PTTSet ts) {
110110 (pvar->origReadIniFile)(fn, ts);
111111 pvar->Pin = GetPrivateProfileInt(INISECTION, "Pin", 0, fn);
112112 }
113113
114-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks FAR * hooks) {
114+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
115115 pvar->origReadIniFile = *hooks->ReadIniFile;
116116 *hooks->ReadIniFile = TTXReadIniFile;
117117 }
@@ -207,7 +207,7 @@ void ParseInputStr(unsigned char *rstr, int rcount) {
207207 }
208208 }
209209
210-int PASCAL FAR TTXrecv(SOCKET s, char FAR *buff, int len, int flags) {
210+int PASCAL TTXrecv(SOCKET s, char *buff, int len, int flags) {
211211 int rlen;
212212
213213 if ((rlen = pvar->origPrecv(s, buff, len, flags)) > 0) {
@@ -216,7 +216,7 @@ int PASCAL FAR TTXrecv(SOCKET s, char FAR *buff, int len, int flags) {
216216 return rlen;
217217 }
218218
219-BOOL PASCAL FAR TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, LPOVERLAPPED rol) {
219+BOOL PASCAL TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, LPOVERLAPPED rol) {
220220 BOOL result;
221221
222222 if ((result = pvar->origPReadFile(fh, buff, len, rbytes, rol)) != FALSE)
@@ -224,35 +224,35 @@ BOOL PASCAL FAR TTXReadFile(HANDLE fh, LPVOID buff, DWORD len, LPDWORD rbytes, L
224224 return result;
225225 }
226226
227-static void PASCAL FAR TTXOpenTCP(TTXSockHooks FAR * hooks) {
227+static void PASCAL TTXOpenTCP(TTXSockHooks *hooks) {
228228 if (pvar->Pin > 0) {
229229 pvar->origPrecv = *hooks->Precv;
230230 *hooks->Precv = TTXrecv;
231231 }
232232 }
233233
234-static void PASCAL FAR TTXCloseTCP(TTXSockHooks FAR * hooks) {
234+static void PASCAL TTXCloseTCP(TTXSockHooks *hooks) {
235235 if (pvar->origPrecv) {
236236 *hooks->Precv = pvar->origPrecv;
237237 pvar->origPrecv = NULL;
238238 }
239239 }
240240
241-static void PASCAL FAR TTXOpenFile(TTXFileHooks FAR * hooks) {
241+static void PASCAL TTXOpenFile(TTXFileHooks *hooks) {
242242 if (pvar->Pin > 0) {
243243 pvar->origPReadFile = *hooks->PReadFile;
244244 *hooks->PReadFile = TTXReadFile;
245245 }
246246 }
247247
248-static void PASCAL FAR TTXCloseFile(TTXFileHooks FAR * hooks) {
248+static void PASCAL TTXCloseFile(TTXFileHooks *hooks) {
249249 if (pvar->origPReadFile) {
250250 *hooks->PReadFile = pvar->origPReadFile;
251251 pvar->origPReadFile = NULL;
252252 }
253253 }
254254
255-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
255+static void PASCAL TTXModifyMenu(HMENU menu) {
256256 HMENU ControlMenu;
257257 // uint flag = MF_BYCOMMAND | MF_STRING | MF_ENABLED;
258258
@@ -262,7 +262,7 @@ static void PASCAL FAR TTXModifyMenu(HMENU menu) {
262262 InsertMenu(ControlMenu, ID_CONTROL_MACRO, MF_BYCOMMAND | MF_SEPARATOR, 0, NULL);
263263 }
264264
265-static int PASCAL FAR TTXProcessCommand(HWND hWin, WORD cmd) {
265+static int PASCAL TTXProcessCommand(HWND hWin, WORD cmd) {
266266 if (cmd == MENUID) {
267267 EjectTray();
268268 return 1;
@@ -289,14 +289,14 @@ static TTXExports Exports = {
289289 TTXCloseFile
290290 };
291291
292-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports FAR * exports) {
292+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
293293 int size = sizeof(Exports) - sizeof(exports->size);
294294
295295 if (size > exports->size) {
296296 size = exports->size;
297297 }
298- memcpy((char FAR *)exports + sizeof(exports->size),
299- (char FAR *)&Exports + sizeof(exports->size),
298+ memcpy((char *)exports + sizeof(exports->size),
299+ (char *)&Exports + sizeof(exports->size),
300300 size);
301301 return TRUE;
302302 }