Andreas Fritiofson wrote:
> > Now there's 3 versions to choose from :-)
> 
> It's not too late. The target versions seems nice and readable. And
> correct, as far as I can see this late hour. I think the jtag version
> should follow the behavior of these and only remove the first matching
> handler. That would be the correct thing to do, if there was a point
> in having the same handler registered more than once.

Really? How are the callbacks being used?


> The only issue I have with copying the target version is that having
> the same code duplicated in three places probably warrants refactoring
> it into a helper function instead.

Which is difficult for something simple as a linked list, unless the
list entries are identical, and of the same type. Are they?


//Peter
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to