Mercurial > emacs
diff src/macterm.c @ 90970:3371fc48749b
Replace uses of GC_* macros with the non-GC_ versions.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Fri, 29 Jun 2007 03:37:33 +0000 |
| parents | 3619e7770f2e |
| children | 988f1edc9674 |
line wrap: on
line diff
--- a/src/macterm.c Tue Jun 26 12:02:59 2007 +0000 +++ b/src/macterm.c Fri Jun 29 03:37:33 2007 +0000 @@ -3069,8 +3069,8 @@ /* Look for a frame with that top-level widget. Allocate the color on that frame to get the right gamma correction value. */ - for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) - if (GC_FRAMEP (XCAR (tail)) + for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail)) + if (FRAMEP (XCAR (tail)) && (f = XFRAME (XCAR (tail)), (f->output_data.nothing != 1 && FRAME_X_DISPLAY_INFO (f) == dpyinfo)) @@ -4402,9 +4402,9 @@ /* Don't stop displaying the initial startup message for a switch-frame event we don't need. */ - if (GC_NILP (Vterminal_frame) - && GC_CONSP (Vframe_list) - && !GC_NILP (XCDR (Vframe_list))) + if (NILP (Vterminal_frame) + && CONSP (Vframe_list) + && !NILP (XCDR (Vframe_list))) { bufp->kind = FOCUS_IN_EVENT; XSETFRAME (bufp->frame_or_window, frame); @@ -4477,7 +4477,7 @@ if (dpyinfo->x_focus_frame) { dpyinfo->x_highlight_frame - = ((GC_FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame))) + = ((FRAMEP (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame))) ? XFRAME (FRAME_FOCUS_FRAME (dpyinfo->x_focus_frame)) : dpyinfo->x_focus_frame); if (! FRAME_LIVE_P (dpyinfo->x_highlight_frame)) @@ -5507,7 +5507,7 @@ { int win_y, top_range; - if (! GC_WINDOWP (bar->window)) + if (! WINDOWP (bar->window)) abort (); bufp->kind = SCROLL_BAR_CLICK_EVENT; @@ -5582,7 +5582,7 @@ XSETVECTOR (last_mouse_scroll_bar, bar); /* If we're dragging the bar, display it. */ - if (! GC_NILP (bar->dragging)) + if (! NILP (bar->dragging)) { /* Where should the handle be now? */ int new_start = y_pos - 24;
