Rename hb-view.c and test.c to .cc files
This commit is contained in:
parent
eb5796f588
commit
f1425a549f
|
@ -114,7 +114,7 @@ if HAVE_GLIB
|
||||||
if HAVE_FREETYPE
|
if HAVE_FREETYPE
|
||||||
if HAVE_CAIRO_FT
|
if HAVE_CAIRO_FT
|
||||||
if HAVE_CAIRO_PNG
|
if HAVE_CAIRO_PNG
|
||||||
hb_view_SOURCES = hb-view.c
|
hb_view_SOURCES = hb-view.cc
|
||||||
hb_view_CPPFLAGS = $(HBCFLAGS) $(CAIRO_FT_CFLAGS) $(CAIRO_PNG_CFLAGS)
|
hb_view_CPPFLAGS = $(HBCFLAGS) $(CAIRO_FT_CFLAGS) $(CAIRO_PNG_CFLAGS)
|
||||||
hb_view_LDADD = libharfbuzz.la -lm $(HBLIBS) $(CAIRO_FT_LIBS) $(CAIRO_PNG_LIBS)
|
hb_view_LDADD = libharfbuzz.la -lm $(HBLIBS) $(CAIRO_FT_LIBS) $(CAIRO_PNG_LIBS)
|
||||||
bin_PROGRAMS += hb-view
|
bin_PROGRAMS += hb-view
|
||||||
|
@ -127,7 +127,7 @@ main_SOURCES = main.cc
|
||||||
main_CPPFLAGS = $(HBCFLAGS)
|
main_CPPFLAGS = $(HBCFLAGS)
|
||||||
main_LDADD = libharfbuzz.la $(HBLIBS)
|
main_LDADD = libharfbuzz.la $(HBLIBS)
|
||||||
|
|
||||||
test_SOURCES = test.c
|
test_SOURCES = test.cc
|
||||||
test_CPPFLAGS = $(HBCFLAGS)
|
test_CPPFLAGS = $(HBCFLAGS)
|
||||||
test_LDADD = libharfbuzz.la $(HBLIBS)
|
test_LDADD = libharfbuzz.la $(HBLIBS)
|
||||||
|
|
||||||
|
|
|
@ -318,7 +318,7 @@ static void parse_features (char *s)
|
||||||
p++;
|
p++;
|
||||||
} while (p);
|
} while (p);
|
||||||
|
|
||||||
features = calloc (num_features, sizeof (*features));
|
features = (hb_feature_t *) calloc (num_features, sizeof (*features));
|
||||||
|
|
||||||
/* now do the actual parsing */
|
/* now do the actual parsing */
|
||||||
p = s;
|
p = s;
|
|
@ -79,7 +79,7 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
blob = hb_blob_create (font_data, len,
|
blob = hb_blob_create (font_data, len,
|
||||||
HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE,
|
HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE,
|
||||||
destroy, user_data);
|
user_data, destroy);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create the face */
|
/* Create the face */
|
||||||
|
@ -92,3 +92,6 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HB_END_DECLS
|
Loading…
Reference in New Issue