Skip to content

Commit 0d88b47

Browse files
Rebecca Cranmdkinney
authored andcommitted
Update the Name Space Rules page examples to follow the coding standard
The examples in the 45_name_space_rules.md files doesn't follow the coding standard in the following ways: - Only use UEFI data types. Use of standard C data types is prohibited. - Identifiers shall contain mixed upper- and lower-case text. Signed-off-by: Rebecca Cran <[email protected]> Contributed-under: TianoCore Contribution Agreement 1.1 Reviewed-by: Michael D Kinney <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]>
1 parent 9286fa6 commit 0d88b47

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

4_naming_conventions/45_name_space_rules.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ tags may be reused only for union types.
5353

5454
```c
5555
typedef struct MyStruct {
56-
int one;
57-
int two;
58-
int three;
56+
UINT32 One;
57+
UINT32 Two;
58+
UINT32 Three;
5959
} MY_STRUCT;
6060
```
6161

@@ -68,14 +68,14 @@ Exceptions are structure member and union member names.
6868

6969
```c
7070
typedef struct StructOne {
71-
INT32 one;
72-
INT16 two;
71+
INT32 One;
72+
INT16 Two;
7373
struct StructOne *MySelf;
7474
} STRUCT_ONE;
7575

7676
typedef struct StructTwo {
77-
INT16 one;
78-
INT8 *two;
77+
INT16 One;
78+
INT8 *Two;
7979
struct StructTwo *MySelf;
8080
} STRUCT_TWO;
8181

0 commit comments

Comments
 (0)