HomePhabricator

Make some global variables less-global (static)
99860de3c9b5Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Make some global variables less-global (static)

Explicitly make these global variables less-global to reduce the maximum
scope of this global state.

In my experience global variables tend to be a major source of bugs. As
such the less accessible they are the less likely they are to be the
source of a bug.

Signed-off-by: Giel van Schijndel <me@mortis.eu>

Details

Provenance
Giel van Schijndel <me@mortis.eu>Authored on Aug 11 2011, 11:41
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING865ed8a1e5c5: Compile with DEBUG_LOCKORDER to detect inconsistent lock orderings that can…
Branches
Unknown
Tags
Unknown

Event Timeline

Giel van Schijndel <me@mortis.eu> committed rSTAGING99860de3c9b5: Make some global variables less-global (static) (authored by Giel van Schijndel <me@mortis.eu>).Aug 19 2011, 05:24