Closed Bug 515628 Opened 16 years ago Closed 16 years ago

Make js*inlines.h self-contained, stop using JS_*_EXTERN_C in lib-private .h files

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2
Tracking Status
status1.9.2 --- beta1-fixed

People

(Reporter: brendan, Assigned: brendan)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
Summary says it all. jsstrinlines.h was already nesting jsstr.h per Summary. /be
Attachment #399726 - Flags: review?(jorendorff)
Attached patch tested patch (obsolete) — Splinter Review
Attachment #399726 - Attachment is obsolete: true
Attachment #399755 - Flags: review?(jorendorff)
Attachment #399726 - Flags: review?(jorendorff)
Attachment #399756 - Flags: review?(jorendorff)
Attachment #399755 - Attachment is obsolete: true
Attachment #399755 - Flags: review?(jorendorff)
Attachment #399756 - Flags: review?(jorendorff) → review+
Comment on attachment 399756 [details] [diff] [review] I've caught gal's wrong-patch-attached cold >--- a/js/src/jsatominlines.h > static inline JSBool > js_ValueToStringId(JSContext *cx, jsval v, jsid *idp) Remove "static" here, since we're making this file unsafe for C? >--- a/js/src/jsscript.cpp >+++ b/js/src/jsscript.cpp > #include "jsscript.h" >+#include "jsscriptinlines.h" > #include "jstracer.h" > #if JS_HAS_XDR > #include "jsxdrapi.h" > #endif > > #include "jsscriptinlines.h" > Delete the last 2 lines here (my earlier emergency fix). >diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp >--- a/js/src/jstracer.cpp >+++ b/js/src/jstracer.cpp >+#include "jsscriptinlines.h" > #include "jsstaticcheck.h" > #include "jstracer.h" > #include "jsxml.h" > > #include "jsatominlines.h" > #include "jsscriptinlines.h" > And here.
I like the segregated js*inlines.h includes, now that you point it out. Thanks: http://hg.mozilla.org/tracemonkey/rev/390977f2943c /be
Whiteboard: fixed-in-tracemonkey
Status: NEW → RESOLVED
Closed: 16 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: