[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Re: 283dev15 for Win32
From: |
Webmaster Jim |
Subject: |
lynx-dev Re: 283dev15 for Win32 |
Date: |
Thu, 2 Dec 1999 23:09:54 -0500 |
On Fri, Dec 03, 1999 at 12:50:14PM +0900, Henry Nelson wrote:
> > one requested fix, namely dropping that "AUTO" string from the upper
> > right hand corner. It's just a hack in the GridText.c file to snip the
> > call to str_kcode(), so it may have side effects I haven't found yet.
>
> I've been doing that since the SH code was first introduced. There are
> no side effects that I know of, except that you have the page character
> set switching code (^L) in there, but you won't know which one you have
> turned on. Is the code useful for anything except CJK?
Here's my way of excluding that string:
--- gridtext.cdf Wed Nov 17 23:08:08 1999
+++ gridtext.c Thu Dec 2 15:18:50 1999
@@ -1505,11 +1505,13 @@
FREE(tmp);
}
}
+#if defined (WRITE_ON_TOP_OF_SCREEN)
move(0, 0);
clrtoeol();
#if defined(CJK_EX) && defined(SH_EX)
addstr(str_kcode(last_kcode));
#endif
+#endif /* write on top of screen */
if (text->top_of_screen > 0 && HText_hasToolbar(text)) {
addch('#');
}
(The #define should be after the next 2 lines, however).
WRITE_ON_TOP_OF_SCREEN is just a made-up string meaning
nothing in particular.
> > I tried compiling with "CJK_EX" undefined, but found that str_sjis and
> > set_ws_title became unglued. These functions seem to be grafted on the
> > top of LYMainLoop.c without the right nesting of includes, i.e., I don't
> > understand why the WIN_EX is within CJK_EX.
>
> They should be independent, neither within the other.
Well, the code looks like this (somewhat abbreviated):
#if defined(CJK_EX) /* 1999/05/25 (Tue) 11:10:45 */
#include <HTCJK.h>
extern HTCJKlang HTCJK;
extern char *string_short(char *str, int cut_pos); /* LYExtern.c */
PUBLIC char *str_kcode(HTkcode code)
{
...
#ifdef SH_EX /* 1999/05/25 (Tue) 11:12:05 */
if (no_table_center) {
...
#else
strcpy(buff, p);
#endif
...
}
#ifdef WIN_EX
PRIVATE char *str_sjis(char *to, char *from)
{
...
PRIVATE void set_ws_title(char * str)
{
SetConsoleTitle(str);
}
#endif /* WIN_EX */
#endif /* CJK_EX */
So, without CJK extensions, I don't get the functions I mentioned.
It would be nice to have descriptions of these functions so we'd
know how they are used without much digging. I would guess the
"k" in str_code means Katakana?
++++++++++++++++++++++++++++
Marvin the Paranoid Android.