Commit Graph

36 Commits

Author SHA1 Message Date
Roland Illig
4dbb9f3191 Define __unix__ if __MACH__ is defined. 2005-07-30 22:56:39 +00:00
Andrew V. Samoilov
a1781bc719 * sldisply.c (SLtt_initialize): Fix typo. Change Is_Bg_BGR,
not Is_Fg_BGR.
2005-03-19 18:15:17 +00:00
Roland Illig
dbd6062273 * include/slang.h: Define __unix__ if __NetBSD__ is defined. 2005-02-10 13:29:51 +00:00
Roland Illig
9004ac497f * po/ChangeLog: Applied trim_changelog.
* slang/ChangeLog: Likewise.
	* vfs/ChangeLog: Likewise.
2005-02-07 07:40:46 +00:00
Andrew V. Samoilov
e69c7db958 Fix typos 2004-12-07 08:55:33 +00:00
Andrew V. Samoilov
0cd8f81bdc * Makefile.am: Use AM_CPPFLAGS for path to mc-slang includes.
* slmisc.c (SLang_Version): Declare const. Use SLANG_VERSION for version
        number.
        * include/slang.h (SLang_Version): Declare const.
2004-11-29 11:11:47 +00:00
Andrew V. Samoilov
f7cf6a4928 * sldisply.c (SLtt_delete_nlines): Add boundary check.
(forward_cursor): Remove unneeded boundary check.
        (tt_write): Remove unneeded cast.
       * sldisply.c: Use tt_write() instead of tt_write_string() for
       hardcoded string literals.
2004-11-09 17:16:51 +00:00
Andrew V. Samoilov
dce56e8421 * include/slang.h (SLang_Version): Delete const qualifier for
compatibility with system slang library.
* slmisc.c: Likewise.
* sldisply.c (tt_sprintf): Import last changes from libslang-current.
Add code to check for a buffer overflow.
(tt_printf): Likewise.
(forward_cursor): Likewise.
2004-11-08 21:00:29 +00:00
Andrew V. Samoilov
f5afae1368 * include/slang.h (SLang_Version): Declare const.
* slmisc.c: Add SLang_Version.
2004-11-08 16:47:29 +00:00
Andrew V. Samoilov
5b57056d23 * README: Imported slang-1.4.9.
* sldisply.c: Likewise.
        * slerr.c: Likewise.
        * slgetkey.c: Likewise.
        * slmisc.c: Likewise.
        * slsignal.c: Likewise.
        * slsmg.c: Likewise.
        * sltermin.c: Likewise.
        * slutty.c: Likewise.
        * slvideo.c: Likewise.
        * slw32tty.c: Likewise.
        * include/_slang.h: Likewise.
        * include/jdmacros.h: Likewise.
        * include/sl-feat.h: Likewise.
        * include/slang.h: Likewise.
        * include/slinclud.h: Likewise.
        * include/sllimits.h: Likewise.

	* ChangeLog: Change my e-mail to me@pavelsh.pp.ru
2004-11-01 06:30:43 +00:00
Andrew V. Samoilov
f591dda4ea * include/slang.h: Define __unix__ if _AIX is defined.
Needed on AIX.
2004-10-27 14:15:38 +00:00
Andrew V. Samoilov
8d50b2240a * sldisply.c (tt_sprintf): Add missed break.
* sldisply.c (SLtt_erase_line): Use tt_write() instead
        tt_write_string().
2004-10-14 08:18:49 +00:00
Andrew V. Samoilov
d329f3c414 * sldisplay.c (SLtt_goto_rc): Disable cursor movement optimizations
for qansi-m consoles. Needed on QNX Neutrino.
        (SLtt_initialize): Init QANSI_Console variable.
2004-09-26 00:45:47 +00:00
Roland Illig
ad1e412fa1 * slsignal.c (SLsystem): Replaced NULL with (char *) NULL in
call to execl.

	From patches from the OpenBSD ports collection.
