From: <br...@us...> - 2012-07-26 22:12:25
|
Revision: 4307 http://openvrml.svn.sourceforge.net/openvrml/?rev=4307&view=rev Author: braden Date: 2012-07-26 22:12:19 +0000 (Thu, 26 Jul 2012) Log Message: ----------- XULRunner 14.0 removes JS_FinalizeStub. Modified Paths: -------------- branches/0.18/ChangeLog branches/0.18/configure.ac branches/0.18/src/script/javascript.cpp Property Changed: ---------------- branches/0.18/ Property changes on: branches/0.18 ___________________________________________________________________ Modified: svn:mergeinfo - /branches/0.17:3713,3717,3719,3721,3725,3730,3732,3743,3746,3748,3750,3752,3754,3757,3759-3760,3764,3766,3824,3828,3836 /branches/local:3677-3689 /branches/node-modules:3622-3623,3632-3635,3637-3638,3640-3641,3643-3644,3646-3647,3649-3650,3654-3655,3657-3658,3661-3662,3664-3665,3667-3668,3670-3671,3673-3674,3684-3685,3687-3688,3736-3801 /trunk:3958,3965,3967,3969,3971,3973,3975-3976,3979,3981,3983,3985,3987,3989,3991,3997,3999,4001,4003,4005,4011,4013-4014,4017,4019,4021,4024,4026,4028,4030,4032,4041,4043,4045,4047,4053,4055,4057,4059,4061,4063,4065,4067,4069,4071,4073,4075,4077,4079,4081,4083,4085,4087,4089,4091,4093,4095,4097,4099,4101,4107-4108,4113,4115,4117,4119-4120,4122,4124,4129,4131,4133,4135,4137,4139,4141,4143,4145,4147-4148,4150,4156,4159-4160,4162,4164,4169,4171,4174,4178-4179,4181,4183,4186,4188,4190,4192,4194,4196,4198-4199,4201,4203,4206,4208,4210,4212,4214,4216,4218,4220,4222,4224,4226,4228,4230,4232,4236,4243,4245,4247,4249,4251,4253,4255,4257,4259,4261,4264,4266,4268,4270,4272,4274,4276,4278,4280-4281,4283,4285,4287,4292,4294,4296,4298,4300,4302,4304 + /branches/0.17:3713,3717,3719,3721,3725,3730,3732,3743,3746,3748,3750,3752,3754,3757,3759-3760,3764,3766,3824,3828,3836 /branches/local:3677-3689 /branches/node-modules:3622-3623,3632-3635,3637-3638,3640-3641,3643-3644,3646-3647,3649-3650,3654-3655,3657-3658,3661-3662,3664-3665,3667-3668,3670-3671,3673-3674,3684-3685,3687-3688,3736-3801 /trunk:3958,3965,3967,3969,3971,3973,3975-3976,3979,3981,3983,3985,3987,3989,3991,3997,3999,4001,4003,4005,4011,4013-4014,4017,4019,4021,4024,4026,4028,4030,4032,4041,4043,4045,4047,4053,4055,4057,4059,4061,4063,4065,4067,4069,4071,4073,4075,4077,4079,4081,4083,4085,4087,4089,4091,4093,4095,4097,4099,4101,4107-4108,4113,4115,4117,4119-4120,4122,4124,4129,4131,4133,4135,4137,4139,4141,4143,4145,4147-4148,4150,4156,4159-4160,4162,4164,4169,4171,4174,4178-4179,4181,4183,4186,4188,4190,4192,4194,4196,4198-4199,4201,4203,4206,4208,4210,4212,4214,4216,4218,4220,4222,4224,4226,4228,4230,4232,4236,4243,4245,4247,4249,4251,4253,4255,4257,4259,4261,4264,4266,4268,4270,4272,4274,4276,4278,4280-4281,4283,4285,4287,4292,4294,4296,4298,4300,4302,4304,4306 Modified: branches/0.18/ChangeLog =================================================================== --- branches/0.18/ChangeLog 2012-07-26 22:04:51 UTC (rev 4306) +++ branches/0.18/ChangeLog 2012-07-26 22:12:19 UTC (rev 4307) @@ -1,5 +1,12 @@ 2012-07-26 Braden McDaniel <br...@en...> + XULRunner 14.0 removes JS_FinalizeStub. + + * configure.ac + * src/script/javascript.cpp + +2012-07-26 Braden McDaniel <br...@en...> + * src/script/javascript.cpp: JS_RemoveValueRoot no longer returns a value; simply change the existing wrapper to return void. Should be backward compatible (since we could never do anything Modified: branches/0.18/configure.ac =================================================================== --- branches/0.18/configure.ac 2012-07-26 22:04:51 UTC (rev 4306) +++ branches/0.18/configure.ac 2012-07-26 22:12:19 UTC (rev 4307) @@ -304,6 +304,25 @@ [Defined if JS_ConstructObject is missing the prototype argument])]) # +# XULRunner 14.0 removes JS_FinalizeStub. +# +AC_CACHE_CHECK([whether SpiderMonkey has JS_FinalizeStub], +[ov_cv_js_has_finalizestub], +[ov_cv_js_has_finalizestub=no +ov_save_CPPFLAGS=$CPPFLAGS +CPPFLAGS="$JS_CFLAGS $CPPFLAGS" +AC_LANG_ASSERT([C]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM( +[[#include <jsapi.h]], +[[JS_FinalizeStub(0, 0)]])], +[ov_cv_js_has_finalizestub=yes]) +CPPFLAGS=$ov_save_CPPFLAGS +]) +AS_IF([test X$ov_cv_js_has_finalizestub = Xyes], + [AC_DEFINE([OPENVRML_JS_HAS_FINALIZESTUB], [1], + [Defined if JS_FinalizeStub is declared in jsapi.h])]) + +# # openvrml-xembed and openvrml-player both use GOption, which was # introduced in GLib 2.6. # Modified: branches/0.18/src/script/javascript.cpp =================================================================== --- branches/0.18/src/script/javascript.cpp 2012-07-26 22:04:51 UTC (rev 4306) +++ branches/0.18/src/script/javascript.cpp 2012-07-26 22:12:19 UTC (rev 4307) @@ -378,7 +378,11 @@ JS_EnumerateStub, // enumerate JS_ResolveStub, // resolve JS_ConvertStub, // convert +#ifdef OPENVRML_JS_HAS_FINALIZESTUB JS_FinalizeStub, // finalize +#else + 0, // finalize +#endif 0, // getObjectOps 0, // checkAccess 0, // call @@ -402,7 +406,11 @@ JS_EnumerateStub, // enumerate JS_ResolveStub, // resolve JS_ConvertStub, // convert +#ifdef OPENVRML_JS_HAS_FINALIZESTUB JS_FinalizeStub, // finalize +#else + 0, // finalize +#endif 0, // getObjectOps 0, // checkAccess 0, // call @@ -7457,7 +7465,11 @@ JS_EnumerateStub, // enumerate JS_ResolveStub, // resolve JS_ConvertStub, // convert +#ifdef OPENVRML_JS_HAS_FINALIZESTUB JS_FinalizeStub, // finalize +#else + 0, // finalize +#endif 0, // getObjectOps 0, // checkAccess 0, // call This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |