Skip to content

Commit

Permalink
Do you HAVE_ASPRINTF?
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Apr 23, 2024
1 parent 4dbb27e commit 2db8c1f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions general/g.mkfontcap/stroke_fonts.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,17 @@ void find_stroke_fonts(void)
&fontcap[totalfonts].path, &(fontcap[totalfonts].path),
fontcap[totalfonts].path, dirpath, HOST_DIRSEP, dirlisting[i]);
fontcap[totalfonts].path = G_malloc(10);
fprintf(stderr, "G.MKFONTCAP %d %p %p\n", &fontcap[totalfonts].path,
fontcap[totalfonts].path);
#ifdef HAVE_ASPRINTF
fprintf(stderr, "HAVE_ASPRINTF\n");
#else
fprintf(stderr, "NOT HAVE_ASPRINTF\n");
#endif
fprintf(stderr, "G.MKFONTCAP %d %p %p\n", __LINE__,
&fontcap[totalfonts].path, fontcap[totalfonts].path);
sprintf(fontcap[totalfonts].path, "hello");
fprintf(stderr, "G.MKFONTCAP %d %p %p %s\n", &fontcap[totalfonts].path,
fontcap[totalfonts].path, fontcap[totalfonts].path);
fprintf(stderr, "G.MKFONTCAP %d %p %p %s\n", __LINE__,
&fontcap[totalfonts].path, fontcap[totalfonts].path,
fontcap[totalfonts].path);
G_asprintf(&fontcap[totalfonts].path, "%s%c%s", dirpath, HOST_DIRSEP,
dirlisting[i]);
fprintf(stderr, "G.MKFONTCAP %d %p %p; %s\n", __LINE__,
Expand Down

0 comments on commit 2db8c1f

Please sign in to comment.