Mercurial > vim
comparison src/testing.c @ 27501:378d3f7483e9 v8.2.4278
patch 8.2.4278: build with Athena GUI fails
Commit: https://github.com/vim/vim/commit/4e3b3182307444f205a5f35e257c651f0f3717ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 1 10:16:00 2022 +0000
patch 8.2.4278: build with Athena GUI fails
Problem: Build with Athena GUI fails. (Elimar Riesebieter)
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 01 Feb 2022 11:30:03 +0100 |
parents | 7480a2e2ca0f |
children | 3b2c75c0a7ab |
comparison
equal
deleted
inserted
replaced
27500:0fb94e0df02d | 27501:378d3f7483e9 |
---|---|
1329 # endif | 1329 # endif |
1330 | 1330 |
1331 return TRUE; | 1331 return TRUE; |
1332 } | 1332 } |
1333 | 1333 |
1334 #if defined(FIND_REPLACE_DIALOG) | |
1334 static int | 1335 static int |
1335 test_gui_find_repl(dict_T *args) | 1336 test_gui_find_repl(dict_T *args) |
1336 { | 1337 { |
1337 int flags; | 1338 int flags; |
1338 char_u *find_text; | 1339 char_u *find_text; |
1355 vim_free(find_text); | 1356 vim_free(find_text); |
1356 vim_free(repl_text); | 1357 vim_free(repl_text); |
1357 | 1358 |
1358 return retval; | 1359 return retval; |
1359 } | 1360 } |
1361 #endif | |
1360 | 1362 |
1361 static int | 1363 static int |
1362 test_gui_mouse_event(dict_T *args) | 1364 test_gui_mouse_event(dict_T *args) |
1363 { | 1365 { |
1364 int button; | 1366 int button; |
1474 return; | 1476 return; |
1475 | 1477 |
1476 event = tv_get_string(&argvars[0]); | 1478 event = tv_get_string(&argvars[0]); |
1477 if (STRCMP(event, "dropfiles") == 0) | 1479 if (STRCMP(event, "dropfiles") == 0) |
1478 rettv->vval.v_number = test_gui_drop_files(argvars[1].vval.v_dict); | 1480 rettv->vval.v_number = test_gui_drop_files(argvars[1].vval.v_dict); |
1481 # if defined(FIND_REPLACE_DIALOG) | |
1479 else if (STRCMP(event, "findrepl") == 0) | 1482 else if (STRCMP(event, "findrepl") == 0) |
1480 rettv->vval.v_number = test_gui_find_repl(argvars[1].vval.v_dict); | 1483 rettv->vval.v_number = test_gui_find_repl(argvars[1].vval.v_dict); |
1484 # endif | |
1481 else if (STRCMP(event, "mouse") == 0) | 1485 else if (STRCMP(event, "mouse") == 0) |
1482 rettv->vval.v_number = test_gui_mouse_event(argvars[1].vval.v_dict); | 1486 rettv->vval.v_number = test_gui_mouse_event(argvars[1].vval.v_dict); |
1483 else if (STRCMP(event, "scrollbar") == 0) | 1487 else if (STRCMP(event, "scrollbar") == 0) |
1484 rettv->vval.v_number = test_gui_scrollbar(argvars[1].vval.v_dict); | 1488 rettv->vval.v_number = test_gui_scrollbar(argvars[1].vval.v_dict); |
1485 else if (STRCMP(event, "tabline") == 0) | 1489 else if (STRCMP(event, "tabline") == 0) |