]> git.sur5r.net Git - openocd/commit
improve command registration
authorZachary T Welch <zw@superlucidity.net>
Wed, 11 Nov 2009 18:20:55 +0000 (10:20 -0800)
committerZachary T Welch <zw@superlucidity.net>
Wed, 11 Nov 2009 21:50:28 +0000 (13:50 -0800)
commit158698e3331b446243b863ab8b58ebee2c56f0cc
tree931dcd4581066c473a4de3fb3365b9dab700c05f
parent46d9ba4c8b675deb96ac533885500eb62b6c9909
improve command registration

Eliminate duplicate code for linking commands into a list.

Adds a check to ensure the command does not already exist;
if it does, return that one instead of creating a duplicate.
src/helper/command.c