mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
c5ce3f24c9
commit
c2fddb8f07
@ -12,7 +12,6 @@
|
||||
|
||||
#include "nscore.h"
|
||||
#include <mozilla/StandardInteger.h>
|
||||
#include "prtypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -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)
|
||||
|
@ -6,7 +6,6 @@
|
||||
#ifndef _nsXULAppAPI_h__
|
||||
#define _nsXULAppAPI_h__
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "nsID.h"
|
||||
#include "xrecore.h"
|
||||
#include "nsXPCOM.h"
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include <ctype.h>
|
||||
#include "plstr.h"
|
||||
#include "nscore.h"
|
||||
#include "prtypes.h"
|
||||
#include "nsCppSharedAllocator.h"
|
||||
#include "nsCRTGlue.h"
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
||||
#ifndef nsHashtable_h__
|
||||
#define nsHashtable_h__
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "pldhash.h"
|
||||
#include "prlock.h"
|
||||
#include "nscore.h"
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
|
||||
#include "nsStringEnumerator.h"
|
||||
#include "prtypes.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsString.h"
|
||||
#include "nsReadableUtils.h"
|
||||
|
@ -21,8 +21,6 @@
|
||||
#include "prprf.h"
|
||||
#endif
|
||||
|
||||
#include "prtypes.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
/**
|
||||
|
@ -34,7 +34,6 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "prtypes.h"
|
||||
#include "nsAlgorithm.h"
|
||||
#include "nsQuickSort.h"
|
||||
|
||||
|
@ -11,7 +11,6 @@
|
||||
#ifndef nsQuickSort_h___
|
||||
#define nsQuickSort_h___
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "nscore.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "nsAlgorithm.h"
|
||||
#include "nscore.h"
|
||||
#include "nsQuickSort.h"
|
||||
|
@ -7,7 +7,6 @@
|
||||
#define nsTHashtable_h__
|
||||
|
||||
#include "nscore.h"
|
||||
#include "prtypes.h"
|
||||
#include "pldhash.h"
|
||||
#include "nsDebug.h"
|
||||
#include NEW_H
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include "nsISimpleEnumerator.h"
|
||||
#include "nsIDirectoryEnumerator.h"
|
||||
#include "nsIComponentManager.h"
|
||||
#include "prtypes.h"
|
||||
#include "prio.h"
|
||||
|
||||
#include "nsReadableUtils.h"
|
||||
|
@ -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"
|
||||
|
@ -14,7 +14,6 @@
|
||||
# define NS_InvokeByIndex NS_InvokeByIndex_P
|
||||
#endif
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "nscore.h"
|
||||
#include "nsISupports.h"
|
||||
#include "xpt_struct.h"
|
||||
|
@ -8,7 +8,6 @@
|
||||
#ifndef xptiinfo_h___
|
||||
#define xptiinfo_h___
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "nscore.h"
|
||||
#include "xpt_struct.h"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user