From: zwelch Date: Fri, 5 Jun 2009 00:42:17 +0000 (+0000) Subject: Eliminate MixedCaps symbol from public JTAG TAP API: X-Git-Tag: v0.2.0~449 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eaf37cf9e8d1a9d41f5e6c09cb1fd0a52dc91bbb;p=openocd Eliminate MixedCaps symbol from public JTAG TAP API: - Purely mechanical transformations to the source files. - Rename 'jtag_all_taps' as '__jtag_all_taps.' - Frees original symbol name to rename the accessor function. git-svn-id: svn://svn.berlios.de/openocd/trunk@2061 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index a31bb6ee..8a710d0f 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -66,9 +66,9 @@ int jtag_srst = 0; /** * List all TAPs that have been created. */ -static jtag_tap_t *jtag_all_taps = NULL; +static jtag_tap_t *__jtag_all_taps = NULL; /** - * The number of TAPs in the jtag_all_taps list, used to track the + * The number of TAPs in the __jtag_all_taps list, used to track the * assigned chain position to new TAPs */ static int jtag_num_taps = 0; @@ -238,7 +238,7 @@ static int handle_tms_sequence_command(struct command_context_s *cmd_ctx, char * jtag_tap_t *jtag_AllTaps(void) { - return jtag_all_taps; + return __jtag_all_taps; }; int jtag_NumTotalTaps(void) @@ -267,7 +267,7 @@ static void jtag_tap_add(struct jtag_tap_s *t) { t->abs_chain_position = jtag_num_taps++; - jtag_tap_t **tap = &jtag_all_taps; + jtag_tap_t **tap = &__jtag_all_taps; while(*tap != NULL) tap = &(*tap)->next_tap; *tap = t;