edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev]   V 3.5.4
Date: Tue, 12 May 2015 05:15:32 -0400	[thread overview]
Message-ID: <20150412051532.eklhad@comcast.net> (raw)
In-Reply-To: <20150512073215.GF2917@toaster.adamthompson.me.uk>

> Writing the jseng-duk.c process ...

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 makefile.

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.

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.


Karl Dahlke

  reply	other threads:[~2015-05-12  9:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-10 23:37 Karl Dahlke
2015-05-11  0:37 ` chris
2015-05-11  0:54   ` Karl Dahlke
2015-05-11 22:41   ` Adam Thompson
2015-05-11 23:23     ` Karl Dahlke
2015-05-12  7:32       ` Adam Thompson
2015-05-12  9:15         ` Karl Dahlke [this message]
2015-05-13  7:17           ` Adam Thompson
2015-05-13  8:16             ` Karl Dahlke
2015-05-13 13:15             ` Karl Dahlke
2015-05-14  7:03               ` Adam Thompson
2015-05-12  8:07       ` chris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150412051532.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).