comparison src/dialog-x.c @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents 183866b06e0b
children 6728e641994e
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
160 160
161 /* Inhibit GC during this conversion. The reasons for this are 161 /* Inhibit GC during this conversion. The reasons for this are
162 the same as in menu_item_descriptor_to_widget_value(); see 162 the same as in menu_item_descriptor_to_widget_value(); see
163 the large comment above that function. */ 163 the large comment above that function. */
164 164
165 record_unwind_protect (restore_gc_inhibit, 165 begin_gc_forbidden ();
166 make_int (gc_currently_forbidden));
167 gc_currently_forbidden = 1;
168 166
169 kids = prev = xmalloc_widget_value (); 167 kids = prev = xmalloc_widget_value ();
170 168
171 /* Also make sure that we free the partially-created widget_value 169 /* Also make sure that we free the partially-created widget_value
172 tree on Lisp error. */ 170 tree on Lisp error. */
243 dbox->name = xstrdup (tmp_dbox_name); 241 dbox->name = xstrdup (tmp_dbox_name);
244 dbox->contents = kids; 242 dbox->contents = kids;
245 243
246 /* No more need to free the half-filled-in structures. */ 244 /* No more need to free the half-filled-in structures. */
247 set_opaque_ptr (wv_closure, 0); 245 set_opaque_ptr (wv_closure, 0);
248 unbind_to (count, Qnil); 246 unbind_to (count);
249 return dbox; 247 return dbox;
250 } 248 }
251 } 249 }
252 250
253 static Lisp_Object 251 static Lisp_Object