Mercurial > vim
comparison src/ex_docmd.c @ 11:4424b47a0797
updated for version 7.0003
author | vimboss |
---|---|
date | Wed, 30 Jun 2004 16:16:41 +0000 |
parents | 4102fb4ea781 |
children | 946da5994c01 |
comparison
equal
deleted
inserted
replaced
10:4e2284e71352 | 11:4424b47a0797 |
---|---|
195 #if defined(FEAT_GUI_W32) && defined(FEAT_MENU) && defined(FEAT_TEAROFF) | 195 #if defined(FEAT_GUI_W32) && defined(FEAT_MENU) && defined(FEAT_TEAROFF) |
196 static void ex_tearoff __ARGS((exarg_T *eap)); | 196 static void ex_tearoff __ARGS((exarg_T *eap)); |
197 #else | 197 #else |
198 # define ex_tearoff ex_ni | 198 # define ex_tearoff ex_ni |
199 #endif | 199 #endif |
200 #if (defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_GTK)) && defined(FEAT_MENU) | 200 #if (defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_KDE) || defined(FEAT_GUI_GTK)) && defined(FEAT_MENU) |
201 static void ex_popup __ARGS((exarg_T *eap)); | 201 static void ex_popup __ARGS((exarg_T *eap)); |
202 #else | 202 #else |
203 # define ex_popup ex_ni | 203 # define ex_popup ex_ni |
204 #endif | 204 #endif |
205 #ifndef FEAT_GUI_MSWIN | 205 #ifndef FEAT_GUI_MSWIN |
206 # define ex_simalt ex_ni | 206 # define ex_simalt ex_ni |
207 #endif | 207 #endif |
208 #if !defined(FEAT_GUI_MSWIN) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MOTIF) | 208 #if !defined(FEAT_GUI_MSWIN) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MOTIF) && !defined(FEAT_GUI_KDE) |
209 # define gui_mch_find_dialog ex_ni | 209 # define gui_mch_find_dialog ex_ni |
210 # define gui_mch_replace_dialog ex_ni | 210 # define gui_mch_replace_dialog ex_ni |
211 #endif | 211 #endif |
212 #ifndef FEAT_GUI_GTK | 212 #if !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_KDE) |
213 # define ex_helpfind ex_ni | 213 # define ex_helpfind ex_ni |
214 #endif | 214 #endif |
215 #ifndef FEAT_CSCOPE | 215 #ifndef FEAT_CSCOPE |
216 # define do_cscope ex_ni | 216 # define do_cscope ex_ni |
217 # define do_scscope ex_ni | 217 # define do_scscope ex_ni |
256 #ifdef FEAT_WINDOWS | 256 #ifdef FEAT_WINDOWS |
257 static void ex_wincmd __ARGS((exarg_T *eap)); | 257 static void ex_wincmd __ARGS((exarg_T *eap)); |
258 #else | 258 #else |
259 # define ex_wincmd ex_ni | 259 # define ex_wincmd ex_ni |
260 #endif | 260 #endif |
261 #if defined(FEAT_GUI) || defined(UNIX) || defined(VMS) | 261 #if defined(FEAT_GUI) || defined(UNIX) || defined(VMS) || defined(MSWIN) |
262 static void ex_winpos __ARGS((exarg_T *eap)); | 262 static void ex_winpos __ARGS((exarg_T *eap)); |
263 #else | 263 #else |
264 # define ex_winpos ex_ni | 264 # define ex_winpos ex_ni |
265 #endif | 265 #endif |
266 static void ex_operators __ARGS((exarg_T *eap)); | 266 static void ex_operators __ARGS((exarg_T *eap)); |
6717 { | 6717 { |
6718 gui_make_tearoff(eap->arg); | 6718 gui_make_tearoff(eap->arg); |
6719 } | 6719 } |
6720 #endif | 6720 #endif |
6721 | 6721 |
6722 #if (defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_GTK)) && defined(FEAT_MENU) | 6722 #if (defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_KDE) || defined(FEAT_GUI_GTK)) && defined(FEAT_MENU) |
6723 static void | 6723 static void |
6724 ex_popup(eap) | 6724 ex_popup(eap) |
6725 exarg_T *eap; | 6725 exarg_T *eap; |
6726 { | 6726 { |
6727 gui_make_popup(eap->arg); | 6727 gui_make_popup(eap->arg); |
7106 postponed_split_flags = 0; | 7106 postponed_split_flags = 0; |
7107 } | 7107 } |
7108 } | 7108 } |
7109 #endif | 7109 #endif |
7110 | 7110 |
7111 #if defined(FEAT_GUI) || defined(UNIX) || defined(VMS) | 7111 #if defined(FEAT_GUI) || defined(UNIX) || defined(VMS) || defined(MSWIN) |
7112 /* | 7112 /* |
7113 * ":winpos". | 7113 * ":winpos". |
7114 */ | 7114 */ |
7115 static void | 7115 static void |
7116 ex_winpos(eap) | 7116 ex_winpos(eap) |
7120 char_u *arg = eap->arg; | 7120 char_u *arg = eap->arg; |
7121 char_u *p; | 7121 char_u *p; |
7122 | 7122 |
7123 if (*arg == NUL) | 7123 if (*arg == NUL) |
7124 { | 7124 { |
7125 # ifdef FEAT_GUI | 7125 # if defined(FEAT_GUI) || defined(MSWIN) |
7126 # ifdef FEAT_GUI | |
7126 if (gui.in_use && gui_mch_get_winpos(&x, &y) != FAIL) | 7127 if (gui.in_use && gui_mch_get_winpos(&x, &y) != FAIL) |
7128 # else | |
7129 if (mch_get_winpos(&x, &y) != FAIL) | |
7130 # endif | |
7127 { | 7131 { |
7128 sprintf((char *)IObuff, _("Window position: X %d, Y %d"), x, y); | 7132 sprintf((char *)IObuff, _("Window position: X %d, Y %d"), x, y); |
7129 msg(IObuff); | 7133 msg(IObuff); |
7130 } | 7134 } |
7131 else | 7135 else |
7152 gui_win_x = x; | 7156 gui_win_x = x; |
7153 gui_win_y = y; | 7157 gui_win_y = y; |
7154 } | 7158 } |
7155 # ifdef HAVE_TGETENT | 7159 # ifdef HAVE_TGETENT |
7156 else | 7160 else |
7161 # endif | |
7162 # else | |
7163 # ifdef MSWIN | |
7164 mch_set_winpos(x, y); | |
7157 # endif | 7165 # endif |
7158 # endif | 7166 # endif |
7159 # ifdef HAVE_TGETENT | 7167 # ifdef HAVE_TGETENT |
7160 if (*T_CWP) | 7168 if (*T_CWP) |
7161 term_set_winpos(x, y); | 7169 term_set_winpos(x, y); |