aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1999-01-28 04:01:44 +0000
committerRichard M. Stallman1999-01-28 04:01:44 +0000
commit5878523b19b879fe56ffc7eb9a2550cd22abf4b4 (patch)
treeeeabcd054ac3ea077c1d46a79e8c1636ec97c885 /src
parent35fc36a16beca347e746be327a0ccd37238bc31d (diff)
downloademacs-5878523b19b879fe56ffc7eb9a2550cd22abf4b4.tar.gz
emacs-5878523b19b879fe56ffc7eb9a2550cd22abf4b4.zip
(x_set_frame_parameters): gcpro as needed.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 10afcbca40a..4ecc38832dc 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -688,6 +688,8 @@ x_set_frame_parameters (f, alist)
688 int left_no_change = 0, top_no_change = 0; 688 int left_no_change = 0, top_no_change = 0;
689 int icon_left_no_change = 0, icon_top_no_change = 0; 689 int icon_left_no_change = 0, icon_top_no_change = 0;
690 690
691 struct gcpro gcpro1, gcpro2;
692
691 i = 0; 693 i = 0;
692 for (tail = alist; CONSP (tail); tail = Fcdr (tail)) 694 for (tail = alist; CONSP (tail); tail = Fcdr (tail))
693 i++; 695 i++;
@@ -708,6 +710,15 @@ x_set_frame_parameters (f, alist)
708 i++; 710 i++;
709 } 711 }
710 712
713 /* TAIL and ALIST are not used again below here. */
714 alist = tail = Qnil;
715
716 GCPRO2 (*parms, *values);
717 gcpro1.nvars = i;
718 gcpro2.nvars = i;
719
720 /* There is no need to gcpro LEFT, TOP, ICON_LEFT, or ICON_TOP,
721 because their values appear in VALUES and strings are not valid. */
711 top = left = Qunbound; 722 top = left = Qunbound;
712 icon_left = icon_top = Qunbound; 723 icon_left = icon_top = Qunbound;
713 724
@@ -871,6 +882,8 @@ x_set_frame_parameters (f, alist)
871 && ! (icon_left_no_change && icon_top_no_change)) 882 && ! (icon_left_no_change && icon_top_no_change))
872 x_wm_set_icon_position (f, XINT (icon_left), XINT (icon_top)); 883 x_wm_set_icon_position (f, XINT (icon_left), XINT (icon_top));
873 } 884 }
885
886 UNGCPRO;
874} 887}
875 888
876/* Store the screen positions of frame F into XPTR and YPTR. 889/* Store the screen positions of frame F into XPTR and YPTR.