Closed Bug 725548 Opened 12 years ago Closed 11 years ago

[meta] Remove obsolete numeric typedefs

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dmandelin, Unassigned)

References

Details

(Keywords: meta)

Attachments

(1 file)

jsdouble, etc--hopefully we don't need any of that stuff any more.
Depends on: 725550
JSBool is the only hard one. The reasons we have it:

1. In VS2005, in C, there is no bool type defined. This could be worked around easily enough with 'typedef int bool' for VS2005 only.

2. More importantly, |bool| doesn't give a size guarantee, which would make life harder for the JITs (and possibly certain other applications).

3. any others?

Regarding #2, we already use |bool| for internal APIs, so it seems like it would be pretty much the same as what we have now to use |bool| most places and use a special |jsbool| only when JITs actually call that function.
(In reply to David Mandelin from comment #1)
> 1. In VS2005, in C, there is no bool type defined. This could be worked
> around easily enough with 'typedef int bool' for VS2005 only.

I thought C embedders tended to cry whenever a third-party header defined something to be bool, because they may have their own (incompatible, un-namespaced) internal definition as well.
(In reply to Chris Leary [:cdleary] from comment #3)
> (In reply to David Mandelin from comment #1)
> > 1. In VS2005, in C, there is no bool type defined. This could be worked
> > around easily enough with 'typedef int bool' for VS2005 only.
> 
> I thought C embedders tended to cry whenever a third-party header defined
> something to be bool, because they may have their own (incompatible,
> un-namespaced) internal definition as well.

I was hoping that "embedding SpiderMonkey in C with VS2005" was sufficiently obscure that no one's even doing it. We could always fix it more if someone actually is.
Depends on: 726230
Depends on: 730511
Depends on: 730523
Depends on: 731492
Depends on: 731898
Depends on: 732306
Depends on: 733260
Anything left to do here?
Anything left to do here? LegacyIntTypes.h defines some intX/uintX and JSIntX/JSUintX typedefs that are unused.
Keywords: meta
OS: Windows 7 → All
Hardware: x86_64 → All
I think we're pretty much done here.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: