[Minor] [minor commit] r632 - jimb/wip/gc

Karl Fogel kfogel at red-bean.com
Wed May 31 23:56:32 CDT 2006


jimb at red-bean.com writes:
> Log:
> Implement mn_environment_merge, now that we've got mn_hash_table_merge.

How often do you plan to merge this branch to trunk?
mn__hash_table_merge() doesn't even exist on trunk yet, for example.

Do what's convenient for you.  I can always keep a working copy of the
branch around if I have to.

-Karl

> Modified: jimb/wip/gc/environments.c
> ==============================================================================
> --- jimb/wip/gc/environments.c	(original)
> +++ jimb/wip/gc/environments.c	Thu May 25 02:40:18 2006
> @@ -348,11 +348,14 @@
>  /* Whole-environment operations.  */
>  
>  void
> -mn_copy_environment (mn_call_t *c, mn_ref_t *src, mn_ref_t *dest)
> +mn_environment_merge (mn_call_t *c, mn_ref_t *dest, mn_ref_t *src)
>  {
>    mn__begin_incoherent (c);
>    {
> -    
> +    struct environment *d = check_environment (dest->obj);
> +    struct environment *s = check_environment (src->obj);
> +
> +    mn__hash_table_merge (c, d->hash, s->hash);
>    }
>    mn__end_incoherent (c);
>  }
> @@ -367,6 +370,7 @@
>                                        mn_ref_t *symbol),
>                           void (*free_closure) (mn_call_t *, void *))
>  {
> +  
>  }
>  
>  
>
> _______________________________________________
> Minor mailing list
> Minor at red-bean.com
> http://www.red-bean.com/mailman/listinfo/minor



More information about the Minor mailing list