1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Perl and Tcl have a few code style problems.
12 Solution: Clean it up. (Elias Diem)
13 Files: src/if_perl.xs, src/if_tcl.c
16 *** ../vim-7.3.262/src/if_perl.xs 2010-10-23 14:02:48.000000000 +0200
17 --- src/if_perl.xs 2011-07-27 14:11:03.000000000 +0200
23 ! safe = perl_get_sv( "VIM::safe", FALSE );
24 # ifndef MAKE_TEST /* avoid a warning for unreachable code */
25 if (safe == NULL || !SvTRUE(safe))
26 EMSG(_("E299: Perl evaluation forbidden in sandbox without the Safe module"));
31 ! safe = perl_get_sv("VIM::safe", FALSE);
32 # ifndef MAKE_TEST /* avoid a warning for unreachable code */
33 if (safe == NULL || !SvTRUE(safe))
34 EMSG(_("E299: Perl evaluation forbidden in sandbox without the Safe module"));
54 PUSHs(sv_2mortal(newSViv(win->w_cursor.lnum)));
55 PUSHs(sv_2mortal(newSViv(win->w_cursor.col)));
62 PUSHs(sv_2mortal(newSViv(win->w_cursor.lnum)));
63 PUSHs(sv_2mortal(newSViv(win->w_cursor.col)));
65 ! else if (items == 3)
73 count = 1 + SvIV(ST(2)) - lnum;
83 count = 1 + SvIV(ST(2)) - lnum;
90 *** ../vim-7.3.262/src/if_tcl.c 2010-12-17 20:23:56.000000000 +0100
91 --- src/if_tcl.c 2011-07-27 14:11:03.000000000 +0200
97 ! if (error == TCL_EXIT )
103 robj = Tcl_GetObjResult(tclinfo.interp);
104 ! if( Tcl_GetIntFromObj(tclinfo.interp, robj, &retval) != TCL_OK )
106 EMSG(_("E281: TCL ERROR: exit code is not int!? Please report this to vim-dev@vim.org"));
112 ! if (error == TCL_EXIT)
118 robj = Tcl_GetObjResult(tclinfo.interp);
119 ! if (Tcl_GetIntFromObj(tclinfo.interp, robj, &retval) != TCL_OK)
121 EMSG(_("E281: TCL ERROR: exit code is not int!? Please report this to vim-dev@vim.org"));
126 sprintf(buf, _("E572: exit code %d"), retval);
134 sprintf(buf, _("E572: exit code %d"), retval);
140 *** ../vim-7.3.262/src/version.c 2011-07-27 14:09:05.000000000 +0200
141 --- src/version.c 2011-07-27 14:12:05.000000000 +0200
145 { /* Add new patch number below this line */
151 DEAD PERSON: I don't want to go in the cart!
152 CUSTOMER: Oh, don't be such a baby.
153 MORTICIAN: I can't take him...
154 DEAD PERSON: I feel fine!
155 CUSTOMER: Oh, do us a favor...
157 The Quest for the Holy Grail (Monty Python)
159 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
160 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
161 \\\ an exciting new programming language -- http://www.Zimbu.org ///
162 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///