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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: standard8, Assigned: ehsan.akhgari)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 6 obsolete files)

Attached patch Partial patch (obsolete) — 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.
Attached patch Compiles on Linux and Mac! (obsolete) — Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #658890 - Attachment description: Compiles on Linux → Compiles on Linux and Mac!
Attachment #657909 - Attachment is obsolete: true
Attached patch Sort of compiles on Windows too (obsolete) — Splinter Review
Attachment #658890 - Attachment is obsolete: true
Please see the commit message on why this is needed and why the change is correct.
Attachment #659292 - Flags: review?(jmuizelaar)
Attached patch Reduce inclusions of prtypes.h (obsolete) — Splinter Review
Attachment #659049 - Attachment is obsolete: true
Attachment #659309 - Flags: review?(jmuizelaar)
Attachment #659292 - Flags: review?(jmuizelaar) → review+
Attached patch Reduce inclusions of prtypes.h (obsolete) — Splinter Review
Attachment #659309 - Attachment is obsolete: true
Attachment #659309 - Flags: review?(jmuizelaar)
Attachment #659333 - Flags: review?(jmuizelaar)
Attached patch Reduce inclusions of prtypes.h (obsolete) — Splinter Review
Attachment #659333 - Attachment is obsolete: true
Attachment #659333 - Flags: review?(jmuizelaar)
Attachment #659340 - Flags: review?(jmuizelaar)
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+
Attached patch Updated patchSplinter Review
Attachment #659340 - Attachment is obsolete: true
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
Instead of: #include <stdint.h> Perhaps you could use: #include <mozilla/StandardInteger.h>
Depends on: 789711
(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.
Sorry for the breakage. Landed a fix on inbound.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: