Mercurial > hg > xemacs-beta
diff src/redisplay-xlike-inc.c @ 5198:bc3ede8f29a8
fix spacing in some files
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2010-04-09 Ben Wing <ben@xemacs.org>
* fileio.c (check_writable):
* fileio.c (Fdo_auto_save):
* redisplay-xlike-inc.c (separate_textual_runs_nomule):
* redisplay-xlike-inc.c (separate_textual_runs_xft_nomule):
* redisplay-xlike-inc.c (separate_textual_runs_xft_mule):
* redisplay-xlike-inc.c (separate_textual_runs_mule):
* redisplay-xlike-inc.c (XLIKE_output_string):
* redisplay-xlike-inc.c (XLIKE_output_vertical_divider):
* redisplay.c (create_text_block):
* redisplay.c (regenerate_window):
* redisplay.c (redisplay_window):
* redisplay.c (redisplay_device):
* redisplay.c (window_line_number):
* redisplay.c (point_would_be_visible):
* redisplay.c (compute_display_line_dynarr_usage):
* specifier.c (prune_specifiers):
* specifier.c (finalize_specifier):
* specifier.c (make_magic_specifier):
* specifier.c (charset_matches_specifier_tag_set_p):
* specifier.c (Fdefine_specifier_tag):
* specifier.c (setup_device_initial_specifier_tags):
* specifier.c (bodily_specifier):
* specifier.c (add_spec_to_ghost_specifier):
* specifier.c (remove_ghost_specifier):
* specifier.c (set_specifier_fallback):
* specifier.c (specifier_instance_from_inst_list):
* specifier.c (set_specifier_caching):
Fix coding style to correspond to GNU standard.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Fri, 09 Apr 2010 23:38:02 -0500 |
parents | 0ca81354c4c7 |
children | 6466bc9ebf15 |
line wrap: on
line diff
--- a/src/redisplay-xlike-inc.c Fri Apr 09 02:33:11 2010 -0500 +++ b/src/redisplay-xlike-inc.c Fri Apr 09 23:38:02 2010 -0500 @@ -182,7 +182,7 @@ separate_textual_runs_nomule (unsigned char *text_storage, struct textual_run *run_storage, const Ichar *str, Charcount len, - struct face_cachel *UNUSED(cachel)) + struct face_cachel *UNUSED (cachel)) { if (!len) return 0; @@ -212,7 +212,7 @@ separate_textual_runs_xft_nomule (unsigned char *text_storage, struct textual_run *run_storage, const Ichar *str, Charcount len, - struct face_cachel *UNUSED(cachel)) + struct face_cachel *UNUSED (cachel)) { int i; if (!len) @@ -226,7 +226,7 @@ for (i = 0; i < len; i++) { *(XftChar16 *)text_storage = str[i]; - text_storage += sizeof(XftChar16); + text_storage += sizeof (XftChar16); } return 1; } @@ -237,7 +237,7 @@ separate_textual_runs_xft_mule (unsigned char *text_storage, struct textual_run *run_storage, const Ichar *str, Charcount len, - struct face_cachel *UNUSED(cachel)) + struct face_cachel *UNUSED (cachel)) { Lisp_Object prev_charset = Qunbound; int runs_so_far = 0, i; @@ -250,8 +250,8 @@ for (i = 0; i < len; i++) { Ichar ch = str[i]; - Lisp_Object charset = ichar_charset(ch); - int ucs = ichar_to_unicode(ch); + Lisp_Object charset = ichar_charset (ch); + int ucs = ichar_to_unicode (ch); /* If UCS is less than zero or greater than 0xFFFF, set ucs2 to REPLACMENT CHARACTER. */ @@ -270,7 +270,7 @@ } *(XftChar16 *)text_storage = ucs; - text_storage += sizeof(XftChar16); + text_storage += sizeof (XftChar16); } if (runs_so_far) @@ -335,7 +335,7 @@ These flags are almost mutually exclusive, but we're sloppy about resetting "shadowed" flags. So the flags must be checked in the proper order in computing byte1 and byte2, below. */ - charset_leading_byte = XCHARSET_LEADING_BYTE(charset); + charset_leading_byte = XCHARSET_LEADING_BYTE (charset); translate_to_ucs_2 = bit_vector_bit (FACE_CACHEL_FONT_FINAL_STAGE (cachel), charset_leading_byte - MIN_LEADING_BYTE); @@ -384,7 +384,7 @@ /* Must check flags in this order. See comment above. */ if (translate_to_ucs_2) { - int ucs = ichar_to_unicode(ch); + int ucs = ichar_to_unicode (ch); /* If UCS is less than zero or greater than 0xFFFF, set ucs2 to REPLACMENT CHARACTER. */ ucs = (ucs & ~0xFFFF) ? 0xFFFD : ucs; @@ -1225,8 +1225,8 @@ clip_end - clip_start, height }; XUnionRectWithRegion (&clip_box, clip_reg, clip_reg); - XftDrawSetClip(xftDraw, clip_reg); - XDestroyRegion(clip_reg); + XftDrawSetClip (xftDraw, clip_reg); + XDestroyRegion (clip_reg); } if (!bgc) @@ -1248,19 +1248,19 @@ struct textual_run *run = &runs[i]; int rect_width = x_text_width_single_run (f, cachel, run); #ifndef USE_XFTTEXTENTS_TO_AVOID_FONT_DROPPINGS - int rect_height = FONT_INSTANCE_ASCENT(fi) - + FONT_INSTANCE_DESCENT(fi) + 1; + int rect_height = FONT_INSTANCE_ASCENT (fi) + + FONT_INSTANCE_DESCENT (fi) + 1; #else - int rect_height = FONT_INSTANCE_ASCENT(fi) - + FONT_INSTANCE_DESCENT(fi); + int rect_height = FONT_INSTANCE_ASCENT (fi) + + FONT_INSTANCE_DESCENT (fi); XGlyphInfo gi; if (run->dimension == 2) { XftTextExtents16 (dpy, - FONT_INSTANCE_X_XFTFONT(fi), + FONT_INSTANCE_X_XFTFONT (fi), (XftChar16 *) run->ptr, run->len, &gi); } else { XftTextExtents8 (dpy, - FONT_INSTANCE_X_XFTFONT(fi), + FONT_INSTANCE_X_XFTFONT (fi), run->ptr, run->len, &gi); } rect_height = rect_height > gi.height @@ -1453,13 +1453,13 @@ cursor_width, height }; XUnionRectWithRegion (&clip_box, clip_reg, clip_reg); - XftDrawSetClip(xftDraw, clip_reg); - XDestroyRegion(clip_reg); + XftDrawSetClip (xftDraw, clip_reg); + XDestroyRegion (clip_reg); } { /* draw background rectangle & draw text */ - int rect_height = FONT_INSTANCE_ASCENT(fi) - + FONT_INSTANCE_DESCENT(fi); - int rect_width = x_text_width_single_run(f, cachel, &runs[i]); + int rect_height = FONT_INSTANCE_ASCENT (fi) + + FONT_INSTANCE_DESCENT (fi); + int rect_width = x_text_width_single_run (f, cachel, &runs[i]); XftColor xft_color; xft_color = XFT_FROB_LISP_COLOR (cursor_cachel->background, 0); @@ -1475,7 +1475,7 @@ (XftChar16 *) runs[i].ptr, runs[i].len); } - XftDrawSetClip(xftDraw, 0); + XftDrawSetClip (xftDraw, 0); } else /* core font, not Xft */ #endif /* USE_XFT */ @@ -1772,7 +1772,7 @@ Draw a vertical divider down the right side of the given window. ****************************************************************************/ static void -XLIKE_output_vertical_divider (struct window *w, int USED_IF_X(clear)) +XLIKE_output_vertical_divider (struct window *w, int USED_IF_X (clear)) { struct frame *f = XFRAME (w->frame); struct device *d = XDEVICE (f->device);