Mercurial > hg > xemacs-beta
comparison src/redisplay-output.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | b531bf8658e9 |
children | 3d8143fc88e1 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
66 sync_rune_structs | 66 sync_rune_structs |
67 | 67 |
68 Synchronize the given rune blocks. | 68 Synchronize the given rune blocks. |
69 ****************************************************************************/ | 69 ****************************************************************************/ |
70 static void | 70 static void |
71 sync_rune_structs (struct window *w, rune_dynarr *cra, rune_dynarr *dra) | 71 sync_rune_structs (struct window *UNUSED (w), rune_dynarr *cra, |
72 rune_dynarr *dra) | |
72 { | 73 { |
73 int rune_elt; | 74 int rune_elt; |
74 int max_move = ((Dynarr_length (dra) > Dynarr_largest (cra)) | 75 int max_move = ((Dynarr_length (dra) > Dynarr_largest (cra)) |
75 ? Dynarr_largest (cra) | 76 ? Dynarr_largest (cra) |
76 : Dynarr_length (dra)); | 77 : Dynarr_length (dra)); |
491 struct frame *f = XFRAME (w->frame); | 492 struct frame *f = XFRAME (w->frame); |
492 struct display_block *cdb, *ddb; | 493 struct display_block *cdb, *ddb; |
493 int start_pos; | 494 int start_pos; |
494 int stop_pos; | 495 int stop_pos; |
495 int force = 0; | 496 int force = 0; |
497 #if 0 | |
496 int block_end; | 498 int block_end; |
499 #endif | |
497 | 500 |
498 cdb = Dynarr_atp (cdl->display_blocks, c_block); | 501 cdb = Dynarr_atp (cdl->display_blocks, c_block); |
499 ddb = Dynarr_atp (ddl->display_blocks, d_block); | 502 ddb = Dynarr_atp (ddl->display_blocks, d_block); |
500 | 503 |
501 assert (cdb->type == ddb->type); | 504 assert (cdb->type == ddb->type); |
502 | 505 |
503 start_pos = -1; | 506 start_pos = -1; |
504 stop_pos = min (Dynarr_length (cdb->runes), Dynarr_length (ddb->runes)); | 507 stop_pos = min (Dynarr_length (cdb->runes), Dynarr_length (ddb->runes)); |
505 | 508 |
509 #if 0 | |
506 block_end = | 510 block_end = |
507 (!Dynarr_length (ddb->runes) | 511 (!Dynarr_length (ddb->runes) |
508 ? 0 | 512 ? 0 |
509 : (Dynarr_atp (ddb->runes, Dynarr_length (ddb->runes) - 1)->xpos + | 513 : (Dynarr_atp (ddb->runes, Dynarr_length (ddb->runes) - 1)->xpos + |
510 Dynarr_atp (ddb->runes, Dynarr_length (ddb->runes) - 1)->width)); | 514 Dynarr_atp (ddb->runes, Dynarr_length (ddb->runes) - 1)->width)); |
515 #endif | |
511 | 516 |
512 /* If the new block type is not text and the cursor status is | 517 /* If the new block type is not text and the cursor status is |
513 changing and it overlaps the position of this block then force a | 518 changing and it overlaps the position of this block then force a |
514 full redraw of the block in order to make sure that the cursor is | 519 full redraw of the block in order to make sure that the cursor is |
515 updated properly. */ | 520 updated properly. */ |
1309 ****************************************************************************/ | 1314 ****************************************************************************/ |
1310 void | 1315 void |
1311 redisplay_output_subwindow (struct window *w, | 1316 redisplay_output_subwindow (struct window *w, |
1312 Lisp_Object image_instance, | 1317 Lisp_Object image_instance, |
1313 struct display_box* db, struct display_glyph_area* dga, | 1318 struct display_box* db, struct display_glyph_area* dga, |
1314 face_index findex, int cursor_start, int cursor_width, | 1319 face_index findex, int UNUSED (cursor_start), |
1315 int cursor_height) | 1320 int UNUSED (cursor_width), |
1321 int UNUSED (cursor_height)) | |
1316 { | 1322 { |
1317 Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance); | 1323 Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance); |
1318 Lisp_Object window; | 1324 Lisp_Object window; |
1319 struct display_glyph_area sdga; | 1325 struct display_glyph_area sdga; |
1320 | 1326 |
1394 ****************************************************************************/ | 1400 ****************************************************************************/ |
1395 void | 1401 void |
1396 redisplay_output_layout (Lisp_Object domain, | 1402 redisplay_output_layout (Lisp_Object domain, |
1397 Lisp_Object image_instance, | 1403 Lisp_Object image_instance, |
1398 struct display_box* db, struct display_glyph_area* dga, | 1404 struct display_box* db, struct display_glyph_area* dga, |
1399 face_index findex, int cursor_start, int cursor_width, | 1405 face_index findex, int UNUSED (cursor_start), |
1400 int cursor_height) | 1406 int UNUSED (cursor_width), int UNUSED (cursor_height)) |
1401 { | 1407 { |
1402 Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance); | 1408 Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance); |
1403 Lisp_Object rest, window = DOMAIN_WINDOW (domain); | 1409 Lisp_Object rest, window = DOMAIN_WINDOW (domain); |
1404 Ichar_dynarr *buf = Dynarr_new (Ichar); | 1410 Ichar_dynarr *buf = Dynarr_new (Ichar); |
1405 struct window *w = XWINDOW (window); | 1411 struct window *w = XWINDOW (window); |