aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-02-28 13:28:35 +0000
committerGerd Moellmann2001-02-28 13:28:35 +0000
commite9c96c6291e1a5349bd99abc111cf95a94368c6a (patch)
tree304a080b83c4a2878065962d5e5175dcf6616418 /src
parent26605be91072905c2a3a2222c5bf9079845940ed (diff)
downloademacs-e9c96c6291e1a5349bd99abc111cf95a94368c6a.tar.gz
emacs-e9c96c6291e1a5349bd99abc111cf95a94368c6a.zip
(make_frame): Use allocate_frame.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/frame.c b/src/frame.c
index 4ebafbede32..0cc5035737a 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1,5 +1,6 @@
1/* Generic frame functions. 1/* Generic frame functions.
2 Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000 Free Software Foundation. 2 Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001
3 Free Software Foundation.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -198,14 +199,8 @@ make_frame (mini_p)
198 register struct frame *f; 199 register struct frame *f;
199 register Lisp_Object root_window; 200 register Lisp_Object root_window;
200 register Lisp_Object mini_window; 201 register Lisp_Object mini_window;
201 register struct Lisp_Vector *vec; 202
202 int i; 203 f = allocate_frame ();
203
204 vec = allocate_vectorlike ((EMACS_INT) VECSIZE (struct frame));
205 for (i = 0; i < VECSIZE (struct frame); i++)
206 XSETFASTINT (vec->contents[i], 0);
207 vec->size = VECSIZE (struct frame);
208 f = (struct frame *)vec;
209 XSETFRAME (frame, f); 204 XSETFRAME (frame, f);
210 205
211 f->desired_matrix = 0; 206 f->desired_matrix = 0;