On Mo, 16 Jul 2018, Bram Moolenaar wrote:

> Patch 8.1.0190
> Problem:    Perl refcounts are wrong.
> Solution:   Improve refcounting.  Add a test. (Damien)
> Files:            src/if_perl.xs, src/testdir/test_perl.vim
> 
> 
> *** ../vim-8.1.0189/src/if_perl.xs    2018-07-08 17:18:58.416462371 +0200
> --- src/if_perl.xs    2018-07-16 17:34:41.750473682 +0200

> + #if 0
> + SV *__sv_save[1024];
> + int __sv_save_ix;
> + #  define D_Save_Sv(sv) do { if (__sv_save_ix < 1024) 
> __sv_save[__sv_save_ix++] = (sv); } while (0)
> + #else
> + #  define D_Save_Sv(sv) NOOP
> + #endif

What do we need the `#if 0` part for?

Best,
Christian
-- 
DAU: Ich habe ein Makro geschrieben, das testet ob der Benutzer anwesend ist.
EDV: Wie das denn?
DAU: Naja, es fragt eben danach.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui