[pango: 2/3] Replace fallthrough comments with G_GNUC_FALLTHROUGH
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango: 2/3] Replace fallthrough comments with G_GNUC_FALLTHROUGH
- Date: Mon, 8 Jun 2020 15:53:25 +0000 (UTC)
commit 0b3cd20be5249c51ec981a66c07a39d54d1d1c9d
Author: Timm Bäder <tbaeder redhat com>
Date: Tue Apr 14 16:31:58 2020 +0200
Replace fallthrough comments with G_GNUC_FALLTHROUGH
examples/cairotwisted.c | 4 ++--
pango/break.c | 6 +++---
pango/pango-renderer.c | 2 +-
tests/testboundaries_ucd.c | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c
index d2d1cd30..1572c89a 100644
--- a/examples/cairotwisted.c
+++ b/examples/cairotwisted.c
@@ -234,7 +234,7 @@ parametrize_path (cairo_path_t *path)
case CAIRO_PATH_CLOSE_PATH:
/* Make it look like it's a line_to to last_move_to */
data = (&last_move_to) - 1;
- /* fall through */
+ G_GNUC_FALLTHROUGH;
case CAIRO_PATH_LINE_TO:
parametrization[i] = two_points_distance (¤t_point, &data[1]);
current_point = data[1];
@@ -361,7 +361,7 @@ point_on_path (parametrized_path_t *param,
case CAIRO_PATH_CLOSE_PATH:
/* Make it look like it's a line_to to last_move_to */
data = (&last_move_to) - 1;
- /* fall through */
+ G_GNUC_FALLTHROUGH;
case CAIRO_PATH_LINE_TO:
{
ratio = the_x / parametrization[i];
diff --git a/pango/break.c b/pango/break.c
index ca62a28f..44718d82 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -405,7 +405,7 @@ pango_default_break (const gchar *text,
GB_type = GB_Prepend;
break;
}
- /* fall through */
+ G_GNUC_FALLTHROUGH;
case G_UNICODE_CONTROL:
case G_UNICODE_LINE_SEPARATOR:
case G_UNICODE_PARAGRAPH_SEPARATOR:
@@ -421,7 +421,7 @@ pango_default_break (const gchar *text,
GB_type = GB_ControlCRLF;
break;
}
- /* fall through */
+ G_GNUC_FALLTHROUGH;
case G_UNICODE_OTHER_LETTER:
if (makes_hangul_syllable)
@@ -594,7 +594,7 @@ pango_default_break (const gchar *text,
case G_UNICODE_CONTROL:
if (wc != 0x000D && wc != 0x000A && wc != 0x000B && wc != 0x000C && wc != 0x0085)
break;
- /* fall through */
+ G_GNUC_FALLTHROUGH;
case G_UNICODE_LINE_SEPARATOR:
case G_UNICODE_PARAGRAPH_SEPARATOR:
WB_type = WB_NewlineCRLF; /* CR, LF, Newline */
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 6c0786c5..539df34a 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -227,7 +227,7 @@ draw_underline (PangoRenderer *renderer,
rect->y + 2 * rect->height,
rect->width,
rect->height);
- /* Fall through */
+ G_GNUC_FALLTHROUGH;
case PANGO_UNDERLINE_SINGLE:
case PANGO_UNDERLINE_LOW:
case PANGO_UNDERLINE_SINGLE_LINE:
diff --git a/tests/testboundaries_ucd.c b/tests/testboundaries_ucd.c
index ee5617bc..f77abdcd 100644
--- a/tests/testboundaries_ucd.c
+++ b/tests/testboundaries_ucd.c
@@ -104,7 +104,7 @@ parse_line (gchar *line,
{
case 0x00f7: /* DIVISION SIGN: boundary here */
temp_attr.bits |= bits.bits;
- /* fall through */
+ G_GNUC_FALLTHROUGH;
case 0x00d7: /* MULTIPLICATION SIGN: no boundary here */
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]