Intel® Arria® 10 SoC UEFI Boot Loader User Guide

ID 683536
Date 12/15/2017
Public
Document Table of Contents

1.11.1.3. Type and Macro Names

  1. Use all capital letters for both #define and typedef declarations. This clearly differentiates static declarations from dynamic data types.
    UINT32 UefiVariable
  2. Each word of a concept shall be separated by an underscore character. The underscore effectively separates the words, making the names more readable.
    typedef UINT32 THIS_IS_AN_EXAMPLE_OF_WHAT_TO_DO_FOR_UEFI 
    typedef struct MyStruct {
    int one;
    int two;
    int three;
    } MY_STRUCT;
  3. The use of the _t suffix, designating a type, is not allowed.
  4. The names of guard macros shall end with an underscore character.
    #ifndef FILE_NAME_H_ 
    #define FILE_NAME_H_