On 6/16/2014 4:12 PM, Himangi Saraogi wrote:
ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.
The semantic patch that makes this change is as follows:
//
@i@
@@
@@
type T;
T[] E;
@@
- (sizeof(E)/sizeof(T))
+
ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.
The semantic patch that makes this change is as follows:
//
@i@
@@
@@
type T;
T[] E;
@@
- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)
//
Signed-off-by: Himangi Saraogi
ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.
The semantic patch that makes this change is as follows:
// smpl
@i@
@@
@@
type T;
T[] E;
@@
- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)
// /smpl
Signed-off-by: Himangi
On 6/16/2014 4:12 PM, Himangi Saraogi wrote:
ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.
The semantic patch that makes this change is as follows:
// smpl
@i@
@@
@@
type T;
T[] E;
@@
- (sizeof(E)/sizeof(T))
+
4 matches
Mail list logo