From f6e2e97b59ac58a4370e7e0d98408063321d7343 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 7 Sep 2007 13:08:01 +0000 Subject: 2007-09-07 Joel Sherrill * bin2c.c: Update comments. --- tools/build/ChangeLog | 4 ++++ tools/build/rtems-bin2c.c | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tools/build/ChangeLog b/tools/build/ChangeLog index da02a19d51..bb87a4404b 100644 --- a/tools/build/ChangeLog +++ b/tools/build/ChangeLog @@ -1,3 +1,7 @@ +2007-09-07 Joel Sherrill + + * bin2c.c: Update comments. + 2007-09-04 Joel Sherrill * bin2c.c: Significant improvements -- add multiple options, generate diff --git a/tools/build/rtems-bin2c.c b/tools/build/rtems-bin2c.c index 53d25eb458..a489552f41 100644 --- a/tools/build/rtems-bin2c.c +++ b/tools/build/rtems-bin2c.c @@ -1,22 +1,26 @@ /* * bin2c.c * - * convert a binary file into a C source vector + * convert a binary file into a C source array. * - * put into the public domain by Sandro Sigala + * Origin: + * put into the public domain by Sandro Sigala + * http://www.wxwidgets.org/wiki/index.php/Embedding_PNG_Images-Bin2c_In_C + * + * Subsequently modified by Joel Sherrill + * to add a number of capabilities not in the original. * * syntax: bin2c [-c] [-z] * * -c do NOT add the "const" keyword to definition * -s add the "static" keywork to definition + * -v verbose * -z terminate the array with a zero (useful for embedded C strings) * * examples: * bin2c -c myimage.png myimage_png.cpp * bin2c -z sometext.txt sometext_txt.cpp * - * From: - * http://www.wxwidgets.org/wiki/index.php/Embedding_PNG_Images-Bin2c_In_C */ #include -- cgit v1.2.3