Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
U8, U16, U32 data type changes
[o-du/l2.git]
/
src
/
cm
/
cm_tkns.x
diff --git
a/src/cm/cm_tkns.x
b/src/cm/cm_tkns.x
index
dd88436
..
48084c2
100755
(executable)
--- a/
src/cm/cm_tkns.x
+++ b/
src/cm/cm_tkns.x
@@
-39,54
+39,54
@@
extern "C" {
/* typedefs */
/* Token Present */
/* typedefs */
/* Token Present */
-typedef TknU8 TknPres;
+typedef TknU
Int
8 TknPres;
/* Do not remove TknBool definition. If cm_gprs.x is used then include this
* file before cm_gprs.x */
/* Do not remove TknBool definition. If cm_gprs.x is used then include this
* file before cm_gprs.x */
-typedef TknU8 TknBool;
+typedef TknU
Int
8 TknBool;
typedef struct tknS16
{
typedef struct tknS16
{
-
U8
pres; /* present flag */
-
U8
spare1; /* for alignment */
+
uint8_t
pres; /* present flag */
+
uint8_t
spare1; /* for alignment */
S16 val; /* value */
#ifdef ALIGN_64BIT
S16 val; /* value */
#ifdef ALIGN_64BIT
-
U32
spare2; /* for 64 bit alignment */
+
uint32_t
spare2; /* for 64 bit alignment */
#endif
} TknS16;
/* Token TknStr8 */
typedef struct tknStr8 /* token string */
{
#endif
} TknS16;
/* Token TknStr8 */
typedef struct tknStr8 /* token string */
{
-
U8
pres; /* present flag */
-
U8
len; /* length */
-
U16
spare1; /* for alignment */
+
uint8_t
pres; /* present flag */
+
uint8_t
len; /* length */
+
uint16_t
spare1; /* for alignment */
#ifdef ALIGN_64BIT
#ifdef ALIGN_64BIT
-
U32
spare2; /* for 64 bit alignment */
+
uint32_t
spare2; /* for 64 bit alignment */
#endif
#endif
-
U8
val[8]; /* string value - 4 byte alligned */
+
uint8_t
val[8]; /* string value - 4 byte alligned */
} TknStr8;
/* Token TknStr16 */
typedef struct tknStr16 /* token string */
{
} TknStr8;
/* Token TknStr16 */
typedef struct tknStr16 /* token string */
{
-
U8
pres; /* present flag */
-
U8
len; /* length */
-
U16
spare1; /* for alignment */
+
uint8_t
pres; /* present flag */
+
uint8_t
len; /* length */
+
uint16_t
spare1; /* for alignment */
#ifdef ALIGN_64BIT
#ifdef ALIGN_64BIT
-
U32
spare2; /* for 64 bit alignment */
+
uint32_t
spare2; /* for 64 bit alignment */
#endif
#endif
-
U8
val[16]; /* string value - 4 byte alligned */
+
uint8_t
val[16]; /* string value - 4 byte alligned */
} TknStr16;
typedef struct tknStrOSXL
{
} TknStr16;
typedef struct tknStrOSXL
{
-
U8
pres; /* present flag */
-
U8
spare1; /* spare */
-
U16
len; /* length */
+
uint8_t
pres; /* present flag */
+
uint8_t
spare1; /* spare */
+
uint16_t
len; /* length */
#ifdef ALIGN_64BIT
#ifdef ALIGN_64BIT
-
U32
spare2; /* for 64 bit alignment */
+
uint32_t
spare2; /* for 64 bit alignment */
#endif
#endif
-
U8
*val; /* string value - 4 byte alligned */
+
uint8_t
*val; /* string value - 4 byte alligned */
} TknStrOSXL;
/* Token TknBStr32 : length field indicates number of Bits present */
} TknStrOSXL;
/* Token TknBStr32 : length field indicates number of Bits present */
@@
-103,25
+103,25
@@
typedef TknStrOSXL TknStrBSXL;
/* Token TknStrBMP4 */
typedef struct tknStrBMP4 /* token string */
{
/* Token TknStrBMP4 */
typedef struct tknStrBMP4 /* token string */
{
-
U8
pres; /* present flag */
-
U8
len; /* length */
-
U16
spare1; /* for alignment */
+
uint8_t
pres; /* present flag */
+
uint8_t
len; /* length */
+
uint16_t
spare1; /* for alignment */
#ifdef ALIGN_64BIT
#ifdef ALIGN_64BIT
-
U32
spare2; /* for 64 bit alignment */
+
uint32_t
spare2; /* for 64 bit alignment */
#endif
#endif
-
U16
val[4]; /* string value - 4 byte alligned */
+
uint16_t
val[4]; /* string value - 4 byte alligned */
} TknStrBMP4;
/* Token TknStrBMPXL */
typedef struct tknStrBMPXL
{
} TknStrBMP4;
/* Token TknStrBMPXL */
typedef struct tknStrBMPXL
{
-
U8
pres; /* present flag */
-
U8
spare1; /* spare */
-
U16
len; /* length */
+
uint8_t
pres; /* present flag */
+
uint8_t
spare1; /* spare */
+
uint16_t
len; /* length */
#ifdef ALIGN_64BIT
#ifdef ALIGN_64BIT
-
U32
spare2; /* for 64 bit alignment */
+
uint32_t
spare2; /* for 64 bit alignment */
#endif
#endif
-
U16
*val; /* string value - 4 byte alligned */
+
uint16_t
*val; /* string value - 4 byte alligned */
} TknStrBMPXL;
} TknStrBMPXL;
@@
-132,24
+132,24
@@
typedef struct tknStrBMPXL
/* Token TknStrUNI4 */
typedef struct tknStrUNI4 /* token string */
{
/* Token TknStrUNI4 */
typedef struct tknStrUNI4 /* token string */
{
-
U8
pres; /* present flag */
-
U8
len; /* length */
-
U16
spare1; /* for alignment */
+
uint8_t
pres; /* present flag */
+
uint8_t
len; /* length */
+
uint16_t
spare1; /* for alignment */
#ifdef ALIGN_64BIT
#ifdef ALIGN_64BIT
-
U32
spare2; /* for 64 bit alignment */
+
uint32_t
spare2; /* for 64 bit alignment */
#endif
#endif
-
U32
val[4]; /* string value - 4 byte alligned */
+
uint32_t
val[4]; /* string value - 4 byte alligned */
} TknStrUNI4;
typedef struct tknStrUNIXL /* Universal String */
{
} TknStrUNI4;
typedef struct tknStrUNIXL /* Universal String */
{
-
U8
pres; /* present flag */
-
U8
spare1; /* spare */
-
U16
len; /* length */
+
uint8_t
pres; /* present flag */
+
uint8_t
spare1; /* spare */
+
uint16_t
len; /* length */
#ifdef ALIGN_64BIT
#ifdef ALIGN_64BIT
-
U32
spare2; /* for 64 bit alignment */
+
uint32_t
spare2; /* for 64 bit alignment */
#endif
#endif
-
U32
*val; /* string value- 4 byte alligned */
+
uint32_t
*val; /* string value- 4 byte alligned */
} TknStrUNIXL;
/* common packing functions */
} TknStrUNIXL;
/* common packing functions */