Hi Lech Lorens,

  Thank you for spending time correcting me this. I really need this.
  I will correct those things in next patch.
  Thank you.  :-)


On Sat, Nov 28, 2009 at 9:13 AM, Lech Lorens <[email protected]> wrote:

> On 27-Nov-2009 Cornelius <[email protected]> wrote:
> > Hi,
> >
> > I have a patch for  javascript binding to vim, this is my first time
> sending
> > a patch for vim.
> > I don't know if this work is acceptable.  i would appreciate if this
> could
> > be accept.  :-)
> >
> > I will continue on developing this feature.
> >
> >
> > this patch is diffed from:
> >
> > URL: https://vim.svn.sourceforge.net/svnroot/vim/vim7
> > Repository Root: https://vim.svn.sourceforge.net/svnroot/vim
> > Repository UUID: 2a77ed30-b011-0410-a7ad-c7884a0aa172
> > Revision: 1682
> >
> >
> > --
> > Best Regards.
> >
> > Cornelius ( Yo-An Lin )
> > E-mail: [email protected]
>
>
> Thank you for your interest in improving Vim!
>
> If you are unsure whether your code is acceptable, you might want to
> have a look at develop.txt (:help develop.txt), especially at notes
> regarding the coding style (:help coding-style). You will notice that
> you have broken some of the rules stated there:
> - you use the ANSI style function declarations,
> - you do not place opening braces on a new line as is done throughout
>  Vim source code,
> - you do not declare variables at the beginning of code blocks,
> - you do not put space between an 'if' and opening parenthesis,
> - in 'if' statements you put the condition and the action in one line,
> - you use strchr() instead of vim_strchr().
>
> Comments from myself:
> - you seem to be slightly inconsistent about whitespace: in feature.h
>  you use spaces while the code around your change uses tabs,
> - you left trailing spaces in a few places, while I can only find 2 such
>  places in Vim so far,
> - you left some commented-out code (js_rand, js_srand), which in my
>  experience eventually tends to make maintaining the code harder,
> - your code seems to be written with the following settings:
>  sw=4 et
>  while Vim's code seems to follow the standard:
>  ts=8 sw=4 noet
> - if FEAT_JS is not defined, you define ex_js to be ex_script_ni.
>  Otherwise, there is no such thing as ex_js.
>
> Additionally, in reportError() you use uninitialised error_msg pointer.
>
> I have no idea about JavaScript and therefore feel incompetent to state
> anything more useful about your code. Maybe others will be interested.
>
> Keep up the good work!
>
> --
> Cheers,
> Lech
>



-- 
Best Regards.

Cornelius ( Yo-An Lin )
E-mail: [email protected]
http://c9s.blogspot.com/

-- 
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui