]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg: BaseOrderedCollectionRedBlackTreeLib: improve coding style
authorEric Dong <eric.dong@intel.com>
Wed, 20 Aug 2014 02:06:12 +0000 (02:06 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 20 Aug 2014 02:06:12 +0000 (02:06 +0000)
commit64fabae54bf39a3b164e911b9d3ff6985dc66036
treea5b4a3907e7879b1c33123a7c99fd31f43e419dc
parent30cad98e5fc4dfff73486b5b9e420a0a0b7a1bed
MdePkg: BaseOrderedCollectionRedBlackTreeLib: improve coding style

- The edk2 coding style prefers each variable declaration to stand on
  its own line.
- Internal linkage (ie. STATIC) functions have caused problems with
  source level debugging before, so we generally avoid STATIC in MdePkg.
- Even forward declarations of functions should carry full comment
  blocks.
- Nullity checks in controlling expressions should be spelled out
  explicitly, as (Ptr != NULL).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15843 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.c