guint16 get_language_code(const char *str);
gchar *str_to_utf8(const gchar *str);
-inline gboolean write_tag(FILE *f, const gchar *tag);
-inline gboolean write_to_32(FILE *f, guint val);
-inline gboolean write_to_16(FILE *f, guint val);
-inline gboolean write_to_24(FILE *f, guint val);
+__attribute__ ((gnu_inline)) inline gboolean write_tag(FILE *f, const gchar *tag);
+__attribute__ ((gnu_inline)) inline gboolean write_to_32(FILE *f, guint val);
#ifdef __cplusplus
}
#endif
return g_convert(str, -1, "UTF-8", "ASCII", NULL, NULL, NULL);
}
-inline gboolean write_tag(FILE *f, const gchar *tag)
+__attribute__ ((gnu_inline)) inline gboolean write_tag(FILE *f, const gchar *tag)
{
while (*tag)
FPUTC_CHECK(*tag++, f);
return TRUE;
}
-inline gboolean write_to_32(FILE *f, guint val)
+__attribute__ ((gnu_inline)) inline gboolean write_to_32(FILE *f, guint val)
{
FPUTC_CHECK(val >> 24, f);
FPUTC_CHECK(val >> 16, f);
FPUTC_CHECK(val, f);
return TRUE;
}
-
-inline gboolean write_to_16(FILE *f, guint val)
-{
- FPUTC_CHECK(val >> 8, f);
- FPUTC_CHECK(val, f);
- return TRUE;
-}
-
-inline gboolean write_to_24(FILE *f, guint val)
-{
- write_to_16(f, val >> 8);
- FPUTC_CHECK(val, f);
- return TRUE;
-}