From: alle Date: Thu, 13 May 2010 21:27:42 +0000 (+0000) Subject: Generating .c file make internal data structures unusable so that .fnt file can not... X-Git-Url: https://repo.or.cz/w/kugel-rb.git/commitdiff_plain/299c74afc4479699230d2762ca81e8505f31a91c Generating .c file make internal data structures unusable so that .fnt file can not be produced after that. Make sure that both options are not used at the same time. Better fix would be to adjust the function that generates .c file, but it would require more time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26001 a1c6a512-1295-4272-9138-f99709370657 --- diff --git a/tools/convbdf.c b/tools/convbdf.c index 9e42cb8d0..d6f3da8fa 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c @@ -423,6 +423,12 @@ int main(int ac, char **av) usage(); exit(1); } + + if (gen_c && gen_fnt) { + print_info(".c and .fnt files can not be produced in the same run!\n"); + exit(1); + } + if (oflag) { if (ac > 1 || (gen_c && gen_fnt) || (gen_c && gen_h) || (gen_h && gen_fnt)) { usage();