• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

Tera Termの色設定をセットで切り替えます。


Commit MetaInfo

Revisão18149e4c60e82eab2a1c2cac1d7bc29041b735ab (tree)
Hora2019-08-26 15:59:45
AutorIWAMOTO Kouichi <sue@iwmt...>
CommiterIWAMOTO Kouichi

Mensagem de Log

Eliminate FAR keyword.

Mudança Sumário

Diff

--- a/TTXColorTheme.c
+++ b/TTXColorTheme.c
@@ -76,7 +76,7 @@ typedef struct {
7676 TColorTheme ThemeList[MAX_MENU_ITEMS];
7777 } TInstVar;
7878
79-static TInstVar FAR * pvar;
79+static TInstVar *pvar;
8080
8181 /* WIN32 allows multiple instances of a DLL */
8282 static TInstVar InstVar;
@@ -162,7 +162,7 @@ void InitMenu() {
162162 }
163163 }
164164
165-static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
165+static void PASCAL TTXInit(PTTSet ts, PComVar cv) {
166166 pvar->ts = ts;
167167 pvar->cv = cv;
168168 pvar->ReplaceWinDlg = FALSE;
@@ -170,12 +170,12 @@ static void PASCAL FAR TTXInit(PTTSet ts, PComVar cv) {
170170 pvar->MenuItems = 0;
171171 }
172172
173-static BOOL FAR PASCAL TTXSetupWin(HWND parent, PTTSet ts) {
173+static BOOL PASCAL TTXSetupWin(HWND parent, PTTSet ts) {
174174 pvar->ReplaceWinDlg = FALSE;
175175 return (TRUE);
176176 }
177177
178-static void PASCAL FAR TTXGetUIHooks(TTXUIHooks FAR * hooks) {
178+static void PASCAL TTXGetUIHooks(TTXUIHooks *hooks) {
179179 if (pvar->ReplaceWinDlg) {
180180 *hooks->SetupWin = TTXSetupWin;
181181 }
@@ -243,7 +243,7 @@ void GetDefaultColor(TColorSetting *tc, COLORREF *color, int field, PTTSet ts) {
243243 return;
244244 }
245245
246-static void PASCAL FAR ColorThemeReadIniFile(PCHAR fn, PTTSet ts) {
246+static void PASCAL ColorThemeReadIniFile(PCHAR fn, PTTSet ts) {
247247 int i;
248248 char Key[20];
249249
@@ -280,12 +280,12 @@ static void PASCAL FAR ColorThemeReadIniFile(PCHAR fn, PTTSet ts) {
280280 pvar->MenuItems = i;
281281 }
282282
283-static void PASCAL FAR TTXGetSetupHooks(TTXSetupHooks FAR * hooks) {
283+static void PASCAL TTXGetSetupHooks(TTXSetupHooks *hooks) {
284284 pvar->origReadIniFile = *hooks->ReadIniFile;
285285 *hooks->ReadIniFile = ColorThemeReadIniFile;
286286 }
287287
288-static void PASCAL FAR TTXModifyMenu(HMENU menu) {
288+static void PASCAL TTXModifyMenu(HMENU menu) {
289289 MENUITEMINFO mi;
290290
291291 pvar->SetupMenu = GetSetupMenu(menu);
@@ -304,14 +304,14 @@ static void PASCAL FAR TTXModifyMenu(HMENU menu) {
304304 }
305305
306306 /*
307-static void PASCAL FAR TTXModifyPopupMenu(HMENU menu) {
307+static void PASCAL TTXModifyPopupMenu(HMENU menu) {
308308 if (menu == pvar->ResizeMenu) {
309309 UpdateMenu();
310310 }
311311 }
312312 */
313313
314-static int PASCAL FAR TTXProcessCommand(HWND HWin, WORD cmd) {
314+static int PASCAL TTXProcessCommand(HWND HWin, WORD cmd) {
315315 int num, i;
316316 TColorTheme *theme;
317317 if (ID_MENUID_BASE <= cmd && cmd <= ID_MENUID_BASE + pvar->MenuItems) {
@@ -402,14 +402,14 @@ static TTXExports Exports = {
402402 NULL, // TTXEnd
403403 };
404404
405-BOOL __declspec(dllexport) PASCAL FAR TTXBind(WORD Version, TTXExports FAR * exports) {
405+BOOL __declspec(dllexport) PASCAL TTXBind(WORD Version, TTXExports *exports) {
406406 int size = sizeof(Exports) - sizeof(exports->size);
407407
408408 if (size > exports->size) {
409409 size = exports->size;
410410 }
411- memcpy((char FAR *)exports + sizeof(exports->size),
412- (char FAR *)&Exports + sizeof(exports->size),
411+ memcpy((char *)exports + sizeof(exports->size),
412+ (char *)&Exports + sizeof(exports->size),
413413 size);
414414 return TRUE;
415415 }