Closed
Bug 646071
Opened 15 years ago
Closed 15 years ago
Remove nsInt64 and nsUint64
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla5
People
(Reporter: ehsan.akhgari, Assigned: jrmuizel)
References
()
Details
Attachments
(3 files)
|
1.52 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
|
12.44 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
|
68.18 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
I think nsInt64 and nsUint64 are not useful any more, since we already have code which fails to compile if the compiler doesn't support 64-bit arithmetic. So I think we should just kill these two types, and replace them with PRInt64 and PRUint64.
Benjamin, do you agree?
Comment 1•15 years ago
|
||
Yes, I thought I r+ed a patch a long time ago to remove them. Not sure where, though.
| Reporter | ||
Updated•15 years ago
|
Assignee: ehsan → jmuizelaar
| Assignee | ||
Comment 2•15 years ago
|
||
| Assignee | ||
Comment 3•15 years ago
|
||
Fix all the associated compiler problems.
| Assignee | ||
Comment 4•15 years ago
|
||
I started on part 3 which removes all the uses of nsInt64, I didn't get that far yet.
| Reporter | ||
Updated•15 years ago
|
Attachment #522754 -
Flags: review?(benjamin)
| Reporter | ||
Updated•15 years ago
|
Attachment #522758 -
Flags: review?(benjamin)
| Reporter | ||
Comment 5•15 years ago
|
||
Attachment #522923 -
Flags: review?(benjamin)
| Assignee | ||
Comment 6•15 years ago
|
||
Comment on attachment 522923 [details] [diff] [review]
Part 3: Remove nsInt64.h, and convert all uses of nsInt64 and nsUint64 in the tree to PRInt64 and PRUint64, respectively
Personally, I'd suggest dropping the explicit conversions of literals and let them happen implicitly.
| Reporter | ||
Comment 7•15 years ago
|
||
(In reply to comment #6)
> Personally, I'd suggest dropping the explicit conversions of literals and let
> them happen implicitly.
I don't care much either way, but it's a lot of work, so I'll let Benjamin weigh in before doing the work. :-)
Updated•15 years ago
|
Attachment #522754 -
Flags: review?(benjamin) → review+
Comment 8•15 years ago
|
||
Comment on attachment 522758 [details] [diff] [review]
Part 2: replace nsInt64 with a typedef to PRInt64
We're removing the typedef in the next patch, right?
Attachment #522758 -
Flags: review?(benjamin) → review+
Updated•15 years ago
|
Attachment #522923 -
Flags: review?(benjamin) → review+
| Reporter | ||
Comment 9•15 years ago
|
||
http://hg.mozilla.org/projects/cedar/rev/1a9cfc4f46ef
http://hg.mozilla.org/projects/cedar/rev/15fbc1435e1a
http://hg.mozilla.org/projects/cedar/rev/61acff8dfb61
Whiteboard: fixed-in-cedar
| Reporter | ||
Comment 10•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/72fd2dac7505
http://hg.mozilla.org/mozilla-central/rev/ff09586ff85a
http://hg.mozilla.org/mozilla-central/rev/b7bfd0871b3f
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-cedar
Target Milestone: --- → mozilla2.2
Comment 11•15 years ago
|
||
Was this announced anywhere?
| Assignee | ||
Comment 12•15 years ago
|
||
(In reply to comment #11)
> Was this announced anywhere?
The removal was not, the deprecation was. Would an announcement have been valuable?
| Reporter | ||
Comment 13•15 years ago
|
||
(In reply to comment #11)
> Was this announced anywhere?
My apologies, we should have let the comm-central folks know beforehand. I guess I owe you guys an editor fix of some sort now... :)
You need to log in
before you can comment on or make changes to this bug.
Description
•