Closed
Bug 788014
Opened 12 years ago
Closed 12 years ago
Reduce inclusions of prtypes.h in the tree to help using standard int types
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: standard8, Assigned: ehsan.akhgari)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 6 obsolete files)
1.91 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
34.15 KB,
patch
|
Details | Diff | Splinter Review |
Following on from bug 579517 comment 59 and 60 we should try and reduce the amount of prtypes.h included in the tree to give less opportunities for using the old NSPR types.
Attached is a starter patch for this that doesn't compile yet. The basic idea is to remove prtypes.h from nscore.h and deal with the fallout from that. We should also look at removing prtypes.h from other .h files where we can.
I'm not going to be able to spend time any time on this for the next few weeks, so if someone wants to pick it up, that would be great.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Assignee | ||
Updated•12 years ago
|
Attachment #658890 -
Attachment description: Compiles on Linux → Compiles on Linux and Mac!
Assignee | ||
Updated•12 years ago
|
Attachment #657909 -
Attachment is obsolete: true
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #658890 -
Attachment is obsolete: true
Assignee | ||
Comment 3•12 years ago
|
||
Please see the commit message on why this is needed and why the change is correct.
Attachment #659292 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #659049 -
Attachment is obsolete: true
Attachment #659309 -
Flags: review?(jmuizelaar)
Updated•12 years ago
|
Attachment #659292 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #659309 -
Attachment is obsolete: true
Attachment #659309 -
Flags: review?(jmuizelaar)
Attachment #659333 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #659333 -
Attachment is obsolete: true
Attachment #659333 -
Flags: review?(jmuizelaar)
Attachment #659340 -
Flags: review?(jmuizelaar)
Comment 7•12 years ago
|
||
Comment on attachment 659340 [details] [diff] [review]
Reduce inclusions of prtypes.h
Review of attachment 659340 [details] [diff] [review]:
-----------------------------------------------------------------
::: xpcom/string/public/nsXPCOMStrings.h
@@ +297,1 @@
>
Replace them all
Attachment #659340 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #659340 -
Attachment is obsolete: true
Assignee | ||
Comment 9•12 years ago
|
||
Assignee | ||
Comment 10•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/949f2a6459c8
https://hg.mozilla.org/integration/mozilla-inbound/rev/b606f6903196
Target Milestone: --- → mozilla18
Comment 11•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/949f2a6459c8
https://hg.mozilla.org/mozilla-central/rev/b606f6903196
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 12•12 years ago
|
||
make.py[2]: Entering directory 'c:\t1\hg\objdir-sm\mozilla\xpcom\glue'
nsVersionComparator.cpp
c:\t1\hg\comm-central\mozilla\config\rules.mk:993:0$ cl InvokeClWithDependencyGeneration cl -FonsVersionComparator.obj -c -D_HAS_EXCEPTIONS=0 -I../../dist/stl_wrappers -DMOZ_SUITE=1 -D_USE_ANSI_CPP -DTARGET_XPCOM_ABI=\"x86-msvc\" -Ic:/t1/hg/comm-central/mozilla/xpcom/glue/../build -Ic:/t1/hg/comm-central/mozilla/xpcom/glue -I. -I../../dist/include -Ic:/t1/hg/objdir-sm/mozilla/dist/include/nspr -Ic:/t1/hg/objdir-sm/mozilla/dist/include/nss -TP -nologo -W3 -Gy -Fdgenerated.pdb -wd4800 -we4553 -GR- -DNDEBUG -DTRIMMED -Zi -UDEBUG -DNDEBUG -O1 -Oy -MD -FI ../../dist/include/mozilla-config.h -DMOZILLA_CLIENT -Zl c:/t1/hg/comm-central/mozilla/xpcom/glue/nsVersionComparator.cpp
nsVersionComparator.cpp
c:/t1/hg/comm-central/mozilla/xpcom/glue/nsVersionComparator.cpp(9) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
Comment 13•12 years ago
|
||
Instead of:
#include <stdint.h>
Perhaps you could use:
#include <mozilla/StandardInteger.h>
Comment 14•12 years ago
|
||
(In reply to Philip Chee from comment #12)
> make.py[2]: Entering directory 'c:\t1\hg\objdir-sm\mozilla\xpcom\glue'
> nsVersionComparator.cpp
> c:\t1\hg\comm-central\mozilla\config\rules.mk:993:0$ cl
> InvokeClWithDependencyGeneration cl -FonsVersionComparator.obj -c
> -D_HAS_EXCEPTIONS=0 -I../../dist/stl_wrappers -DMOZ_SUITE=1 -D_USE_ANSI_CPP
> -DTARGET_XPCOM_ABI=\"x86-msvc\"
> -Ic:/t1/hg/comm-central/mozilla/xpcom/glue/../build
> -Ic:/t1/hg/comm-central/mozilla/xpcom/glue -I. -I../../dist/include
> -Ic:/t1/hg/objdir-sm/mozilla/dist/include/nspr
> -Ic:/t1/hg/objdir-sm/mozilla/dist/include/nss -TP -nologo -W3 -Gy
> -Fdgenerated.pdb -wd4800 -we4553 -GR- -DNDEBUG -DTRIMMED -Zi -UDEBUG
> -DNDEBUG -O1 -Oy -MD -FI ../../dist/include/mozilla-config.h
> -DMOZILLA_CLIENT -Zl
> c:/t1/hg/comm-central/mozilla/xpcom/glue/nsVersionComparator.cpp
>
> nsVersionComparator.cpp
> c:/t1/hg/comm-central/mozilla/xpcom/glue/nsVersionComparator.cpp(9) : fatal
> error C1083: Cannot open include file: 'stdint.h': No such file or directory
I filed bug 789711 on this issue.
Assignee | ||
Comment 15•12 years ago
|
||
Sorry for the breakage. Landed a fix on inbound.
Assignee | ||
Updated•12 years ago
|
Blocks: dieprtypesdie
You need to log in
before you can comment on or make changes to this bug.
Description
•