comparison src/extents.c @ 859:84762348c6f9

[xemacs-hg @ 2002-06-01 08:06:46 by ben] fix process problems etc. process.el: Insert before, not after, point. buffer.c: Fix bug noted by someone. console-tty.h, device.h, emacs.c, filelock.c, nt.c, process-nt.c, process-unix.c, process.c, redisplay-tty.c, sysdep.c, sysproc.h, win32.c: Redo problem with syssignal.h/sysproc.h dependence noted by Didier -- rather than require one included before the other (error-prone), just include syssignal.h from sysproc.h where it's needed. inline.c: Include sysfile.h due to inline funs in that header. extents.c: Fix bug noted by Andrew Cohen <cohen@andy.bu.edu>. process-unix.c: Fix other bug noted by Andrew Cohen <cohen@andy.bu.edu>. process.c: Add process-has-separate-stderr-p, used by call-process-internal.
author ben
date Sat, 01 Jun 2002 08:06:55 +0000
parents 1e4e42de23d5
children 79c6ff3eef26
comparison
equal deleted inserted replaced
858:2c12fe2da451 859:84762348c6f9
3597 Dynarr_add (newprops, new); 3597 Dynarr_add (newprops, new);
3598 } 3598 }
3599 } 3599 }
3600 for (i = 0; i < orignewlength; i++) 3600 for (i = 0; i < orignewlength; i++)
3601 { 3601 {
3602 if (!bsearch (Dynarr_atp (newprops, i), Dynarr_atp (oldprops, 0), 3602 if (!Dynarr_length (oldprops) || !bsearch (Dynarr_atp (newprops, i),
3603 Dynarr_length (oldprops), sizeof (Lisp_Object_pair), 3603 Dynarr_atp (oldprops, 0),
3604 compare_key_value_pairs)) 3604 Dynarr_length (oldprops),
3605 sizeof (Lisp_Object_pair),
3606 compare_key_value_pairs))
3605 { 3607 {
3606 Lisp_Object_pair new; 3608 Lisp_Object_pair new;
3607 new.key = Dynarr_at (newprops, i).key; 3609 new.key = Dynarr_at (newprops, i).key;
3608 new.value = Qunbound; 3610 new.value = Qunbound;
3609 Dynarr_add (oldprops, new); 3611 Dynarr_add (oldprops, new);