From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from resqmta-ch2-07v.sys.comcast.net (resqmta-ch2-07v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:39]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 3756C77EF7 for ; Sat, 2 Jan 2016 08:08:58 -0800 (PST) Received: from resomta-ch2-16v.sys.comcast.net ([69.252.207.112]) by resqmta-ch2-07v.sys.comcast.net with comcast id 149P1s0022S2Q5R0149Wnb; Sat, 02 Jan 2016 16:09:30 +0000 Received: from eklhad ([IPv6:2601:405:4001:e487:21e:4fff:fec2:a0f1]) by resomta-ch2-16v.sys.comcast.net with comcast id 149W1s00E2MDcd70149WHv; Sat, 02 Jan 2016 16:09:30 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.6.0+ Date: Sat, 02 Jan 2016 11:09:30 -0500 Message-ID: <20160002110930.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1451750970; bh=bwMH5tBTNZFvulG1xgdJNyMY2IXqbcFJYFvUDZZUsIc=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=oadsnPtcyXg5fVY+KyBLgWCP0muL2tf8sfG/RiVXDhrN7UcIR720FWRU/cQN+95oS bffhVPl7BcpIxX+Ms4w5Rrump86Iznk20m9yqr4JBAXsarjl+jV0F+sMTwld/K3LiW 7R/AEvWg1lQ/tuPjowi48GKqVMv+yNX28lDpYBRyKGCg8EKRj2mS8OHLBMg7L21nnn Ef08c7LybCGLrBNjzbQj7FSlE2/DTzzykjzYsDwezKlqLxstOLjdd2/YbyAprXr05s MqeiYvv4UFUIfYQahzsVrTEya/SH5doxqsLqU2X7un3lgEHLWAJ9IJo11oG5iQ7EMS WCwriBaCeAjZQ== Subject: [Edbrowse-dev] Just edbrowse X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2016 16:08:58 -0000 Boy we do some silly things for historical reasons. edbrowse-js was once a different executable, so of course had to be called something different, like edbrowse-js. But then there was one executable doing two different things, and still I called the js version edbrowse-js. Software inertia I suppose. switch on argv[0], set whichproc to 'e' or 'j', etc etc. I could symlink one to the other in unix, but not in windows. It has to be a copy, in the same bin. In fact this opens up a whole can of worms in windows. We have to copy the same exe to different names, and then there's the debug convention that sticks d somewhere in the name, not entirely sure, but there's a lot of code to try to build the pathname of edbrowse-js, or edbrowse-d-js.exe, in whatever bin, and wow! We really don't need this complexity. For the js engine, invoke edbrowse --runjs for the curl server, invoke edbrowse --runcurl and so on for as many variations as we wish, never having to change makefiles or CMakeLists.txt again. And we can throw away all that code around ebjs.c line 67, because all you have to do is run argv[0] with different arguments. If argv[1] is one of our magic strings, set whichproc appropriately and run in that mode. Perhaps magic string arguments aren't your cup of tea, but it's far better than all the build / distribution issues, and symlinks or copies of renamed images in the correct bins, and so on. Geoff is on this list now, so feel free to chime in and tell us that this is definitely the way to go. Karl Dahlke