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

Re: [racket-dev] Embedding racket in vim

Expand Messages
  • Sergey Khorev
    Looks good except one thing: you really wouldn t want to gc environment (see MZ_GC_CHECK) before registering it with MZ_REGISTER_STATIC. BTW are there any
    Message 1 of 8 , Dec 16, 2012
      Looks good except one thing: you really wouldn't want to gc environment (see MZ_GC_CHECK) before registering  it with MZ_REGISTER_STATIC.

      BTW are there any guarantees that MZ_REGISTER_STATIC doesn't trigger garbage collection?

      @@ -861,6 +865,12 @@
           scheme_set_stack_base(stack_base, 1);
       #endif
       
      +#ifndef TRAMPOLINED_MZVIM_STARTUP
      +    /* in newer versions of precise GC the initial env has been created */
      +    environment = scheme_basic_env();
      +#endif
      +    MZ_GC_CHECK();
      +
           MZ_REGISTER_STATIC(environment);
           MZ_REGISTER_STATIC(curout);
           MZ_REGISTER_STATIC(curerr);
      @@ -869,10 +879,6 @@
           MZ_REGISTER_STATIC(exn_message);
           MZ_REGISTER_STATIC(vim_exn);
       
      -#ifndef TRAMPOLINED_MZVIM_STARTUP
      -    /* in newer versions of precise GC the initial env has been created */
      -    environment = scheme_basic_env();
      -#endif
           MZ_GC_CHECK();
       

      --
      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
      ... Please let me know what I should include in the distribution. The patch was missing changes to configure.in. -- Very funny, Scotty. Now beam down my
      Message 2 of 8 , Dec 17, 2012
        Sergey Khorev wrote:

        > Looks good except one thing: you really wouldn't want to gc environment
        > (see MZ_GC_CHECK) before registering it with MZ_REGISTER_STATIC.
        >
        > BTW are there any guarantees that MZ_REGISTER_STATIC doesn't trigger
        > garbage collection?

        Please let me know what I should include in the distribution. The patch
        was missing changes to configure.in.


        --
        Very funny, Scotty. Now beam down my clothes.

        /// 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
      • Sergey Khorev
        Eric, I incorporated you changes into http://code.google.com/r/sergeykhorev-vim-mzscheme/source. Can you try it on Mac? Bram, ... I will send you a cumulative
        Message 3 of 8 , Dec 17, 2012
          Eric,

          I incorporated you changes into http://code.google.com/r/sergeykhorev-vim-mzscheme/source. Can you try it on Mac?

          Bram,

          Please let me know what I should include in the distribution.  The patch
          was missing changes to configure.in.

           I will send you a cumulative patch once it is tested.

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