On Sun, May 17, 2009 at 11:15 PM, David Brownell <davi...@pacbell.net> wrote: > On Sunday 17 May 2009, Rick Altherr wrote: >> Rather than combine them, I'd like to see jtag_queue_command() enforce >> validation of the command to be enqueued. Then the patterns would be: >> >> cmd = cmd_queue_alloc(); >> >> cmd->type = JTAG_SCAN; >> .... > > Then how about passing JTAG_* to the allocator? > > Related approach: command-specific allocators, which take > the parameters that will be fed to each command.
This is going towards an OO approach. I am no against that, but I would like to get this patch through independantly of this wider discussion. Michael _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development