Mercurial > hg > RemoteEditor > vim7
changeset 22:09b6b4285677
*** empty log message ***
author | kono |
---|---|
date | Tue, 16 Sep 2008 19:21:03 +0900 |
parents | cc45fc3d7c4a |
children | 75fedd8da66f |
files | src/auto/config.h src/auto/config.mk src/ex_docmd.c src/reditor.c |
diffstat | 4 files changed, 58 insertions(+), 82 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auto/config.h Tue Sep 09 15:58:01 2008 +0900 +++ b/src/auto/config.h Tue Sep 16 19:21:03 2008 +0900 @@ -8,7 +8,7 @@ /* #undef EBCDIC */ /* Define unless no X support found */ -#define HAVE_X11 1 +/* #undef HAVE_X11 */ /* Define when terminfo support found */ #define TERMINFO 1 @@ -26,7 +26,7 @@ /* #undef UP_BC_PC_EXTERN */ /* Define when termcap.h defines outfuntype */ -#define HAVE_OUTFUNTYPE 1 +/* #undef HAVE_OUTFUNTYPE */ /* Define when __DATE__ " " __TIME__ can be used */ #define HAVE_DATE_TIME 1 @@ -97,8 +97,8 @@ #define HAVE_SVR4_PTYS 1 /* Define to range of pty names to try */ -/* #undef PTYRANGE0 */ -/* #undef PTYRANGE1 */ +#define PTYRANGE0 "pqrstuvw" +#define PTYRANGE1 "0123456789abcdef" /* Define mode for pty */ /* #undef PTYMODE */ @@ -125,7 +125,7 @@ /* #undef TGETSTR_CHAR_P */ /* Define if tgetent() returns zero for an error */ -#define TGETENT_ZERO_ERR 0 +/* #undef TGETENT_ZERO_ERR */ /* Define if the getcwd() function should not be used. */ /* #undef BAD_GETCWD */ @@ -157,15 +157,15 @@ #define HAVE_READLINK 1 #define HAVE_RENAME 1 #define HAVE_SELECT 1 -#define HAVE_SELINUX 1 +/* #undef HAVE_SELINUX */ #define HAVE_SETENV 1 #define HAVE_SETPGID 1 #define HAVE_SETSID 1 #define HAVE_SIGACTION 1 #define HAVE_SIGALTSTACK 1 #define HAVE_SIGSET 1 -/* #undef HAVE_SIGSETJMP */ -#define HAVE_SIGSTACK 1 +#define HAVE_SIGSETJMP 1 +/* #undef HAVE_SIGSTACK */ #define HAVE_SIGVEC 1 #define HAVE_STRCASECMP 1 #define HAVE_STRERROR 1 @@ -176,10 +176,10 @@ #define HAVE_STRPBRK 1 #define HAVE_STRTOL 1 #define HAVE_ST_BLKSIZE 1 -#define HAVE_SYSCONF 1 -/* #undef HAVE_SYSCTL */ -#define HAVE_SYSINFO 1 -#define HAVE_SYSINFO_MEM_UNIT 1 +/* #undef HAVE_SYSCONF */ +#define HAVE_SYSCTL 1 +/* #undef HAVE_SYSINFO */ +/* #undef HAVE_SYSINFO_MEM_UNIT */ #define HAVE_TGETENT 1 #define HAVE_TOWLOWER 1 #define HAVE_TOWUPPER 1 @@ -198,7 +198,7 @@ /* #undef HAVE_FRAME_H */ #define HAVE_ICONV_H 1 #define HAVE_LANGINFO_H 1 -/* #undef HAVE_LIBC_H */ +#define HAVE_LIBC_H 1 #define HAVE_LIBGEN_H 1 #define HAVE_LIBINTL_H 1 #define HAVE_LOCALE_H 1 @@ -210,7 +210,7 @@ #define HAVE_SETJMP_H 1 #define HAVE_SGTTY_H 1 #define HAVE_STRINGS_H 1 -#define HAVE_STROPTS_H 1 +/* #undef HAVE_STROPTS_H */ /* #undef HAVE_SYS_ACCESS_H */ #define HAVE_SYS_ACL_H 1 /* #undef HAVE_SYS_DIR_H */ @@ -221,10 +221,10 @@ /* #undef HAVE_SYS_PTEM_H */ #define HAVE_SYS_RESOURCE_H 1 #define HAVE_SYS_SELECT_H 1 -#define HAVE_SYS_STATFS_H 1 +/* #undef HAVE_SYS_STATFS_H */ /* #undef HAVE_SYS_STREAM_H */ #define HAVE_SYS_SYSCTL_H 1 -#define HAVE_SYS_SYSINFO_H 1 +/* #undef HAVE_SYS_SYSINFO_H */ /* #undef HAVE_SYS_SYSTEMINFO_H */ #define HAVE_SYS_TIME_H 1 #define HAVE_SYS_UTSNAME_H 1 @@ -232,12 +232,12 @@ #define HAVE_WCTYPE_H 1 #define HAVE_TERMCAP_H 1 #define HAVE_TERMIOS_H 1 -#define HAVE_TERMIO_H 1 +/* #undef HAVE_TERMIO_H */ #define HAVE_UNISTD_H 1 /* #undef HAVE_UTIL_DEBUG_H */ /* #undef HAVE_UTIL_MSGI18N_H */ #define HAVE_UTIME_H 1 -#define HAVE_X11_SUNKEYSYM_H 1 +/* #undef HAVE_X11_SUNKEYSYM_H */ /* #undef HAVE_XM_XM_H */ /* #undef HAVE_XM_XPMP_H */ /* #undef HAVE_XM_TRAITP_H */ @@ -245,7 +245,7 @@ /* #undef HAVE_XM_UNHIGHLIGHTT_H */ /* #undef HAVE_XM_JOINSIDET_H */ /* #undef HAVE_XM_NOTEBOOK_H */ -#define HAVE_X11_XPM_H 1 +/* #undef HAVE_X11_XPM_H */ /* #undef HAVE_X11_XMU_EDITRES_H */ #define HAVE_X11_SM_SMLIB_H 1 @@ -268,7 +268,7 @@ #define HAVE_STRING_H 1 /* Define if strings.h cannot be included when strings.h already is */ -/* #undef NO_STRINGS_WITH_STRING_H */ +#define NO_STRINGS_WITH_STRING_H 1 /* Define if you want tiny features. */ /* #undef FEAT_TINY */ @@ -309,7 +309,7 @@ /* #undef HAVE_AIX_ACL */ /* Define if you want to add support of GPM (Linux console mouse daemon) */ -#define HAVE_GPM 1 +/* #undef HAVE_GPM */ /* Define if you want to add support of sysmouse (*BSD console mouse) */ /* #undef HAVE_SYSMOUSE */ @@ -318,13 +318,13 @@ /* #undef FEAT_CSCOPE */ /* Define if you want to include multibyte support. */ -/* #undef FEAT_MBYTE */ +#define FEAT_MBYTE 1 /* Define if you want to include fontset support. */ /* #undef FEAT_XFONTSET */ /* Define if you want to include XIM support. */ -#define FEAT_XIM 1 +/* #undef FEAT_XIM */ /* Define if you want to include Hangul input support. */ /* #undef FEAT_HANGULIN */ @@ -336,10 +336,10 @@ /* #undef FEAT_KDETOOLBAR */ /* Define if GTK+ 2 is available. */ -#define HAVE_GTK2 1 +/* #undef HAVE_GTK2 */ /* Define if GTK+ multihead support is available (requires GTK+ >= 2.1.1). */ -#define HAVE_GTK_MULTIHEAD 1 +/* #undef HAVE_GTK_MULTIHEAD */ /* Define if your X has own locale library */ /* #undef X_LOCALE */
--- a/src/auto/config.mk Tue Sep 09 15:58:01 2008 +0900 +++ b/src/auto/config.mk Tue Sep 16 19:21:03 2008 +0900 @@ -13,28 +13,28 @@ -VIMNAME = vim +VIMNAME = Vim EXNAME = ex VIEWNAME = view CC = gcc DEFS = -DHAVE_CONFIG_H -CFLAGS = -g -O2 -CPPFLAGS = +CFLAGS = -g -O +CPPFLAGS = -DMACOS_X_UNIX -no-cpp-precomp -I/Developer/Headers/FlatCarbon srcdir = . LDFLAGS = -L/usr/local/lib -LIBS = -lm -lncurses -lelf -lnsl -lselinux -lacl -lattr -lgpm -TAGPRG = ctags -I INIT+ --fields=+S +LIBS = -lm -lncurses -liconv -lintl +TAGPRG = ctags -t CPP = gcc -E CPP_MM = M DEPEND_CFLAGS_FILTER = | sed 's+-I */+-isystem /+g' -X_CFLAGS = -X_LIBS_DIR = -X_PRE_LIBS = -lSM -lICE -lXpm -X_EXTRA_LIBS = -lXdmcp -lSM -lICE -X_LIBS = -lXt -lX11 +X_CFLAGS = +X_LIBS_DIR = +X_PRE_LIBS = +X_EXTRA_LIBS = +X_LIBS = MZSCHEME_LIBS = MZSCHEME_SRC = @@ -101,7 +101,7 @@ NL = "\\012" ### Top directory for everything -prefix = /usr/local +prefix = /Applications ### Top directory for the binary exec_prefix = ${prefix} @@ -113,35 +113,35 @@ datarootdir = ${prefix}/share ### Prefix for location of data files -DATADIR = ${datarootdir} +DATADIR = ${prefix}/Vim.app/Contents/Resources ### Prefix for location of man pages MANDIR = ${datarootdir}/man ### Do we have a GUI -GUI_INC_LOC = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -GUI_LIB_LOC = -L/lib -GUI_SRC = $(GTK_SRC) -GUI_OBJ = $(GTK_OBJ) -GUI_DEFS = $(GTK_DEFS) -GUI_IPATH = $(GTK_IPATH) -GUI_LIBS_DIR = $(GTK_LIBS_DIR) -GUI_LIBS1 = $(GTK_LIBS1) -GUI_LIBS2 = $(GTK_LIBS2) -GUI_INSTALL = $(GTK_INSTALL) -GUI_TARGETS = $(GTK_TARGETS) -GUI_MAN_TARGETS = $(GTK_MAN_TARGETS) -GUI_TESTTARGET = $(GTK_TESTTARGET) -GUI_TESTARG = $(GTK_TESTARG) -GUI_BUNDLE = $(GTK_BUNDLE) +GUI_INC_LOC = +GUI_LIB_LOC = +GUI_SRC = $(CARBONGUI_SRC) +GUI_OBJ = $(CARBONGUI_OBJ) +GUI_DEFS = $(CARBONGUI_DEFS) +GUI_IPATH = $(CARBONGUI_IPATH) +GUI_LIBS_DIR = $(CARBONGUI_LIBS_DIR) +GUI_LIBS1 = $(CARBONGUI_LIBS1) +GUI_LIBS2 = $(CARBONGUI_LIBS2) +GUI_INSTALL = $(CARBONGUI_INSTALL) +GUI_TARGETS = $(CARBONGUI_TARGETS) +GUI_MAN_TARGETS = $(CARBONGUI_MAN_TARGETS) +GUI_TESTTARGET = $(CARBONGUI_TESTTARGET) +GUI_TESTARG = $(CARBONGUI_TESTARG) +GUI_BUNDLE = $(CARBONGUI_BUNDLE) NARROW_PROTO = GUI_X_LIBS = MOTIF_LIBNAME = -GTK_LIBNAME = -L/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 +GTK_LIBNAME = ### Any OS dependent extra source and object file -OS_EXTRA_SRC = -OS_EXTRA_OBJ = +OS_EXTRA_SRC = os_macosx.c os_mac_conv.c +OS_EXTRA_OBJ = objects/os_macosx.o objects/os_mac_conv.o ### If the *.po files are to be translated to *.mo files. MAKEMO = yes
--- a/src/ex_docmd.c Tue Sep 09 15:58:01 2008 +0900 +++ b/src/ex_docmd.c Tue Sep 16 19:21:03 2008 +0900 @@ -463,14 +463,8 @@ /* * Remote Editor */ -//static void ex_repend __ARGS((exarg_T *eap)); -//static void ex_repopen __ARGS((exarg_T *eap)); static void ex_repjoin __ARGS((exarg_T *eap)); -//static void ex_repselect __ARGS((exarg_T *eap)); static void ex_repput __ARGS((exarg_T *eap)); -//static void ex_repremove __ARGS((exarg_T *eap)); -//static void ex_repquit __ARGS((exarg_T *eap)); -//static void ex_reptest __ARGS((exarg_T *eap)); /* * Declare cmdnames[]. @@ -11034,16 +11028,7 @@ ex_repjoin(eap) exarg_T *eap; { - char *smhost; - /* - if ((smhost = rep_input_param("Host and Port of Session Manager = ", "Do NOT connect.")) - == NULL) { - rep_end(); - return; - } - */ - smhost = rep_input_param("Host and Port of Session Manager = ", NULL); - if (rep_join(smhost) == FALSE) { + if (rep_join() == FALSE) { rep_end(); return; } @@ -11055,18 +11040,9 @@ ex_repput(eap) exarg_T *eap; { - char *sname; - sname = rep_input_param("Register Session Name = ", NULL); - - if (rep_put(sname) == FALSE) { - vim_free(sname); + if (rep_put() == FALSE) { rep_end(); return; } - - if (sname) { - vim_free(sname); - } - return; }
--- a/src/reditor.c Tue Sep 09 15:58:01 2008 +0900 +++ b/src/reditor.c Tue Sep 16 19:21:03 2008 +0900 @@ -944,7 +944,7 @@ for(i=lnum;i<lnume+xtra;i++) { // make INSERT_CMD for insert or changed lines if any - cmd = make_cmd(REP_INSERT_CMD, cursn->sid, rep->eid, rep->seqno++, i, get_memline_wrp(cursn->buf, i)); + cmd = make_cmd(REP_INSERT_CMD, cursn->sid, rep->eid, rep->seqno++, i+1, get_memline_wrp(cursn->buf, i+1)); add_cmd_to_list(&(cursn->new_cmdlist), cmd); } rep_send_cur_cmdlist();