* 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.
This commit is contained in:
Andrew V. Samoilov 2002-10-07 11:08:16 +00:00
parent 3d95a5fa29
commit 318a346055
5 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2002-10-07 Andrew V. Samoilov <sav@bcs.zp.ua>
* 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 Pavel Roskin <proski@gnu.org>
Update to S-Lang 1.4.5. Move include files to "include"

View File

@ -911,7 +911,7 @@ void SLtt_del_eol (void)
del_eol ();
}
typedef struct
typedef const struct
{
char *name;
SLtt_Char_Type color;

View File

@ -959,12 +959,13 @@ void SLsmg_touch_screen (void)
#ifndef IBMPC_SYSTEM
static char Fake_Alt_Char_Pairs [] = "a:j+k+l+m+q-t+u+v+w+x|n+`+f\\g#~o,<+>.v-^h#0#";
static const char Fake_Alt_Char_Pairs [] = "a:j+k+l+m+q-t+u+v+w+x|n+`+f\\g#~o,<+>.v-^h#0#";
static void init_alt_char_set (void)
{
int i;
unsigned char *p, *pmax, ch;
unsigned const char *p, *pmax;
unsigned char ch;
if (Alt_Char_Set[128] == 128) return;

View File

@ -335,7 +335,7 @@ SLterminfo_Type *_SLtt_tigetent (char *term)
# define UNTIC_COMMENT(x)
#endif
typedef struct
typedef const struct
{
char name[3];
int offset;

View File

@ -91,7 +91,7 @@ typedef struct termios TTY_Termio_Type;
static TTY_Termio_Type Old_TTY;
#ifdef HAVE_TERMIOS_H
typedef struct
typedef const struct
{
unsigned int key;
unsigned int value;