From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 34DFC21DE03 for ; Wed, 13 May 2015 00:17:34 -0700 (PDT) Received: by wizk4 with SMTP id k4so185402092wiz.1 for ; Wed, 13 May 2015 00:17:43 -0700 (PDT) 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=zH3eh9KY4qvGuqSrDl1dpBF/3h5BDeoIYIM7hb9KgBM=; b=FcNKoWfJwNC9mlS4R+HADuD41AK9Ih3EZCI8Wird/voP/CKDboBdxz8b8Q+q7zQIeL OjtPzt+EQJa7n4p1GS+26o9ktUhWC5AW1lgIDdzZcIIrb2CZODrn/X0e7Xdmb9Vj6drb gVE9srwBlFQnk7/AkJNE0RavhSlmSrzykwTOBS8+OYFzg3bjwisBRx1x0akpHk3h3ezJ jir2j5Bcy2vws+WNsdE1lIwwNBYNu4k1mlz0ViOni0FhyehjQ3ZW9rgoRTg3Y13d9zim YtVM+N//p44zckNo49sondOTrYjSJ0JH8TVLtViF3MS/euUbLmqKCcDpQdxA8YHoPbnL SuwQ== X-Received: by 10.181.11.137 with SMTP id ei9mr11549303wid.48.1431501463377; Wed, 13 May 2015 00:17:43 -0700 (PDT) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id fw3sm6515395wib.5.2015.05.13.00.17.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 May 2015 00:17:42 -0700 (PDT) Date: Wed, 13 May 2015 08:17:39 +0100 From: Adam Thompson To: Karl Dahlke Message-ID: <20150513071739.GG2917@toaster.adamthompson.me.uk> References: <20150410193753.eklhad@comcast.net> <20150512073215.GF2917@toaster.adamthompson.me.uk> <20150412051532.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Zrag5V6pnZGjLKiw" Content-Disposition: inline In-Reply-To: <20150412051532.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] V 3.5.4 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: Wed, 13 May 2015 07:17:34 -0000 --Zrag5V6pnZGjLKiw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 12, 2015 at 05:15:32AM -0400, Karl Dahlke wrote: > > Writing the jseng-duk.c process ... >=20 > And the cool part is, such work can take place independently > of other work on edbrowse. > To use the new process, if we decide to do so, is just a change of makefi= le. Indeed. > This is a switch back from c++ to c, but I (wisely) used almost none > of the c++ features, save those needed for the mozilla api, > and yes a few strings, cause I was being lazy. > String effects; for example, > to gather side effects of running js and pass them back to edbrowse. > I think the easiest path is to copy the stringAndString etc routines over, > for growing strings dynamically. > They're not perfect but we're all use to them. > stringfile.c lines 150 to 227 would probably suffice. >=20 > If we continue down this path we might want a string + url sourcefile to = be > shared between the two processes. > Nobody likes duplicated code. > Common is currently jseng-moz.cpp lines 54 through 548, > plus the aforementioned string management routines, so over 600 lines, > and that's just too much code to leave duplicated in the long run. Tbh, since this is in C, I was just going to use the already built edbrowse= modules. There's no real reason not to in this code. The reason before was because the jseng-moz.cpp engine is in c++, but this is in C like the rest of the project so I see no reason to duplica= te any of this stuff. Cheers, Adam. --Zrag5V6pnZGjLKiw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVUvqTAAoJELZ22lNQBzHOwiAIANFhTRhqdO2fDoVn8ARFmGQg O9wuuohDTwcQ5j4zMUtqvtgHCxSDZeHeDbIsyqYgrwF3r5GUHeGxnMWPOCYCI340 GJy+NGY10aNFAm5f2QVMJvpgh3xhB6YlRFJ9XEVV3JLCztVIEBUVW9aNyjaTZvNH fRKTwoA6E37T8AQF4e0dZ9JLxPeKmZnCy7+uidneZlgTtwGWZuP1YGOk6zYOGC4y NhAMb0Fo71pPeooj+tlGLAtMEikyX6AEXNCPwZSgm3SR+CedKN+QDjfyXp+6sx2F IjCIGF2rCKp7W2R3Pcjg1KqCFgZczu//wy3DacfK3Ci3jKwcwAbaA9QQIbAxgEM= =jbxr -----END PGP SIGNATURE----- --Zrag5V6pnZGjLKiw--