Bug 796119 - part 2: don't #include prtypes.h in xpcom/ unless absolutely necessary; r=ehsan

"absolutely necessary" in this context means "needs PRUnichar", which is
the reason that nsString.h now #includes prtypes.h.
This commit is contained in:
Nathan Froyd 2012-10-01 17:01:01 -04:00
parent c5ce3f24c9
commit c2fddb8f07
17 changed files with 3 additions and 21 deletions

View File

@ -12,7 +12,6 @@
#include "nscore.h"
#include <mozilla/StandardInteger.h>
#include "prtypes.h"
#ifdef __cplusplus
extern "C" {

View File

@ -6,7 +6,6 @@
#define mozilla_BinaryPath_h
#include "nsXPCOMPrivate.h" // for MAXPATHLEN
#include "prtypes.h"
#ifdef XP_WIN
#include <windows.h>
#elif defined(XP_MACOSX)

View File

@ -6,7 +6,6 @@
#ifndef _nsXULAppAPI_h__
#define _nsXULAppAPI_h__
#include "prtypes.h"
#include "nsID.h"
#include "xrecore.h"
#include "nsXPCOM.h"

View File

@ -10,7 +10,6 @@
#include <ctype.h>
#include "plstr.h"
#include "nscore.h"
#include "prtypes.h"
#include "nsCppSharedAllocator.h"
#include "nsCRTGlue.h"

View File

@ -21,7 +21,6 @@
#ifndef nsHashtable_h__
#define nsHashtable_h__
#include "prtypes.h"
#include "pldhash.h"
#include "prlock.h"
#include "nscore.h"

View File

@ -5,7 +5,6 @@
#include "nsStringEnumerator.h"
#include "prtypes.h"
#include "nsCRT.h"
#include "nsString.h"
#include "nsReadableUtils.h"

View File

@ -21,8 +21,6 @@
#include "prprf.h"
#endif
#include "prtypes.h"
#ifdef DEBUG
/**

View File

@ -34,7 +34,6 @@
*/
#include <stdlib.h>
#include "prtypes.h"
#include "nsAlgorithm.h"
#include "nsQuickSort.h"

View File

@ -11,7 +11,6 @@
#ifndef nsQuickSort_h___
#define nsQuickSort_h___
#include "prtypes.h"
#include "nscore.h"
#ifdef __cplusplus

View File

@ -12,7 +12,6 @@
#include <string.h>
#include "prtypes.h"
#include "nsAlgorithm.h"
#include "nscore.h"
#include "nsQuickSort.h"

View File

@ -7,7 +7,6 @@
#define nsTHashtable_h__
#include "nscore.h"
#include "prtypes.h"
#include "pldhash.h"
#include "nsDebug.h"
#include NEW_H

View File

@ -15,7 +15,6 @@
#include "nsISimpleEnumerator.h"
#include "nsIDirectoryEnumerator.h"
#include "nsIComponentManager.h"
#include "prtypes.h"
#include "prio.h"
#include "nsReadableUtils.h"

View File

@ -15,7 +15,6 @@
#include "nsISimpleEnumerator.h"
#include "nsIComponentManager.h"
#include "prtypes.h"
#include "prio.h"
#include "private/pprio.h" // To get PR_ImportFile
#include "prprf.h"

View File

@ -14,7 +14,6 @@
# define NS_InvokeByIndex NS_InvokeByIndex_P
#endif
#include "prtypes.h"
#include "nscore.h"
#include "nsISupports.h"
#include "xpt_struct.h"

View File

@ -8,7 +8,6 @@
#ifndef xptiinfo_h___
#define xptiinfo_h___
#include "prtypes.h"
#include "nscore.h"
#include "xpt_struct.h"

View File

@ -11,11 +11,6 @@
// for |nsCharSourceTraits|, |nsCharSinkTraits|
#endif
#ifndef prtypes_h___
#include "prtypes.h"
// for |uint32_t|...
#endif
#ifndef nsDebug_h___
#include "nsDebug.h"
// for NS_ASSERTION

View File

@ -21,6 +21,9 @@
#include "nsReadableUtils.h"
#endif
// For PRUnichar
#include "prtypes.h"
#include NEW_H
// enable support for the obsolete string API if not explicitly disabled