Re: Output to STDOUT with Refal-5


Subject: Re: Output to STDOUT with Refal-5
From: Skorobogatoff S.Yu. (skorobo@orc.ru)
Date: Sun Feb 18 2001 - 22:56:00 MSK


Hello,

As I understood some time ago, when I ran into the same problem, there are
two ways to solve it:

1. writing your own built-in function or
2. changing the behavior of existing functions.

The second aproach is more prefferable. Simply do the following:

1. Download Refal-5 sources.
2. In the beginning of file Refio.c find the line
        # define LINELEN 79
    and replace it by
        # define LINELEN 0x7FFFFFFF
3. Recompile Refgo.exe (you may use any C compiler).

Now if your data is less than 2^31 bytes, it will never be broken into
lines.
I tried this "technique" last year, and it worked properly.

Serge Skorobogatoff.

----- Original Message -----
From: "Helmut Enck-Radana" <her@paradigma-software.de>
To: <refal@botik.ru>
Sent: Sunday, February 18, 2001 5:31 AM
Subject: Output to STDOUT with Refal-5

> Hello,
>
> I am trying to write a program in Refal-5 which writes to STDOUT, so that
I
> can pipe the output into another program. I found that the stream was
> broken into lines, so that the data were corrupt. (I am using the binary
> distribution for Windows of 2000-09-25.) I tried Print and Prout with
> redirection of STDOUT as well as Put and Putout on channel 0 and with
> redirection of STDERR. In all 4 cases the result was the same. (A line
> break was inserted after every 80th character.) Is there a possibility to
> write to STDOUT without having the line breaks inserted?
>
> Thanks in advance for any hints.
>
> -- Helmut
>
>



This archive was generated by hypermail 2b25 : Mon Oct 25 2004 - 21:24:58 MSD