Date: Wed, 17 Sep 2003 15:08:53 -0700 From: Bakul Shah <bakul@bitblocks.com> To: Dan Nelson <dnelson@allantgroup.com> Cc: freebsd-chat@freebsd.org Subject: Re: UNIX Humour Message-ID: <200309172208.h8HM8sC2043632@gate.bitblocks.com> In-Reply-To: Your message of "Wed, 17 Sep 2003 16:54:29 CDT." <20030917215429.GB51544@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> The original comment was supposed to read "self-compiling", but I like
> your modification too :) Don't forget the set -x, or a compile error
> will result in errors running and removing ${0%%.c}.
:-)
Actually this is a useful thing to do. For files containing
a library of functions I tend to add main() to test out these
functions like so:
#ifdef TESTING
int main(int argc, char**argv) {
...
}
#endif
Now I can write a self-testing .c file!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309172208.h8HM8sC2043632>
