openocd/src/helper
Øyvind Harboe c9544e411d script: support only Tcl comments
Only Tcl comments are now supported. For classic style
commands comments were supported at the end of the line.

Move in the direction of letting the script language
decide syntax, rather than have special rules for some
commands.

Before this patch goes in, the scripts should be updated
to use ;# instead of # for end of line comments.

> mdw 0 1 2
mdw ['phys'] address [count]
  zy1000.cpu mdw address [count]
Command handler execution failed
in procedure 'mdw'
> mdw 0 1 #2
mdw ['phys'] address [count]
  zy1000.cpu mdw address [count]
Command handler execution failed
in procedure 'mdw'
> mdw 0 1 ;#2
0x00000000: ffffffff
> mdw 0 1
0x00000000: ffffffff
> mdw 0
0x00000000: ffffffff

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-12-18 21:04:22 +01:00
..
bin2char.c bin2char: for win32 set stdin/stdout to binary mode 2009-10-30 11:59:57 +00:00
binarybuffer.c BINARYBUFFER: review scope of data and functions 2010-04-10 21:54:37 +08:00
binarybuffer.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
command.c script: support only Tcl comments 2010-12-18 21:04:22 +01:00
command.h jim tests: use installed 2010-10-29 15:10:51 +02:00
configuration.c don't require 'openocd.cfg' to start 2010-01-05 13:32:39 -08:00
configuration.h change #include "command.h" to <helper/command.h> 2009-12-03 04:22:48 -08:00
fileio.c fileio: fileio_size() can now fail 2010-09-29 18:56:07 +02:00
fileio.h fileio: fileio_size() can now fail 2010-09-29 18:56:07 +02:00
ioutil_stubs.c stubs: buildfix 2009-12-02 15:24:14 -08:00
ioutil.c ioutil: fix internal fn names 2010-08-02 11:59:46 +02:00
ioutil.h remove BUILD_IOUTIL symbol 2009-12-02 13:26:26 -08:00
log.c log: remove hack to redirect logs when pipes are in use 2010-10-01 10:21:33 +02:00
log.h HELPER/LOG: review unused symbols 2010-04-10 22:25:22 +08:00
Makefile.am build: add common.mk 2010-11-18 14:05:56 +00:00
options.c gdbderver: fix gdb pipe startup overflow 2010-10-05 15:00:40 +01:00
replacements.c safer conversion to HANDLER on MinGW-W64 2009-10-17 22:18:38 -07:00
replacements.h ARM semihosting: win32 and cygwin fixes 2010-01-28 21:05:09 +00:00
startup.tcl startup: removed capture_catch 2010-09-20 20:45:48 +02:00
system.h Clang buildfixes 2010-01-29 00:02:12 -08:00
time_support_common.c ecos: crisper implementation of timeval_ms() 2009-12-16 08:15:05 +01:00
time_support_ecos.c ecos: crisper implementation of timeval_ms() 2009-12-16 08:15:05 +01:00
time_support.c TIME_SUPPORT: review unused symbols 2010-04-10 19:25:32 +08:00
time_support.h TIME_SUPPORT: review unused symbols 2010-04-10 19:25:32 +08:00
types.h warnings: fix alignment warnings 2010-09-20 13:12:35 +02:00
util.c util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00
util.h util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00