Bug 514585: Remove macro wrappers for js_NewPrinter and JS_InitArenaPool. r=igor
These macros were intended to help avoid passing unused parameters when JS_ARENAMETER is not defined, but they're not worth the trouble. The unused parameter doesn't elicit warnings, and the performance impact of passing the unneeded argument is negligible. This also removes support for JS_ARENA_CONST_ALIGN_MASK, which is not used.
This commit is contained in:
@@ -275,17 +275,9 @@ js_QuoteString(JSContext *cx, JSString *str, jschar quote);
|
||||
* a GC'ed string.
|
||||
*/
|
||||
|
||||
#ifdef JS_ARENAMETER
|
||||
# define JS_NEW_PRINTER(cx, name, fun, indent, pretty, grouped) \
|
||||
js_NewPrinter(cx, name, fun, indent, pretty, grouped)
|
||||
#else
|
||||
# define JS_NEW_PRINTER(cx, name, fun, indent, pretty, grouped) \
|
||||
js_NewPrinter(cx, fun, indent, pretty, grouped)
|
||||
#endif
|
||||
|
||||
extern JSPrinter *
|
||||
JS_NEW_PRINTER(JSContext *cx, const char *name, JSFunction *fun,
|
||||
uintN indent, JSBool pretty, JSBool grouped);
|
||||
js_NewPrinter(JSContext *cx, const char *name, JSFunction *fun,
|
||||
uintN indent, JSBool pretty, JSBool grouped);
|
||||
|
||||
extern void
|
||||
js_DestroyPrinter(JSPrinter *jp);
|
||||
|
||||
Reference in New Issue
Block a user