From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) by hurricane.the-brannons.com (Postfix) with ESMTPS id DA0547884B for ; Tue, 23 Dec 2014 13:40:21 -0800 (PST) Received: by mail-wg0-f48.google.com with SMTP id y19so10008995wgg.7 for ; Tue, 23 Dec 2014 13:38:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=c7GYwfua7o0UOR1SWrHnBveVgi7dBFuFnXC3j0li6+I=; b=LZdx5Dp0b/rZKWFVFoej3YSs/geqpApQgn9EG5qZ3/tpvdylJoXWAVvzLFbVz+8vZm 6wFnQMWzGgDXrwtIFADJAMvOyuox8ReuMjZPsdBjJXLUfsgmjEVTM48dZmo3N8N8uh8u wAgUxHheEPcLogwbbuJ0HcWHbB6gADrJKNr5guanPuL1HsPD4/UjEv79xiEgVcZloEe6 l+ts/wFDFVDJTvhlNAZTara2Odt6juywMqIFOK1F2+I4HNbnpOW3+UoXiuKB9vBkWJ1i cTFXkpVU3XsI9kWJ51IgETfOpQKLFx9gn+N1D1x9leLgdzU5VRRHrzJgtasecjMWGoFQ sM3Q== X-Received: by 10.180.98.197 with SMTP id ek5mr45702907wib.35.1419370693701; Tue, 23 Dec 2014 13:38:13 -0800 (PST) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id ud4sm18812032wib.0.2014.12.23.13.38.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Dec 2014 13:38:12 -0800 (PST) Date: Tue, 23 Dec 2014 21:38:10 +0000 From: Adam Thompson To: Karl Dahlke Message-ID: <20141223213810.GW14122@toaster.adamthompson.me.uk> References: <20141123145000.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qf/2YuBwNTyt+peV" Content-Disposition: inline In-Reply-To: <20141123145000.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] js engine process, version 1 X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2014 21:40:22 -0000 --Qf/2YuBwNTyt+peV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 23, 2014 at 02:50:00PM -0500, Karl Dahlke wrote: > Adam offers: > > I may have a go at plugging in the new code at some stage. >=20 > Let me know if you want to take a whack at it. That would be great. > If not I may try it next week. Either is fine with me. Ok, I've pushed a couple of commits to start this process. Unfortunately currently this means things don't compile due to a couple of missing handler functions which I'm not sure how to implement. > struct tagInfo and htmlTag move back into eb.h. > In fact we won't need js.h at all. As did the associated enums. > Once the vital declarations move from js.h into eb.h, > change makefile so it doesn't refer to js.h or jsdom.cpp or jsloc.cpp. > Nor does it need the mozilla headers or libraries, > except for the target edbrowse-js, which builds properly today. It only built properly because everything c++ had these libraries, I've fixed that now. > And include edbrowse-js under all: Done. > struct htmlTag has the member jv, javascript variable, > which links this tag to the corresponding object in the js world. > currently HeapRootedObject jv; needs to be jsobjtype jv; Done, as well as changing a bunch of those in html.cpp. Also had to change ->jss to ->jcx (or remove where appropriate) in buffers.= c. Wow this code got tangled up with the js stuff very quickly. > Rename createJavaContext1 to createJavaContext in ebjs.c > and similarly for freeJavaContext1. Done. > Remove the block at the top of ebjs.c that is there just for stand alone > compilation. Done (I think). > Generate the prototypes for ebjs.c, I can do it with my tool if you like, > and put them into eb.p. > We won't need ebjs.p any more. Done, and ebjs.p is no more. > Many of these functions are plug in replacements for the old functions. > get_property_string(object, name) > it does what it did before. > So I'm hoping it is an easy process from here. > Put it all together and build the new edbrowse. Got stuck on this one, see above note about the handler functions. Cheers, Adam. --Qf/2YuBwNTyt+peV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUmeDCAAoJELZ22lNQBzHOwfkH/205+1PitLYv2/okLb6FQjph +1u2aUPI6sZjfa/Hqq8y7nhdqiCI/ptxPGEuPEKdiXHrLAdHtgnvsOWhnYUxk2pN kHVcwWWnXe8k6Aq9q0TKIJFnEPuyanOM7HTHgFU7qink+LSwHMfhAjSc6die580p ZkX4astfvMjFjtPBpMFtEPcBuBgy7RTd4VcIzB5jX4jUrIZjLyBo/wGQ9hh4sduH Gq48ntKUf+MT/LyClM15CatKwjxYQZ2/F6gtgQ5jTbMAPJFo/zCVZJ9NoHI6Za5F /OVEDRrv9iACuHaxEpnCmBbhAlrH4MLC4ZTbSg9mvyMwaPpxKKGKQ+SvP+AS0tE= =89Bl -----END PGP SIGNATURE----- --Qf/2YuBwNTyt+peV--