mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-164 genccode accepts multiple files in input - for use with nmake makefile
X-SVN-Rev: 379
This commit is contained in:
parent
874ad280e4
commit
1f29490578
1 changed files with 8 additions and 2 deletions
|
@ -18,6 +18,8 @@
|
|||
*
|
||||
* This program reads a binary file and creates a C source code file
|
||||
* with a byte array that contains the data of the binary file.
|
||||
*
|
||||
* 12/09/1999 weiv Added multiple file handling
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -47,12 +49,16 @@ extern int
|
|||
main(int argc, char *argv[]) {
|
||||
if(argc<=1) {
|
||||
fprintf(stderr,
|
||||
"usage: %s filename\n"
|
||||
"usage: %s filename1 filename2 ...\n"
|
||||
"\tread the binary input file and \n"
|
||||
"\tcreate a .c file with a byte array that contains the input file's data\n",
|
||||
argv[0]);
|
||||
} else {
|
||||
writeCCode(getLongPathname(argv[1]));
|
||||
while (--argc) {
|
||||
fprintf(stdout, "Generating C code for %s\n", getLongPathname(argv[argc]));
|
||||
column=0xffff;
|
||||
writeCCode(getLongPathname(argv[argc]));
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue