Skip to content

Commit

Permalink
Add introductory comments to the files in mfbt/ that aren't copied fr…
Browse files Browse the repository at this point in the history
…om elsewhere, to facilitate easier MXR directory skimming. No bug, r=lumpy
  • Loading branch information
jswalden committed Dec 28, 2011
1 parent a89d939 commit d76584f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions mfbt/Assertions.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*
* ***** END LICENSE BLOCK ***** */

/* Implementations of runtime and static assertion macros for C and C++. */

#ifndef mozilla_Assertions_h_
#define mozilla_Assertions_h_

Expand Down
5 changes: 5 additions & 0 deletions mfbt/RangedPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
*
* ***** END LICENSE BLOCK ***** */

/*
* Implements a smart pointer asserted to remain within a range specified at
* construction.
*/

#ifndef mozilla_RangedPtr_h_
#define mozilla_RangedPtr_h_

Expand Down
6 changes: 2 additions & 4 deletions mfbt/RefPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@
*
* ***** END LICENSE BLOCK ***** */

/* Helpers for defining and using refcounted objects. */

#ifndef mozilla_RefPtr_h_
#define mozilla_RefPtr_h_

#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"

/**
* Helpers for defining and using refcounted objects.
*/

namespace mozilla {

template<typename T> class RefCounted;
Expand Down
5 changes: 5 additions & 0 deletions mfbt/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
*
* ***** END LICENSE BLOCK ***** */

/*
* Miscellaneous uncategorized functionality. Please add new functionality to
* new headers, or to other appropriate existing headers, not here.
*/

#ifndef mozilla_Util_h_
#define mozilla_Util_h_

Expand Down

0 comments on commit d76584f

Please sign in to comment.