Skip to content

Commit be7529e

Browse files
committed
patch 8.2.1442: outdated references to the Mac Carbon GUI
Problem: Outdated references to the Mac Carbon GUI. Solution: Remove or update references. (Yee Cheng Chin, closes #6703)
1 parent c771908 commit be7529e

9 files changed

Lines changed: 8 additions & 27 deletions

File tree

READMEdir/README_extra.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ src/os_amiga.* Files for the Amiga port.
1616
src/os_msdos.*
1717
src/os_dos.* Files for the MS-DOS port.
1818

19-
src/gui_mac.*
2019
src/os_mac.* Files for the Mac port.
2120

2221
src/os_vms* Files for the VMS port.

src/Makefile

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,6 @@ CClink = $(CC)
375375
#CONF_OPT_GUI = --enable-gui=athena
376376
#CONF_OPT_GUI = --enable-gui=nextaw
377377

378-
# Carbon GUI for Mac OS X
379-
#CONF_OPT_GUI = --enable-gui=carbon
380-
381378
# Uncomment this line to run an individual test with gvim.
382379
#GUI_TESTARG = GUI_FLAG=-g
383380

@@ -3306,9 +3303,6 @@ objects/gui_xim.o: gui_xim.c
33063303
objects/gui_photon.o: gui_photon.c
33073304
$(CCC) -o $@ gui_photon.c
33083305

3309-
objects/gui_mac.o: gui_mac.c
3310-
$(CCC) -o $@ gui_mac.c
3311-
33123306
objects/highlight.o: highlight.c
33133307
$(CCC) -o $@ highlight.c
33143308

@@ -3692,13 +3686,6 @@ bundle-rsrc: os_mac.rsr.hqx
36923686
rm -f gui_mac.rsrc
36933687
mv gui_mac.rsrc.rsrcfork $(RESDIR)/$(VIMNAME).rsrc
36943688

3695-
# po/Make_osx.pl says something about generating a Mac message file
3696-
# for Ukrainian. Would somebody using Mac OS X in Ukrainian
3697-
# *really* be upset that Carbon Vim was not localised in
3698-
# Ukrainian?
3699-
#
3700-
#bundle-language: bundle-dir po/Make_osx.pl
3701-
# cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG)
37023689
bundle-language: bundle-dir
37033690

37043691
$(APPDIR)/Contents:

src/auto/configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9246,8 +9246,7 @@ $as_echo "yes - automatic GUI support" >&6; }
92469246
auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - disable GUI support for Mac OS" >&5
92479247
$as_echo "auto - disable GUI support for Mac OS" >&6; } ;;
92489248
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
9249-
$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
9250-
SKIP_CARBON=YES ;;
9249+
$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
92519250
esac
92529251
else
92539252

src/configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,8 +2433,7 @@ elif test "x$MACOS_X" = "xyes" -a "x$with_x" = "xno" ; then
24332433
yes|"") AC_MSG_RESULT(yes - automatic GUI support)
24342434
gui_auto=yes ;;
24352435
auto) AC_MSG_RESULT(auto - disable GUI support for Mac OS) ;;
2436-
*) AC_MSG_RESULT([Sorry, $enable_gui GUI is not supported])
2437-
SKIP_CARBON=YES ;;
2436+
*) AC_MSG_RESULT([Sorry, $enable_gui GUI is not supported]) ;;
24382437
esac
24392438
else
24402439

src/gui_haiku.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ docd(BPath &path)
654654
drop_callback(void *cookie)
655655
{
656656
// TODO here we could handle going to a specific position in the dropped
657-
// file (see src/gui_mac.c)
657+
// file (see src/gui_mac.c, deleted in 8.2.1422)
658658
// Update the screen display
659659
update_screen(NOT_VALID);
660660
}

src/os_macosx.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@
2929

3030
/*
3131
* Clipboard support for the console.
32-
* Don't include this when building the GUI version, the functions in
33-
* gui_mac.c are used then. TODO: remove those instead?
34-
* But for MacVim we do need these ones.
3532
*/
36-
#if defined(FEAT_CLIPBOARD) && (!defined(FEAT_GUI_ENABLED))
33+
#if defined(FEAT_CLIPBOARD)
3734

3835
/* Used to identify clipboard data copied from Vim. */
3936

src/testdir/test_iminsert.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ endfunc
3737
func Test_getimstatus()
3838
if has('win32')
3939
CheckFeature multi_byte_ime
40-
elseif !has('gui_mac')
40+
else
4141
CheckFeature xim
4242
endif
4343
if has('win32') && has('gui_running')
@@ -87,7 +87,7 @@ func Test_iminsert_toggle()
8787
CheckGui
8888
if has('win32')
8989
CheckFeature multi_byte_ime
90-
elseif !has('gui_mac')
90+
else
9191
CheckFeature xim
9292
endif
9393
if has('gui_running') && !has('win32')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1442,
757759
/**/
758760
1441,
759761
/**/

src/vim.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,8 +2155,6 @@ typedef enum {
21552155
|| !(defined(FEAT_MBYTE_IME) || defined(GLOBAL_IME)))
21562156
// Whether IME is supported by im_get_status() defined in mbyte.c.
21572157
// For Win32 GUI it's in gui_w32.c when FEAT_MBYTE_IME or GLOBAL_IME is defined.
2158-
// for Mac it is in gui_mac.c for the GUI or in os_mac_conv.c when
2159-
// MACOS_CONVERT is defined.
21602158
# define IME_WITHOUT_XIM
21612159
#endif
21622160

0 commit comments

Comments
 (0)