メニューからTeraPadを起動できるようになります。
Revision | 71cbef67b4b81f382db64f5fbe54e8b5dcf0a50b (tree) |
---|---|
Zeit | 2019-08-26 16:03:42 |
Autor | IWAMOTO Kouichi <sue@iwmt...> |
Commiter | IWAMOTO Kouichi |
Eliminate FAR keyword.
@@ -46,7 +46,7 @@ typedef struct { | ||
46 | 46 | char TeraPadPath[MAX_PATH]; |
47 | 47 | } TInstVar; |
48 | 48 | |
49 | -static TInstVar FAR * pvar; | |
49 | +static TInstVar *pvar; | |
50 | 50 | |
51 | 51 | /* WIN32 allows multiple instances of a DLL */ |
52 | 52 | static TInstVar InstVar; |
@@ -73,7 +73,7 @@ HMENU GetSubMenuByChildID(HMENU menu, UINT id) { | ||
73 | 73 | return NULL; |
74 | 74 | } |
75 | 75 | |
76 | -static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) { | |
76 | +static void PASCAL TTXInit(PTTSet ts, PComVar cv) { | |
77 | 77 | HKEY key; |
78 | 78 | char buff[MAX_PATH]; |
79 | 79 | DWORD type; |
@@ -94,7 +94,7 @@ static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) { | ||
94 | 94 | } |
95 | 95 | } |
96 | 96 | |
97 | -static void PASCAL FAR TTXModifyMenu(HMENU menu) { | |
97 | +static void PASCAL TTXModifyMenu(HMENU menu) { | |
98 | 98 | pvar->ControlMenu = GetControlMenu(menu); |
99 | 99 | |
100 | 100 | if (pvar->TeraPadPath[0]) { |
@@ -103,7 +103,7 @@ static void PASCAL FAR TTXModifyMenu(HMENU menu) { | ||
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
106 | -static int PASCAL FAR TTXProcessCommand(HWND HWin, WORD cmd) { | |
106 | +static int PASCAL TTXProcessCommand(HWND HWin, WORD cmd) { | |
107 | 107 | STARTUPINFO si; |
108 | 108 | PROCESS_INFORMATION pi; |
109 | 109 |
@@ -134,14 +134,14 @@ static TTXExports Exports = { | ||
134 | 134 | NULL, // TTXEnd |
135 | 135 | }; |
136 | 136 | |
137 | -BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports FAR * exports) { | |
137 | +BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) { | |
138 | 138 | int size = sizeof(Exports) - sizeof(exports->size); |
139 | 139 | |
140 | 140 | if (size > exports->size) { |
141 | 141 | size = exports->size; |
142 | 142 | } |
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), | |
145 | 145 | size); |
146 | 146 | return TRUE; |
147 | 147 | } |