summaryrefslogtreecommitdiff
path: root/src/helper/types.h
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-18 07:11:11 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-18 07:11:11 +0000
commit86e4324f1bd4cd8135cb857e4b940b1f2e872dc3 (patch)
tree34af086adb401a42d1de84eade00f3897a5cd174 /src/helper/types.h
parent1840226d555b9863a2315bcc6218671fdfa2af32 (diff)
downloadopenocd+libswd-86e4324f1bd4cd8135cb857e4b940b1f2e872dc3.tar.gz
openocd+libswd-86e4324f1bd4cd8135cb857e4b940b1f2e872dc3.tar.bz2
openocd+libswd-86e4324f1bd4cd8135cb857e4b940b1f2e872dc3.tar.xz
openocd+libswd-86e4324f1bd4cd8135cb857e4b940b1f2e872dc3.zip
Finish transforming 'u32' to 'uint32_t'.
- Replace '\([^_]\)u32' with '\1uint32_t'. - Replace '^u32' with 'uint32_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2281 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/types.h')
-rw-r--r--src/helper/types.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helper/types.h b/src/helper/types.h
index 44967bd3..e1a898e5 100644
--- a/src/helper/types.h
+++ b/src/helper/types.h
@@ -38,8 +38,8 @@ typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
#endif
-#ifndef u32
-typedef unsigned int u32;
+#ifndef uint32_t
+typedef unsigned int uint32_t;
#endif
#ifndef u64
@@ -88,9 +88,9 @@ typedef bool _Bool;
*/
-static inline u32 le_to_h_u32(const uint8_t* buf)
+static inline uint32_t le_to_h_u32(const uint8_t* buf)
{
- return (u32)(buf[0] | buf[1] << 8 | buf[2] << 16 | buf[3] << 24);
+ return (uint32_t)(buf[0] | buf[1] << 8 | buf[2] << 16 | buf[3] << 24);
}
static inline uint16_t le_to_h_u16(const uint8_t* buf)
@@ -98,9 +98,9 @@ static inline uint16_t le_to_h_u16(const uint8_t* buf)
return (uint16_t)(buf[0] | buf[1] << 8);
}
-static inline u32 be_to_h_u32(const uint8_t* buf)
+static inline uint32_t be_to_h_u32(const uint8_t* buf)
{
- return (u32)(buf[3] | buf[2] << 8 | buf[1] << 16 | buf[0] << 24);
+ return (uint32_t)(buf[3] | buf[2] << 8 | buf[1] << 16 | buf[0] << 24);
}
static inline uint16_t be_to_h_u16(const uint8_t* buf)