From 696a20fea495b589305abe6cbd4cbfeb498a33a6 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Sun, 13 Jul 2008 21:07:14 +0000 Subject: - remove unused objcopy from configure.in - make sure bin2char is built before openocd - add generated startup_tcl.c to clean list - pass startup_tcl directly to Jim_Eval git-svn-id: svn://svn.berlios.de/openocd/trunk@805 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/bin2char.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'src/bin2char.c') diff --git a/src/bin2char.c b/src/bin2char.c index 436839bb..f1c809c8 100644 --- a/src/bin2char.c +++ b/src/bin2char.c @@ -1,8 +1,27 @@ +/*************************************************************************** + * Copyright (C) 2005 by Dominic Rath * + * Dominic.Rath@gmx.de * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + #include #include -int -main(int argc, char **argv) +int main(int argc, char **argv) { int c; unsigned int n; @@ -24,7 +43,6 @@ main(int argc, char **argv) if ((++n % 16) == 0) fprintf(stdout, "\n"); } - fprintf(stdout, "0 /* terminate with a nil */};\n"); - fprintf(stdout, "unsigned int %s_len = %u;\n", name, n); + fprintf(stdout, "0 /* terminate with a null */};\n"); return 0; } -- cgit v1.2.3