/* Return the Emacs frame-object corresponding to an X window.
It could be the frame's main window or an icon window. */
-/* This function can be called during GC, so use XGCTYPE. */
+/* This function can be called during GC, so use GC_xxx type test macros. */
struct frame *
x_window_to_frame (wdesc)
Lisp_Object tail, frame;
struct frame *f;
- for (tail = Vframe_list; XGCTYPE (tail) == Lisp_Cons;
- tail = XCONS (tail)->cdr)
+ for (tail = Vframe_list; GC_CONSP (tail); tail = XCONS (tail)->cdr)
{
frame = XCONS (tail)->car;
- if (XGCTYPE (frame) != Lisp_Frame)
+ if (!GC_FRAMEP (frame))
continue;
f = XFRAME (frame);
#ifdef USE_X_TOOLKIT
struct frame *f;
struct x_display *x;
- for (tail = Vframe_list; XGCTYPE (tail) == Lisp_Cons;
- tail = XCONS (tail)->cdr)
+ for (tail = Vframe_list; GC_CONSP (tail); tail = XCONS (tail)->cdr)
{
frame = XCONS (tail)->car;
- if (XGCTYPE (frame) != Lisp_Frame)
+ if (!GC_FRAMEP (frame))
continue;
f = XFRAME (frame);
if (f->display.nothing == 1)
struct frame *f;
struct x_display *x;
- for (tail = Vframe_list; XGCTYPE (tail) == Lisp_Cons;
- tail = XCONS (tail)->cdr)
+ for (tail = Vframe_list; GC_CONSP (tail); tail = XCONS (tail)->cdr)
{
frame = XCONS (tail)->car;
- if (XGCTYPE (frame) != Lisp_Frame)
+ if (!GC_FRAMEP (frame))
continue;
f = XFRAME (frame);
if (f->display.nothing == 1)