Article View: news.software.readers
Article #45804Re: [slrn] mailing a file in slang?
From: John E. Davis
Date: Sat, 09 Jan 1999 00:00
Date: Sat, 09 Jan 1999 00:00
24 lines
1434 bytes
1434 bytes
On Fri, 08 Jan 1999 17:07:34 GMT, alord@see.reply.to <alord@see.reply.to>
wrote:
>How do I write a slrn macro that just posts a named file?
There is no intrinsic macro function that simply posts a file. You
can make the `slrn_post_file' function a macro intrinsic by adding the
code such as:
static int post_file (char *file)
{
(void) slrn_post_file (file, NULL, 0);
}
and
MAKE_INTRINSIC_S("post_file", post_file, SLANG_VOID_TYPE),
to the appropriate places in slrn/src/interp.c. The slrn_post_file
function should eventually be broken-up and simplified. Right now it
does quite a bit.
--John
Technical Details
Message-ID:
<slrn79dh0k.g1.davis@mygir.davis.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<915815254.3572.0.nnrp-06.c2d9f016@news.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <slrn79dh0k.g1.davis@mygir.davis.net> Subject: Re: [slrn] mailing a file in slang? Date: Sat, 09 Jan 1999 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <915815254.3572.0.nnrp-06.c2d9f016@news.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 430515002 X-Complaints-To: usenet@eecs-usenet-02.mit.edu X-Trace: eecs-usenet-02.mit.edu 915880750 29450 18.75.2.45 (9 Jan 1999 11:19:10 GMT) Organization: Center for Space Research User-Agent: slrn/0.9.5.4 (UNIX) NNTP-Posting-Date: 9 Jan 1999 11:19:10 GMT Newsgroups: news.software.readers