mulix
Sun, 22 Jul 2001 01:27:20 -0700
On Sun, 22 Jul 2001, Shlomi Fish wrote:
>
> What I forgot to do in this release is have the property of the file size
> present. What size was decided to be the boundary between either active
> state? And what are those states?
r2llib/base_biditext_state.c
BIDITEXT_BASE_STATE
get_biditext_base_state(const char* file_name)
{
int sz;
if (!file_name)
return BT_ERROR;
/* file_size returns the file size in bytes, or -1 on error */
sz = file_size(file_name);
if (sz <= 0)
return BT_BASE_NEUTRAL;
/* (sz % 2) == (sz & 0x0001) */
/* if size is odd, direction is LTR */
if (sz & 0x0001)
return BT_BASE_LTR;
/* if size is even, direction ir RTL */
return BT_BASE_RTL;
}
> Can anybody write an updated SPEC of what the r2l implmentation has to do?
tzafrir's mails are probably your best guide, or their implementation in
r2llib.
--
mulix
http://www.advogato.com/person/mulix
linux/reboot.h: #define LINUX_REBOOT_MAGIC1 0xfee1dead