static const char *dump_style_to_string(grestyle_style style) { static char buf[50]; gregorio_snprintf(buf, sizeof buf, "%16s", grestyle_style_to_string(style)); return buf; }
static void gabc_write_begin(FILE *f, grestyle_style style) { switch (style) { case ST_ITALIC: fprintf(f, "<i>"); break; case ST_COLORED: fprintf(f, "<c>"); break; case ST_SMALL_CAPS: fprintf(f, "<sc>"); break; case ST_BOLD: fprintf(f, "<b>"); break; case ST_FORCED_CENTER: fprintf(f, "{"); break; case ST_TT: fprintf(f, "<tt>"); break; case ST_UNDERLINED: fprintf(f, "<ul>"); break; case ST_ELISION: fprintf(f, "<e>"); break; case ST_INITIAL: case ST_CENTER: case ST_FIRST_WORD: case ST_FIRST_SYLLABLE: case ST_FIRST_SYLLABLE_INITIAL: /* nothing should be emitted for these */ break; default: /* not reachable unless there's a programming error */ /* LCOV_EXCL_START */ unsupported("gabc_write_begin", __LINE__, "style", grestyle_style_to_string(style)); break; /* LCOV_EXCL_STOP */ } }