On Thu, 14 Oct 2010, Lech Lorens wrote:
Vim is supposed to be compilable with a C89-compliant compiler. I
moved the variables' declarations so as to make it possible.
I wasn't sure if the variables could safely be declared inside an if
block.
By the way, I haven't looked into variables' implementation, so
forgive me if the answer is obvious, but is the value of the
variable properly initialised under e.g. MS Windows or when GUI is
not used?
I could be mistaken, since I'm not exactly a C expert, but it looks
like Vim initializes all the v:-variables to something sane. It
certainly works okay for me, in that it's always either 0 or a
windowid number, and while I've only tested it on my Linux system so
far I see no reason it should be problematic on any other OS; it
should just always be 0 on non-X systems.
- Christian
--
It might look like I'm doing nothing, but at the cellular level I'm really
quite busy.
Christian J. Robinson <[email protected]> http://christianrobinson.name/
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php