Loading ...
Sorry, an error occurred while loading the content.

Patch 7.3.721

Expand Messages
  • Bram Moolenaar
    Patch 7.3.721 Problem: Ruby interface defines local functions globally. Solution: Make the functions static. Files: src/if_ruby.c ... ***************
    Message 1 of 5 , Nov 20, 2012
    • 0 Attachment
      Patch 7.3.721
      Problem: Ruby interface defines local functions globally.
      Solution: Make the functions static.
      Files: src/if_ruby.c


      *** ../vim-7.3.720/src/if_ruby.c 2012-10-03 18:06:55.000000000 +0200
      --- src/if_ruby.c 2012-11-20 15:35:46.000000000 +0100
      ***************
      *** 336,346 ****
      #endif

      #ifdef RUBY19_OR_LATER
      ! SIGNED_VALUE rb_num2long_stub(VALUE x)
      {
      return dll_rb_num2long(x);
      }
      ! VALUE rb_int2big_stub(SIGNED_VALUE x)
      {
      return dll_rb_int2big(x);
      }
      --- 336,346 ----
      #endif

      #ifdef RUBY19_OR_LATER
      ! static SIGNED_VALUE rb_num2long_stub(VALUE x)
      {
      return dll_rb_num2long(x);
      }
      ! static VALUE rb_int2big_stub(SIGNED_VALUE x)
      {
      return dll_rb_int2big(x);
      }
      *** ../vim-7.3.720/src/version.c 2012-11-20 16:56:49.000000000 +0100
      --- src/version.c 2012-11-20 16:58:32.000000000 +0100
      ***************
      *** 727,728 ****
      --- 727,730 ----
      { /* Add new patch number below this line */
      + /**/
      + 721,
      /**/

      --
      hundred-and-one symptoms of being an internet addict:
      39. You move into a new house and decide to Netscape before you landscape.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      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
    • Ike Devolder
      ... build failure here: if_ruby.c:339:21: error: static declaration of rb_num2long_stub follows non- static declaration ./configure --prefix=/usr
      Message 2 of 5 , Nov 20, 2012
      • 0 Attachment
        Op dinsdag 20 november 2012 16:59:30 schreef Bram Moolenaar:
        > Patch 7.3.721
        > Problem: Ruby interface defines local functions globally.
        > Solution: Make the functions static.
        > Files: src/if_ruby.c
        >
        >
        > *** ../vim-7.3.720/src/if_ruby.c 2012-10-03 18:06:55.000000000 +0200
        > --- src/if_ruby.c 2012-11-20 15:35:46.000000000 +0100
        > ***************
        > *** 336,346 ****
        > #endif
        >
        > #ifdef RUBY19_OR_LATER
        > ! SIGNED_VALUE rb_num2long_stub(VALUE x)
        > {
        > return dll_rb_num2long(x);
        > }
        > ! VALUE rb_int2big_stub(SIGNED_VALUE x)
        > {
        > return dll_rb_int2big(x);
        > }
        > --- 336,346 ----
        > #endif
        >
        > #ifdef RUBY19_OR_LATER
        > ! static SIGNED_VALUE rb_num2long_stub(VALUE x)
        > {
        > return dll_rb_num2long(x);
        > }
        > ! static VALUE rb_int2big_stub(SIGNED_VALUE x)
        > {
        > return dll_rb_int2big(x);
        > }
        > *** ../vim-7.3.720/src/version.c 2012-11-20 16:56:49.000000000 +0100
        > --- src/version.c 2012-11-20 16:58:32.000000000 +0100
        > ***************
        > *** 727,728 ****
        > --- 727,730 ----
        > { /* Add new patch number below this line */
        > + /**/
        > + 721,
        > /**/

        build failure here:
        if_ruby.c:339:21: error: static declaration of 'rb_num2long_stub' follows non-
        static declaration

        ./configure --prefix=/usr --localstatedir=/var/lib/vim \
        --mandir=/usr/share/man \
        --with-features=huge --enable-gpm --enable-acl --with-x=no \
        --disable-gui --enable-multibyte --enable-cscope \
        --disable-netbeans --enable-perlinterp=dynamic \
        --enable-pythoninterp=dynamic --enable-python3interp=dynamic \
        --enable-rubyinterp=dynamic --enable-luainterp=dynamic
        make

        --Ike

        --
        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
      • Ken Takata
        Hi, ... I wrote a patch for that. Best regards, Ken Takata -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the
        Message 3 of 5 , Nov 20, 2012
        • 0 Attachment
          Hi,

          2012/11/21 Wed 1:53:06 UTC+9 Ike:
          >
          > build failure here:
          >
          > if_ruby.c:339:21: error: static declaration of 'rb_num2long_stub' follows non-
          >
          > static declaration

          I wrote a patch for that.

          Best regards,
          Ken Takata

          --
          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
        • Ike Devolder
          ... thx works perfect -- Ike -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are replying to. For
          Message 4 of 5 , Nov 21, 2012
          • 0 Attachment
            On Tue, Nov 20, 2012 at 02:43:24PM -0800, Ken Takata wrote:
            > Hi,
            >
            > 2012/11/21 Wed 1:53:06 UTC+9 Ike:
            > >
            > > build failure here:
            > >
            > > if_ruby.c:339:21: error: static declaration of 'rb_num2long_stub' follows non-
            > >
            > > static declaration
            >
            > I wrote a patch for that.
            >
            > Best regards,
            > Ken Takata
            >
            > --
            > 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

            > # HG changeset patch
            > # Parent 296ea099157e159eff3a7e98d85776ece38980d4
            > diff --git a/src/if_ruby.c b/src/if_ruby.c
            > --- a/src/if_ruby.c
            > +++ b/src/if_ruby.c
            > @@ -335,12 +335,12 @@
            > static void* (*ruby_process_options)(int, char**);
            > #endif
            >
            > -#ifdef RUBY19_OR_LATER
            > -static SIGNED_VALUE rb_num2long_stub(VALUE x)
            > +#if defined(RUBY19_OR_LATER) && !defined(PROTO)
            > +SIGNED_VALUE rb_num2long_stub(VALUE x)
            > {
            > return dll_rb_num2long(x);
            > }
            > -static VALUE rb_int2big_stub(SIGNED_VALUE x)
            > +VALUE rb_int2big_stub(SIGNED_VALUE x)
            > {
            > return dll_rb_int2big(x);
            > }

            thx works perfect

            --
            Ike

            --
            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
          • Bram Moolenaar
            ... Thanks, I ll try it out. We have an awful lot of #ifdefs, but it seems that is hard to avoid. -- hundred-and-one symptoms of being an internet addict: 47.
            Message 5 of 5 , Nov 21, 2012
            • 0 Attachment
              Ken Takata wrote:

              > 2012/11/21 Wed 1:53:06 UTC+9 Ike:
              > >
              > > build failure here:
              > >
              > > if_ruby.c:339:21: error: static declaration of 'rb_num2long_stub' follows non-
              > >
              > > static declaration
              >
              > I wrote a patch for that.

              Thanks, I'll try it out.

              We have an awful lot of #ifdefs, but it seems that is hard to avoid.


              --
              hundred-and-one symptoms of being an internet addict:
              47. You are so familiar with the WWW that you find the search engines useless.

              /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
              /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
              \\\ an exciting new programming language -- http://www.Zimbu.org ///
              \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

              --
              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
            Your message has been successfully submitted and would be delivered to recipients shortly.