Mercurial > hg > xemacs-beta
comparison src/device-tty.c @ 185:3d6bfa290dbd r20-3b19
Import from CVS: tag r20-3b19
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:55:28 +0200 |
parents | 43dd3413c7c7 |
children | 2c611d1463a6 |
comparison
equal
deleted
inserted
replaced
184:bcd2674570bf | 185:3d6bfa290dbd |
---|---|
48 | 48 |
49 | 49 |
50 static void | 50 static void |
51 allocate_tty_device_struct (struct device *d) | 51 allocate_tty_device_struct (struct device *d) |
52 { | 52 { |
53 d->device_data = | 53 d->device_data = xnew_and_zero (struct tty_device); |
54 (struct tty_device *) xmalloc (sizeof (struct tty_device)); | |
55 | |
56 /* zero out all slots. */ | |
57 memset (d->device_data, 0, sizeof (struct tty_device)); | |
58 } | 54 } |
59 | 55 |
60 static void | 56 static void |
61 tty_init_device (struct device *d, Lisp_Object props) | 57 tty_init_device (struct device *d, Lisp_Object props) |
62 { | 58 { |
169 for (tail = DEVICE_FRAME_LIST (d); | 165 for (tail = DEVICE_FRAME_LIST (d); |
170 !NILP (tail); | 166 !NILP (tail); |
171 tail = XCDR (tail)) | 167 tail = XCDR (tail)) |
172 { | 168 { |
173 struct frame *f = XFRAME (XCAR (tail)); | 169 struct frame *f = XFRAME (XCAR (tail)); |
174 | 170 |
175 /* We know the frame is tty because we made sure that the | 171 /* We know the frame is tty because we made sure that the |
176 device is tty. */ | 172 device is tty. */ |
177 change_frame_size (f, height, width, 1); | 173 change_frame_size (f, height, width, 1); |
178 } | 174 } |
179 } | 175 } |