Mercurial > emacs
comparison src/w32term.c @ 25646:9154af188477
Use XCAR and XCDR instead of explicit member references.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Sun, 12 Sep 1999 07:05:34 +0000 |
parents | ea748fe6dee4 |
children | b7aa6ac26872 |
comparison
equal
deleted
inserted
replaced
25645:a14111a2a100 | 25646:9154af188477 |
---|---|
2586 { | 2586 { |
2587 Lisp_Object tail, frame; | 2587 Lisp_Object tail, frame; |
2588 | 2588 |
2589 for (tail = Vframe_list; | 2589 for (tail = Vframe_list; |
2590 XGCTYPE (tail) == Lisp_Cons; | 2590 XGCTYPE (tail) == Lisp_Cons; |
2591 tail = XCONS (tail)->cdr) | 2591 tail = XCDR (tail)) |
2592 { | 2592 { |
2593 Lisp_Object frame, bar, condemned; | 2593 Lisp_Object frame, bar, condemned; |
2594 | 2594 |
2595 frame = XCONS (tail)->car; | 2595 frame = XCAR (tail); |
2596 /* All elements of Vframe_list should be frames. */ | 2596 /* All elements of Vframe_list should be frames. */ |
2597 if (! GC_FRAMEP (frame)) | 2597 if (! GC_FRAMEP (frame)) |
2598 abort (); | 2598 abort (); |
2599 | 2599 |
2600 /* Scan this frame's scroll bar list for a scroll bar with the | 2600 /* Scan this frame's scroll bar list for a scroll bar with the |
3471 bufp++; | 3471 bufp++; |
3472 count++; | 3472 count++; |
3473 numchars--; | 3473 numchars--; |
3474 } | 3474 } |
3475 else if (! NILP(Vframe_list) | 3475 else if (! NILP(Vframe_list) |
3476 && ! NILP (XCONS (Vframe_list)->cdr)) | 3476 && ! NILP (XCDR (Vframe_list))) |
3477 /* Force a redisplay sooner or later to update the | 3477 /* Force a redisplay sooner or later to update the |
3478 frame titles in case this is the second frame. */ | 3478 frame titles in case this is the second frame. */ |
3479 record_asynch_buffer_change (); | 3479 record_asynch_buffer_change (); |
3480 } | 3480 } |
3481 else | 3481 else |
4979 dpyinfo->next = NULL; | 4979 dpyinfo->next = NULL; |
4980 | 4980 |
4981 /* Put it on w32_display_name_list as well, to keep them parallel. */ | 4981 /* Put it on w32_display_name_list as well, to keep them parallel. */ |
4982 w32_display_name_list = Fcons (Fcons (display_name, Qnil), | 4982 w32_display_name_list = Fcons (Fcons (display_name, Qnil), |
4983 w32_display_name_list); | 4983 w32_display_name_list); |
4984 dpyinfo->name_list_element = XCONS (w32_display_name_list)->car; | 4984 dpyinfo->name_list_element = XCAR (w32_display_name_list); |
4985 | 4985 |
4986 dpyinfo->w32_id_name | 4986 dpyinfo->w32_id_name |
4987 = (char *) xmalloc (XSTRING (Vinvocation_name)->size | 4987 = (char *) xmalloc (XSTRING (Vinvocation_name)->size |
4988 + XSTRING (Vsystem_name)->size | 4988 + XSTRING (Vsystem_name)->size |
4989 + 2); | 4989 + 2); |
5069 struct w32_display_info *dpyinfo; | 5069 struct w32_display_info *dpyinfo; |
5070 { | 5070 { |
5071 /* Discard this display from w32_display_name_list and w32_display_list. | 5071 /* Discard this display from w32_display_name_list and w32_display_list. |
5072 We can't use Fdelq because that can quit. */ | 5072 We can't use Fdelq because that can quit. */ |
5073 if (! NILP (w32_display_name_list) | 5073 if (! NILP (w32_display_name_list) |
5074 && EQ (XCONS (w32_display_name_list)->car, dpyinfo->name_list_element)) | 5074 && EQ (XCAR (w32_display_name_list), dpyinfo->name_list_element)) |
5075 w32_display_name_list = XCONS (w32_display_name_list)->cdr; | 5075 w32_display_name_list = XCDR (w32_display_name_list); |
5076 else | 5076 else |
5077 { | 5077 { |
5078 Lisp_Object tail; | 5078 Lisp_Object tail; |
5079 | 5079 |
5080 tail = w32_display_name_list; | 5080 tail = w32_display_name_list; |
5081 while (CONSP (tail) && CONSP (XCONS (tail)->cdr)) | 5081 while (CONSP (tail) && CONSP (XCDR (tail))) |
5082 { | 5082 { |
5083 if (EQ (XCONS (XCONS (tail)->cdr)->car, | 5083 if (EQ (XCAR (XCDR (tail)), |
5084 dpyinfo->name_list_element)) | 5084 dpyinfo->name_list_element)) |
5085 { | 5085 { |
5086 XCONS (tail)->cdr = XCONS (XCONS (tail)->cdr)->cdr; | 5086 XCDR (tail) = XCDR (XCDR (tail)); |
5087 break; | 5087 break; |
5088 } | 5088 } |
5089 tail = XCONS (tail)->cdr; | 5089 tail = XCDR (tail); |
5090 } | 5090 } |
5091 } | 5091 } |
5092 | 5092 |
5093 /* free palette table */ | 5093 /* free palette table */ |
5094 { | 5094 { |