Le Tue, 08 Apr 2008 22:45:18 +0200, Bram Moolenaar a écrit dans le
message <[EMAIL PROTECTED]> :

> One of the items I planned to discuss is why Vim has no floating point
> support.  Well, this turned into actually implementing it.

Thanks Bram.

Using Windows98, gVim 7.1.291 and Borland C++ 5.5.1 I have :

- A compiler warning:

Warning W8065 .\eval.c 7289: Call to function 'pow' with no prototype in
function string2float

- Strange results:

:echo &1.5 * &1.609344
1.0762210

:echo 1500 * 1609
:2413500

I added to my make_bc5.mak:
======= make_bc5.mak ========
!if ("$(FLOAT)"=="")
FLOAT = yes
!endif

!if ("$(FLOAT)"=="yes")
DEFINES = $(DEFINES) -DFEAT_FLOAT
!endif
=============================

:version returns:

+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui
+diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search
+farsi +file_in_path +find_in_path +float +folding -footer +gettext/dyn
-hangul_input +iconv/dyn +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang
-mzscheme +netbeans_intg +ole -osfiletype +path_extra +perl/dyn
-postscript +printer +profile -python +quickfix +reltime +rightleft
-ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop
+syntax +tag_binary +tag_old_static -tag_any_white -tcl -tgetent
-termresponse +textobjects +title +toolbar +user_commands +vertsplit
+virtualedit +visual +visualextra +viminfo +vreplace +wildignore
+wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32 
         fichier vimrc système : "$VIM\vimrc"
     fichier vimrc utilisateur : "$HOME\_vimrc"
 2me fichier vimrc utilisateur : "$VIM\_vimrc"
      fichier exrc utilisateur : "$HOME\_exrc"
  2me fichier exrc utilisateur : "$VIM\_exrc"
        fichier gvimrc système : "$VIM\gvimrc"
    fichier gvimrc utilisateur : "$HOME\_gvimrc"
2me fichier gvimrc utilisateur : "$VIM\_gvimrc"
          fichier menu système : "$VIMRUNTIME\menu.vim"
Compilation : c:\borland\bcc55\BIN\Bcc32 -w-aus -w-par -w-pch -w-ngu
-w-csu -Ic:\perl\lib\core;c:\borland\bcc55\include;.;p roto -d -RT- -k-
-Oi -H -H=vim.csm -Hc -f- -DFEAT_HUGE -DWIN32 -DHAVE_PATHDEF
-DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DFEAT_OLE -DFEAT_FLOAT
-DFEAT_CSCOPE -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_NETBEANS_INTG
-DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV
-DDYNAMIC_GETTEXT  -DFEAT_PERL -DDYNAMIC_PERL
-DDYNAMIC_PERL_DLL=\"perl58.dll\" -O2 -f- -d -Ocavi -O -vi- -W -5 -a4  
Édition de liens : 
c:\borland\bcc55\BIN\ILink32 -OS -Tpe -c -m -Lc:\borland\bcc55\lib  -aa
-- 
Patrick Texier, 
Frulon, 36190 Orsennes, France (46°31'N, 01°41'E)
<http://www.genindre.org>
<http://www.genindre.org/cgi-bin/geneweb.cgi?b=pt>

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

Raspunde prin e-mail lui