diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-12 22:46:17 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-12 22:46:17 +0000 |
commit | 8d34330fe55d1c5dc3f22a7b92ca27f3fb5d5690 (patch) | |
tree | abc2fbbe84d403714bfd4c61e8b5cd0b5ea9dae2 /src | |
parent | 1f28b0786776673c392bc3becb912f819b71b1e7 (diff) | |
download | vim-git-8d34330fe55d1c5dc3f22a7b92ca27f3fb5d5690.tar.gz |
updated for version 7.0108
Diffstat (limited to 'src')
-rw-r--r-- | src/Make_vms.mms | 35 | ||||
-rw-r--r-- | src/proto/os_unix.pro | 2 | ||||
-rw-r--r-- | src/testdir/test59.in | 9 | ||||
-rw-r--r-- | src/undo.c | 4 | ||||
-rw-r--r-- | src/version.h | 4 |
5 files changed, 40 insertions, 14 deletions
diff --git a/src/Make_vms.mms b/src/Make_vms.mms index ca582ffcf..e44c83dc4 100644 --- a/src/Make_vms.mms +++ b/src/Make_vms.mms @@ -2,9 +2,9 @@ # Makefile for Vim on OpenVMS # # Maintainer: Zoltan Arpadffy <arpadffy@polarhome.com> -# Last change: 2005 Mar 19 +# Last change: 2005 Jul 12 # -# This has script been tested on VMS 6.2 to 7.3 on DEC Alpha, VAX and IA64 +# This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64 # with MMS and MMK # # The following could be built: @@ -50,6 +50,10 @@ GUI = YES # If you have GTK installed you might want to enable this option. # GTK = YES +# GUI/Motif with XPM +# If you have XPM installed you might want to build Motif version with toolbar +# XPM = YES + # Comment out if you want the compiler version with :ver command. # NOTE: This part can make some complications if you're using some # predefined symbols/flags for your compiler. If does, just leave behind @@ -133,32 +137,41 @@ CONFIG_H = os_vms_conf.h .IFDEF GTK .IFDEF GUI +.IFDEF XPM .ELSE GUI = YES .ENDIF .ENDIF +.ENDIF .IFDEF GUI # X/Motif/GTK executable (also works in terminal mode ) .IFDEF GTK +# define GTK root directory +# please note: directory should end with . in order to /trans=conc work +# example: GTK_DIR = $1$DGA104:[USERS.ZAY.WORK.GTK1210.] GTK_DIR = ALPHA$DKA0:[GTK128.] DEFS = "HAVE_CONFIG_H","FEAT_GUI_GTK" LIBS = ,OS_VMS_GTK.OPT/OPT GUI_FLAG = /name=(as_is,short)/float=ieee/ieee=denorm -GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_gtk_x11.c pty.c -GUI_OBJ = gui.obj gui_gtk.obj gui_gtk_f.obj gui_gtk_x11.obj pty.obj +GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_gtk_x11.c gui_beval.c pty.c +GUI_OBJ = gui.obj gui_gtk.obj gui_gtk_f.obj gui_gtk_x11.obj gui_beval.obj pty.obj GUI_INC = ,"/gtk_root/gtk","/gtk_root/glib" # GUI_INC_VER is used just for :ver information # this string should escape from C and DCL in the same time GUI_INC_VER= ,\""/gtk_root/gtk\"",\""/gtk_root/glib\"" -.else +.ELSE MOTIF = YES +.IFDEF XPM +DEFS = "HAVE_CONFIG_H","FEAT_GUI_MOTIF","HAVE_XPM" +.ELSE DEFS = "HAVE_CONFIG_H","FEAT_GUI_MOTIF" +.ENDIF LIBS = ,OS_VMS_MOTIF.OPT/OPT GUI_FLAG = -GUI_SRC = gui.c gui_motif.c gui_x11.c -GUI_OBJ = gui.obj gui_motif.obj gui_x11.obj +GUI_SRC = gui.c gui_motif.c gui_x11.c gui_beval.c gui_xmdlg.c gui_xmebw.c +GUI_OBJ = gui.obj gui_motif.obj gui_x11.obj gui_beval.obj gui_xmdlg.obj gui_xmebw.obj GUI_INC = .ENDIF @@ -360,7 +373,11 @@ check_ccver : .IFDEF MOTIF motif_env : - -@ write sys$output "using DECW/Motif environment." +.IFDEF XPM + -@ write sys$output "using DECW/Motif/XPM environment." +.ELSE + -@ write sys$output "using DECW/Motif environment." +.ENDIF -@ write sys$output "creating OS_VMS_MOTIF.OPT file." -@ open/write opt_file OS_VMS_MOTIF.OPT -@ write opt_file "sys$share:decw$xmlibshr12.exe/share,-" @@ -741,3 +758,5 @@ netbeans.obj : netbeans.c vim.h [.auto]config.h feature.h os_unix.h \ ascii.h keymap.h term.h macros.h structs.h regexp.h \ gui.h gui_beval.h [.proto]gui_beval.pro option.h ex_cmds.h proto.h \ globals.h farsi.h arabic.h version.h +gui_xmdlg.obj : gui_xmdlg.c +gui_xmebw.obj : gui_xmebw.c diff --git a/src/proto/os_unix.pro b/src/proto/os_unix.pro index d2f5e174e..a6ae6ec24 100644 --- a/src/proto/os_unix.pro +++ b/src/proto/os_unix.pro @@ -11,7 +11,7 @@ void mch_didjmp __ARGS((void)); void mch_suspend __ARGS((void)); void mch_init __ARGS((void)); void reset_signals __ARGS((void)); -int handle_signal __ARGS((int sig)); +int vim_handle_signal __ARGS((int sig)); int mch_check_win __ARGS((int argc, char **argv)); int mch_input_isatty __ARGS((void)); int mch_can_restore_title __ARGS((void)); diff --git a/src/testdir/test59.in b/src/testdir/test59.in index 5a3753068..61f22d57a 100644 --- a/src/testdir/test59.in +++ b/src/testdir/test59.in @@ -4,10 +4,15 @@ STARTTEST :so small.vim :so mbyte.vim :" +:" Don't want to depend on the locale from the environment. The .aff and .dic +:" text is in latin1, the test text is utf-8. +:set enc=latin1 +:e! +:set fenc= :" First generate a .spl file from a .dic and a .aff file. +gg:/^affstart1/+1,/^affend1/-1w Xtest.aff +gg:/^dicstart/+1,/^dicend/-1w Xtest.dic :set enc=utf-8 -:/^affstart1/+1,/affend1/-1w Xtest.aff -:/^dicstart/+1,/dicend/-1w Xtest.dic :mkspell Xtest Xtest :" :" use that spell file diff --git a/src/undo.c b/src/undo.c index 53070af52..362b317e7 100644 --- a/src/undo.c +++ b/src/undo.c @@ -656,6 +656,8 @@ u_undoredo() ml_delete(lnum, FALSE); } } + else + newarray = NULL; /* insert the lines in u_array between top and bot */ if (newsize) @@ -923,7 +925,7 @@ u_freeentry(uep, n) u_entry_T *uep; long n; { - while (n) + while (n > 0) U_FREE_LINE(uep->ue_array[--n]); U_FREE_LINE((char_u *)uep->ue_array); U_FREE_LINE((char_u *)uep); diff --git a/src/version.h b/src/version.h index 9031d953c..1fa3fbac5 100644 --- a/src/version.h +++ b/src/version.h @@ -36,5 +36,5 @@ #define VIM_VERSION_NODOT "vim70aa" #define VIM_VERSION_SHORT "7.0aa" #define VIM_VERSION_MEDIUM "7.0aa ALPHA" -#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 11)" -#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 11, compiled " +#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 12)" +#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Jul 12, compiled " |