Bug 928040 - Remove some prtypes.h inclusions from xpcom/; r=bsmedberg
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 18 Oct 2013 20:34:57 -0400
changeset 166199 f048fcdc03e7a096a2dfaf3f805354814b2553d2
parent 166198 960c510beb5080194fd2461eb6c0260954f83869
child 166200 46960d4e61c82c36199c7c833cd1d3a17b65979c
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs928040
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 928040 - Remove some prtypes.h inclusions from xpcom/; r=bsmedberg
xpcom/glue/nsTextFormatter.h
xpcom/io/nsEscape.h
xpcom/io/nsWildCard.h
xpcom/tests/TestPRIntN.cpp
xpcom/threads/nsProcessCommon.cpp
--- a/xpcom/glue/nsTextFormatter.h
+++ b/xpcom/glue/nsTextFormatter.h
@@ -24,17 +24,16 @@
  **	%lld, %llu, %llx, %llX, %llo - 64 bit versions of above
  **	%s - utf8 string
  **	%S - PRUnichar string
  **	%c - character
  **	%p - pointer (deals with machine dependent pointer size)
  **	%f - float
  **	%g - float
  */
-#include "prtypes.h"
 #include "prio.h"
 #include <stdio.h>
 #include <stdarg.h>
 #include "nscore.h"
 #include "nsStringGlue.h"
 
 #ifdef XPCOM_GLUE
 #error "nsTextFormatter is not available in the standalone glue due to NSPR dependencies."
--- a/xpcom/io/nsEscape.h
+++ b/xpcom/io/nsEscape.h
@@ -3,17 +3,16 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /*	First checked in on 98/12/03 by John R. McMullen, derived from net.h/mkparse.c. */
 
 #ifndef _ESCAPE_H_
 #define _ESCAPE_H_
 
-#include "prtypes.h"
 #include "nscore.h"
 #include "nsError.h"
 #include "nsString.h"
 
 /**
  * Valid mask values for nsEscape
  * Note: these values are copied in nsINetUtil.idl. Any changes should be kept
  * in sync.
--- a/xpcom/io/nsWildCard.h
+++ b/xpcom/io/nsWildCard.h
@@ -15,17 +15,16 @@
  * features and interactions this code must support, the easier it is to
  * ensure it works.
  *
  */
 
 #ifndef nsWildCard_h__
 #define nsWildCard_h__
 
-#include "prtypes.h"
 #include "nscore.h"
 
 /* --------------------------- Public routines ---------------------------- */
 
 
 /*
  * NS_WildCardValid takes a shell expression exp as input. It returns:
  *
--- a/xpcom/tests/TestPRIntN.cpp
+++ b/xpcom/tests/TestPRIntN.cpp
@@ -1,14 +1,13 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include <stdint.h>
- 
 #include "prtypes.h"
 
 // This test is NOT intended to be run.  It's a test to make sure
 // PRInt{N} matches int{N}_t. If they don't match, we should get a
 // compiler warning or error in main().
 
 static void
 ClearNSPRIntTypes(PRInt8 *a, PRInt16 *b, PRInt32 *c, PRInt64 *d)
--- a/xpcom/threads/nsProcessCommon.cpp
+++ b/xpcom/threads/nsProcessCommon.cpp
@@ -12,17 +12,16 @@
  */
 
 #include "mozilla/Util.h"
 
 #include "nsCOMPtr.h"
 #include "nsAutoPtr.h"
 #include "nsMemory.h"
 #include "nsProcess.h"
-#include "prtypes.h"
 #include "prio.h"
 #include "prenv.h"
 #include "nsCRT.h"
 #include "nsThreadUtils.h"
 #include "nsIObserverService.h"
 #include "mozilla/Services.h"
 
 #include <stdlib.h>