• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

メニューからTeraPadを起動できるようになります。


Commit MetaInfo

修订版71cbef67b4b81f382db64f5fbe54e8b5dcf0a50b (tree)
时间2019-08-26 16:03:42
作者IWAMOTO Kouichi <sue@iwmt...>
CommiterIWAMOTO Kouichi

Log Message

Eliminate FAR keyword.

更改概述

差异

--- a/TTXTeraPad.c
+++ b/TTXTeraPad.c
@@ -46,7 +46,7 @@ typedef struct {
4646 char TeraPadPath[MAX_PATH];
4747 } TInstVar;
4848
49-static TInstVar FAR * pvar;
49+static TInstVar *pvar;
5050
5151 /* WIN32 allows multiple instances of a DLL */
5252 static TInstVar InstVar;
@@ -73,7 +73,7 @@ HMENU GetSubMenuByChildID(HMENU menu, UINT id) {
7373 return NULL;
7474 }
7575
76-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
76+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
7777 HKEY key;
7878 char buff[MAX_PATH];
7979 DWORD type;
@@ -94,7 +94,7 @@ static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
9494 }
9595 }
9696
97-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
97+static void PASCAL TTXModifyMenu(HMENU menu) {
9898 pvar->ControlMenu = GetControlMenu(menu);
9999
100100 if (pvar->TeraPadPath[0]) {
@@ -103,7 +103,7 @@ static void PASCAL FAR TTXModifyMenu(HMENU menu) {
103103 }
104104 }
105105
106-static int PASCAL FAR TTXProcessCommand(HWND HWin, WORD cmd) {
106+static int PASCAL TTXProcessCommand(HWND HWin, WORD cmd) {
107107 STARTUPINFO si;
108108 PROCESS_INFORMATION pi;
109109
@@ -134,14 +134,14 @@ static TTXExports Exports = {
134134 NULL, // TTXEnd
135135 };
136136
137-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports FAR * exports) {
137+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
138138 int size = sizeof(Exports) - sizeof(exports->size);
139139
140140 if (size > exports->size) {
141141 size = exports->size;
142142 }
143- memcpy((char FAR *)exports + sizeof(exports->size),
144- (char FAR *)&Exports + sizeof(exports->size),
143+ memcpy((char *)exports + sizeof(exports->size),
144+ (char *)&Exports + sizeof(exports->size),
145145 size);
146146 return TRUE;
147147 }