From: Zachary T Welch Date: Fri, 13 Nov 2009 17:04:14 +0000 (-0800) Subject: arm9tdmi_vector_t -> struct arm9tdmi_vector X-Git-Tag: v0.4.0-rc1~642 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22f6a4cef5b4bf6696a7ea0fa41fafc3da06c9fa;p=openocd arm9tdmi_vector_t -> struct arm9tdmi_vector Remove misleading typedef and redundant suffix from struct arm9tdmi_vector. Renames enum arm9tdmi_vector as enum arm9tdmi_vector_bit. --- diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c index 5e034934..fdd395a5 100644 --- a/src/target/arm9tdmi.c +++ b/src/target/arm9tdmi.c @@ -45,7 +45,7 @@ #define _DEBUG_INSTRUCTION_EXECUTION_ #endif -static const arm9tdmi_vector_t arm9tdmi_vectors[] = +static const struct arm9tdmi_vector arm9tdmi_vectors[] = { {"reset", ARM9TDMI_RESET_VECTOR}, {"undef", ARM9TDMI_UNDEF_VECTOR}, diff --git a/src/target/arm9tdmi.h b/src/target/arm9tdmi.h index 55223179..2e25b52c 100644 --- a/src/target/arm9tdmi.h +++ b/src/target/arm9tdmi.h @@ -33,13 +33,13 @@ struct arm9tdmi_common struct arm7_9_common arm7_9_common; }; -typedef struct arm9tdmi_vector_s +struct arm9tdmi_vector { char *name; uint32_t value; -} arm9tdmi_vector_t; +}; -enum arm9tdmi_vector +enum arm9tdmi_vector_bit { ARM9TDMI_RESET_VECTOR = 0x01, ARM9TDMI_UNDEF_VECTOR = 0x02,