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

Re: A warning on 64bit environment.

Expand Messages
  • Taro MURAOKA
    ... Indeed. I have updated the patch. -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are
    Message 1 of 6 , Jun 24, 2013
    • 0 Attachment
      > So we probably need to use an #ifdef.

      Indeed. I have updated the patch.

      --
      --
      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 vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Jun T.
      ... There is already a macro PyInt for this purpose. I also added similar fix for PyList_insert(). diff -r 7a5c346861e1 src/if_python.c ... +++
      Message 2 of 6 , Jun 24, 2013
      • 0 Attachment
        On 2013/06/24, at 19:05, Bram Moolenaar <Bram@...> wrote:
        > So we probably need to use an #ifdef.

        There is already a macro 'PyInt' for this purpose.
        I also added similar fix for PyList_insert().


        diff -r 7a5c346861e1 src/if_python.c
        --- a/src/if_python.c Sun Jun 23 16:40:40 2013 +0200
        +++ b/src/if_python.c Mon Jun 24 20:40:44 2013 +0900
        @@ -329,7 +329,7 @@
        static PyTypeObject* dll_PyLong_Type;
        static PyObject*(*dll_PyList_GetItem)(PyObject *, PyInt);
        static int(*dll_PyList_Append)(PyObject *, PyObject *);
        -static int(*dll_PyList_Insert)(PyObject *, int, PyObject *);
        +static int(*dll_PyList_Insert)(PyObject *, PyInt, PyObject *);
        static PyObject*(*dll_PyList_New)(PyInt size);
        static int(*dll_PyList_SetItem)(PyObject *, PyInt, PyObject *);
        static PyInt(*dll_PyList_Size)(PyObject *);
        @@ -365,7 +365,7 @@
        static PyObject* (*dll_PyObject_Call)(PyObject *, PyObject *, PyObject *);
        static PyObject* (*dll_PyObject_Repr)(PyObject *);
        static char*(*dll_PyString_AsString)(PyObject *);
        -static int(*dll_PyString_AsStringAndSize)(PyObject *, char **, int *);
        +static int(*dll_PyString_AsStringAndSize)(PyObject *, char **, PyInt *);
        static PyObject*(*dll_PyString_FromString)(const char *);
        static PyObject*(*dll_PyString_FromFormat)(const char *, ...);
        static PyObject*(*dll_PyString_FromStringAndSize)(const char *, PyInt);




        --
        --
        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 vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      • Bram Moolenaar
        ... That s easier, thanks. -- If I tell you you have a beautiful body , would you hold it against me? /// Bram Moolenaar -- Bram@Moolenaar.net --
        Message 3 of 6 , Jun 24, 2013
        • 0 Attachment
          Jun Takimoto wrote:

          > On 2013/06/24, at 19:05, Bram Moolenaar <Bram@...> wrote:
          > > So we probably need to use an #ifdef.
          >
          > There is already a macro 'PyInt' for this purpose.
          > I also added similar fix for PyList_insert().

          That's easier, thanks.

          --
          If I tell you "you have a beautiful body", would you hold it against me?

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

          ---
          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 vim_dev+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.
        • Bram Moolenaar
          ... Thanks! -- FIRST HEAD: All right! All right! We ll kill him first and then have tea and biscuits. Monty Python and the Holy Grail PYTHON (MONTY) PICTURES
          Message 4 of 6 , Jun 24, 2013
          • 0 Attachment
            Taro Muraoka wrote:

            > > So we probably need to use an #ifdef.
            >
            > Indeed. I have updated the patch.

            Thanks!

            --
            FIRST HEAD: All right! All right! We'll kill him first and then have tea and
            biscuits.
            "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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

            ---
            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 vim_dev+unsubscribe@....
            For more options, visit https://groups.google.com/groups/opt_out.
          Your message has been successfully submitted and would be delivered to recipients shortly.