2004-09-24 14:06:04 +00:00
Andrew V. Samoilov
ef67afe62d * sltermin.c (): Avoid strncpy, home_ti is 1K long and
nobody really needs it whole cleared
2004-09-03 22:08:20 +00:00
Andrew V. Samoilov
b93c90db4e * include/slang.h: Revert last changes - it breaks compiling
* sldisply.c: Likewise.
* slerr.c: Likewise.
* slsmg.c: Likewise.
* sltermin.c: Likewise.
2004-08-31 06:44:20 +00:00
Roland Illig
73207a8994 * slang.h: Added const qualifier to some of the SLang functions. 2004-08-30 11:12:57 +00:00
Pavel Roskin
df44271fd0 * sldisply.c (RGB_to_BGR): Make const.
* slsignal.c (SLsystem): Commented out.
2003-09-26 21:34:49 +00:00
Pavel Roskin
3e0fee42ad * slerr.c (SLang_doerror): Fix possible off-by-one error.
* sltermin.c (_SLtt_tigetent): Likewise.
2003-09-11 21:38:03 +00:00
Pavel Roskin
e9067abfaf * sldisply.c: Fix for the previous patch. Only swap colors if
setf and setb are not empty.
Reported by Andras Barthazi <andras@barthazi.hu>
2002-11-28 20:35:34 +00:00
Pavel Roskin
257b4b360c * sldisply.c: Patch to swap blue and red colors for setf/setb
capabilities.  Needed on QNX Neutrino.
Reported by Pavel Shirshov <pavelsh@mail.ru>
2002-10-25 04:53:16 +00:00
Pavel Roskin
ade4cf0bbf * include/jdmacros.h: Define SLMEMSET and SLMEMCPY
unconditionally, use macros with arguments.
* include/_slang.h: Make it clear which parts are disabled
for compatibility with glib.
* include/slinclud.h: Include malloc.h only if STDC_HEADERS is
not defined.
2002-10-07 15:48:42 +00:00
Andrew V. Samoilov
318a346055 * sldisply.c (Color_Def_Type): Make const.
* slsmg.c (Fake_Alt_Char_Pairs): Likewise.
* sltermin.c (Tgetstr_Map_Type): Likewise.
* slutty.c (Baud_Rate_Type): Likewise.
2002-10-07 11:08:16 +00:00
Pavel Roskin
b0b73df498 Update to S-Lang 1.4.5. Move include files to "include"
directory to avoid the need to rename slang.h.
* Makefile.am: Adjust file list.  Add "-Iinclude" to the
compiler flags.
* include/jdmacros.h: Rewrite to use glib.
* slmisc.c: Trim to include only needed functions.
2002-10-07 04:41:03 +00:00
Andrew V. Samoilov
661db03d9c * slerr.c (SLang_doerror): Use error parameter. Eliminate err[] array. 2002-09-18 07:59:47 +00:00
Pavel Roskin
da4bd88a56 * slsmg.c (Fake_Alt_Char_Pairs): Update from slang-1.4.5. This
fixes the MC logo in the help screen.
2002-08-21 06:39:56 +00:00
Pavel Roskin
6a5df4c736 * slvideo.c: Include _slang.h, not slang.h. 2002-01-21 23:37:36 +00:00
Pavel Roskin
3b283eaf61 * slos2tty.c: Remove since OS/2 is no longer supported.
* Makefile.am (EXTRASRC): Remove slos2tty.c.
2002-01-21 07:52:46 +00:00
Pavel Roskin
0dd5f511be * _slang.h: Include slang-mc.h.
* slang-mc.h: Add protection against using with system installed
S-Lang library.
* sl*.c: Only include _slang.h, but not slang.h to avoid making
symlinks.
2001-12-21 20:14:55 +00:00
Pavel Roskin
ebc45d895d * Makefile.am (AM_CFLAGS): Remove CFLAGS, don't use substituted
values directly.
2001-09-04 05:33:54 +00:00
Pavel Roskin
0d7003910a * Makefile.am: Don't install libmcslang.a. 2001-08-26 16:43:28 +00:00
Pavel Roskin
2be0ee1d25 * Makefile.am (AM_CPPFLAGS): Remove, it's not needed. 2001-08-26 08:49:26 +00:00
Pavel Roskin
c1b2a29833 * Makefile.in: Converted to ...
* Makefile.am: ... this.
2001-08-25 05:07:31 +00:00
Pavel Roskin
5cb656aa9e * _slang.h: Include glib.h. 2001-02-22 16:08:06 +00:00
Norbert Warmuth
f807b91600 Tue Apr 13 07:07:36 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* slang/slutty.c (SLsys_getkey): handle EOF on stdin (return
SLANG_GETKEY_ERROR on EOF instead of returning garbage)

* slang/Makefile.in (clean): remove the symbolic link slang.h on the
distclean target and not on the clean target.


Tue Apr 13 07:14:10 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/slint.c (getch): Quit MC when SLang_getkey returns an error. Looking
at the code that's only the case when we read EOF from stdin.

This fixes the problem where MC consumes a lot of cpu time while
reading EOF from stdin in a tight loop. This situation arises when the
terminal line/connection drops without MC being sent SIGHUP.


Tue Apr 13 06:07:05 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* configure.in: Some AC_ARG_WITH macros haven't checked $withval, i.e.
--with-PACKAGE and --without-PACKAGE gave the same results.
1999-04-13 19:21:03 +00:00
Norbert Warmuth
b993f8e8ed Pass --with-included-slang to configure if you concerned about
that Bugtraq message.

Sun Feb 14 01:05:42 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* slang/sldisply.c (SLtt_get_terminfo): use g_snprintf instead of
sprintf

* slang/slsmg.c (SLsmg_printf): ditto

* slang/sltermin.c (SLtt_tigetent): ditto
1999-02-14 00:41:23 +00:00