tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] argument length limt for scripts?


From: Stevie G. Messervey
Subject: Re: [Tinycc-devel] argument length limt for scripts?
Date: Thu, 13 Jun 2013 09:56:36 -0700 (PDT)




From: David Mertens <address@hidden>
To: address@hidden
Sent: Thursday, June 13, 2013 12:29 PM
Subject: Re: [Tinycc-devel] argument length limt for scripts?

Don't you need something more like this?

#!/bin/sh
#if 0
exec /path/to/tcc ...your args here...
#endif
/* C code goes here */


On Thu, Jun 13, 2013 at 9:32 AM, Stephan Beal <address@hidden> wrote:

On Thu, Jun 13, 2013 at 4:22 PM, Stevie G. Messervey <address@hidden> wrote:
It looks like I am in for a kernel recompile.
I use tcc as a CGI script interpreter, and as my web apps grow in complexity,
the shebang line will also grow.

You don't need that: you can use the wrapper script for that purpose, too.

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel




--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


That is brilliant and works perfectly! I don't know how, but it does!
Thank you so much!!!

P.S. I modified libtcc to accept .cgi as a valid source file extension.
For anyone else interested:
libtcc.c line 1132
change:  if (!ext[0] || !PATHCMP(ext, "c")) {
to:  if (!ext[0] || !PATHCMP(ext, "c") || !PATHCMP(ext, "cgi")) {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]