openocd/src/helper
Zachary T Welch 3f9fd4e2a6 add COMMAND_HANDLER and COMMAND_HELPER macros
The COMMAND_HANDLER and COMMAND_HELPER macros allow commands to be
defined in a manner that decouples them from the exact order and type of
their parameters.  Once converted, incremental changes to the command
handler type can be addressed in incremental patches that do not need to
touch the entire tree.

These macros' implementation, __COMMAND_HANDLER, is used to define the
new command_handler_t type, and additional patches will use it to derive
new macros to define extended command types (e.g. flash, nand, pld).
The CALL_COMMAND_HANDLER provides a means of calling helpers or nested
handlers from withing a command handler.

This patch uses C99 varadic macro expansion.  Please report compilers
that cannot handle this code.
2009-11-13 10:51:45 -08:00
..
bin2char.c bin2char: for win32 set stdin/stdout to binary mode 2009-10-30 11:59:57 +00:00
binarybuffer.c Andreas Fritiofson <andreas.fritiofson@gmail.com> UTF8 fixes 2009-07-17 19:54:25 +00:00
binarybuffer.h src/helper: wrap and clean headers. 2009-11-09 09:44:33 -08:00
command.c add command_output_handler_t 2009-11-13 10:51:45 -08:00
command.h add COMMAND_HANDLER and COMMAND_HELPER macros 2009-11-13 10:51:45 -08:00
configuration.c Andreas Fritiofson <andreas.fritiofson@gmail.com> UTF8 fixes 2009-07-17 19:54:25 +00:00
configuration.h src/helper: wrap and clean headers. 2009-11-09 09:44:33 -08:00
fileio.c Andreas Fritiofson <andreas.fritiofson@gmail.com> UTF8 fixes 2009-07-17 19:54:25 +00:00
fileio.h src/helper: wrap and clean headers. 2009-11-09 09:44:33 -08:00
ioutil.c Andreas Fritiofson <andreas.fritiofson@gmail.com> UTF8 fixes 2009-07-17 19:54:25 +00:00
jim-eventloop.c Sync with official Jim Tcl repository. 2009-10-19 15:16:42 +02:00
jim-eventloop.h Andreas Fritiofson <andreas.fritiofson@gmail.com> UTF8 fixes 2009-07-17 19:54:25 +00:00
jim.c Sync with official Jim Tcl repository. 2009-10-19 15:16:42 +02:00
jim.h Sync with official Jim Tcl repository. 2009-10-19 15:16:42 +02:00
log.c Improve debug_level command argument parsing. 2009-11-05 18:03:18 -08:00
log.h log: improve log_callback_fn signature 2009-11-11 05:40:48 -08:00
Makefile.am xscale: better fix for debug_handler.bin 2009-10-16 13:52:40 -07:00
membuf.c Switch to strotk() grr.... 2009-06-27 16:44:35 +00:00
membuf.h Add missing copyright header and fix @page direction in membuf.h. 2009-07-01 19:55:39 +00:00
options.c David Brownell <david-b@pacbell.net> Be sure the built-in search paths always go *after* ones provided 2009-08-30 17:27:50 +00:00
replacements.c safer conversion to HANDLER on MinGW-W64 2009-10-17 22:18:38 -07:00
replacements.h src/helper: wrap and clean headers. 2009-11-09 09:44:33 -08:00
startup.tcl wrap help command 2009-11-11 12:15:39 -08:00
system.h remove hacks no longer required to build OpenOCD w/eCos 2009-06-05 06:43:09 +00:00
time_support.c time_support: improve use of types 2009-11-11 05:40:48 -08:00
time_support.h time_support: improve use of types 2009-11-11 05:40:48 -08:00
types.h Add stringify macros in src/helper/types.h. 2009-11-05 17:20:18 -08:00