comparison src/memline.c @ 9536:b2aada04d84e v7.4.2048

commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 16 14:47:36 2016 +0200 patch 7.4.2048 Problem: There is still code and help for unsupported systems. Solution: Remove the code and text. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Jul 2016 15:00:07 +0200
parents f094d4085014
children fd9727ae3c49
comparison
equal deleted inserted replaced
9535:eb813d0c8346 9536:b2aada04d84e
2036 } 2036 }
2037 return d; 2037 return d;
2038 } 2038 }
2039 #endif 2039 #endif
2040 2040
2041 #if (defined(UNIX) || defined(__EMX__) || defined(VMS)) && (defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)) 2041 #if (defined(UNIX) || defined(VMS)) && (defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG))
2042 static int process_still_running; 2042 static int process_still_running;
2043 #endif 2043 #endif
2044 2044
2045 /* 2045 /*
2046 * Give information about an existing swap file. 2046 * Give information about an existing swap file.
2124 2124
2125 if (char_to_long(b0.b0_pid) != 0L) 2125 if (char_to_long(b0.b0_pid) != 0L)
2126 { 2126 {
2127 MSG_PUTS(_("\n process ID: ")); 2127 MSG_PUTS(_("\n process ID: "));
2128 msg_outnum(char_to_long(b0.b0_pid)); 2128 msg_outnum(char_to_long(b0.b0_pid));
2129 #if defined(UNIX) || defined(__EMX__) 2129 #if defined(UNIX)
2130 /* EMX kill() not working correctly, it seems */ 2130 /* EMX kill() not working correctly, it seems */
2131 if (kill((pid_t)char_to_long(b0.b0_pid), 0) == 0) 2131 if (kill((pid_t)char_to_long(b0.b0_pid), 0) == 0)
2132 { 2132 {
2133 MSG_PUTS(_(" (still running)")); 2133 MSG_PUTS(_(" (still running)"));
2134 # if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG) 2134 # if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
4443 mch_remove(buf_fname); 4443 mch_remove(buf_fname);
4444 did_use_dummy = TRUE; 4444 did_use_dummy = TRUE;
4445 } 4445 }
4446 #endif 4446 #endif
4447 4447
4448 #if (defined(UNIX) || defined(__EMX__) || defined(VMS)) && (defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)) 4448 #if (defined(UNIX) || defined(VMS)) && (defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG))
4449 process_still_running = FALSE; 4449 process_still_running = FALSE;
4450 #endif 4450 #endif
4451 #ifdef FEAT_AUTOCMD 4451 #ifdef FEAT_AUTOCMD
4452 /* 4452 /*
4453 * If there is an SwapExists autocommand and we can handle 4453 * If there is an SwapExists autocommand and we can handle
4495 choice = do_dialog(VIM_WARNING, 4495 choice = do_dialog(VIM_WARNING,
4496 (char_u *)_("VIM - ATTENTION"), 4496 (char_u *)_("VIM - ATTENTION"),
4497 name == NULL 4497 name == NULL
4498 ? (char_u *)_("Swap file already exists!") 4498 ? (char_u *)_("Swap file already exists!")
4499 : name, 4499 : name,
4500 # if defined(UNIX) || defined(__EMX__) || defined(VMS) 4500 # if defined(UNIX) || defined(VMS)
4501 process_still_running 4501 process_still_running
4502 ? (char_u *)_("&Open Read-Only\n&Edit anyway\n&Recover\n&Quit\n&Abort") : 4502 ? (char_u *)_("&Open Read-Only\n&Edit anyway\n&Recover\n&Quit\n&Abort") :
4503 # endif 4503 # endif
4504 (char_u *)_("&Open Read-Only\n&Edit anyway\n&Recover\n&Delete it\n&Quit\n&Abort"), 1, NULL, FALSE); 4504 (char_u *)_("&Open Read-Only\n&Edit anyway\n&Recover\n&Delete it\n&Quit\n&Abort"), 1, NULL, FALSE);
4505 4505
4506 # if defined(UNIX) || defined(__EMX__) || defined(VMS) 4506 # if defined(UNIX) || defined(VMS)
4507 if (process_still_running && choice >= 4) 4507 if (process_still_running && choice >= 4)
4508 choice++; /* Skip missing "Delete it" button */ 4508 choice++; /* Skip missing "Delete it" button */
4509 # endif 4509 # endif
4510 vim_free(name); 4510 vim_free(name);
4511 4511