On 05/06/08 05:05, Bill McCarthy wrote:
> On Wed 4-Jun-08 3:42pm -0600, Bram Moolenaar wrote:
>
>> Anyway, here is a patch to accept plain floating point numbers.  Goes on
>> top of the previous floating point patch.  Give it a try and find out if
>> any of your scripts break.
>
> My eval.c is the current release patched by both your latest
> and John Beckett's fix.  You new patch fails with:
>
> vim\vimfp>  patch -b -p 0 -i Brams-may_not_work_with_jb.diff
> patching file src/eval.c
> Hunk #1 FAILED at 4799.
> 1 out of 1 hunk FAILED -- saving rejects to file src/eval.c.rej
>
> I'm not great at reading patch files, but my eval.c does
> contain:
>
> ===============================================
>      case '7':
>      case '8':
>      case '9':
>                  vim_str2nr(*arg, NULL,&len, TRUE, TRUE,&n, NULL);
>                  *arg += len;
>                  if (evaluate)
>                  {
>                      rettv->v_type = VAR_NUMBER;
>                      rettv->vval.v_number = n;
>                  }
>                  break;
>
>      /*
>       * String constant: "string".
> ===============================================
>
> So it looks like - to me - that you patch should patch.
>

Works for me:

linux:~/.build/vim-test/vim71 # patch --dry-run -p0<patches/Floating\ 
point\ noampersand.eml
(Stripping trailing CRs from patch.)
patching file src/eval.c
Hunk #1 succeeded at 4998 (offset 199 lines).
linux:~/.build/vim-test/vim71 #


Best regards,
Tony.
-- 
Getting an education at the University of California is like having
$50.00 shoved up your ass, a nickel at a time.

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

Raspunde prin e-mail lui