diff options
| author | Gerd Moellmann | 2001-02-28 13:28:35 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-02-28 13:28:35 +0000 |
| commit | e9c96c6291e1a5349bd99abc111cf95a94368c6a (patch) | |
| tree | 304a080b83c4a2878065962d5e5175dcf6616418 /src | |
| parent | 26605be91072905c2a3a2222c5bf9079845940ed (diff) | |
| download | emacs-e9c96c6291e1a5349bd99abc111cf95a94368c6a.tar.gz emacs-e9c96c6291e1a5349bd99abc111cf95a94368c6a.zip | |
(make_frame): Use allocate_frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 13 |
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 | ||
| 4 | This file is part of GNU Emacs. | 5 | This 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; |