Skip to content

Commit

Permalink
Update the Name Space Rules page examples to follow the coding standard
Browse files Browse the repository at this point in the history
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 <rebecca@nuviainc.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
  • Loading branch information
Rebecca Cran authored and mdkinney committed Dec 8, 2020
1 parent 9286fa6 commit 0d88b47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions 4_naming_conventions/45_name_space_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ tags may be reused only for union types.

```c
typedef struct MyStruct {
int one;
int two;
int three;
UINT32 One;
UINT32 Two;
UINT32 Three;
} MY_STRUCT;
```

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

```c
typedef struct StructOne {
INT32 one;
INT16 two;
INT32 One;
INT16 Two;
struct StructOne *MySelf;
} STRUCT_ONE;

typedef struct StructTwo {
INT16 one;
INT8 *two;
INT16 One;
INT8 *Two;
struct StructTwo *MySelf;
} STRUCT_TWO;

Expand Down

0 comments on commit 0d88b47

Please sign in to comment.