This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Calling Scheme from C and Garbage Collection


Greg Harvey <Greg.Harvey@thezone.net> writes:

> Greg Harvey <Greg.Harvey@thezone.net> writes:
[patch errata]

and, of course, it should have been

scm_option scm_gc_opts[] = {
{ SCM_OPTION_BOOLEAN, "collect-each-allocation", 0, 
    "Do a gc after each cell allocation."}};


And, of course, a boot-9 patch:

	* boot-9.scm: added the gc-options setup to the runtime
          options

Index: boot-9.scm
===================================================================
RCS file: /egcs/carton/cvsfiles/guile/guile-core/ice-9/boot-9.scm,v
retrieving revision 1.166
diff -c -c -r1.166 boot-9.scm
*** boot-9.scm	1998/12/01 17:06:34	1.166
--- boot-9.scm	1998/12/05 05:00:56
***************
*** 2375,2380 ****
--- 2375,2384 ----
  		 (readline-options-interface
  		  (readline-options readline-enable readline-disable)
  		  (readline-set!))
+ 
+ 		 (gc-options-interface
+ 		  (gc-options gc-enable gc-disable)
+ 		  (gc-set!))
  		 ))
  	(option-name car)
  	(option-value cadr)

*sigh* the problems with those 2 minute patches where you're spending
half the time trying to check the hockey scores.

-- 
Greg, then again, I might be the only one experiencing that ;)