diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2014-05-09 19:56:42 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2014-05-09 19:56:42 +0000 |
commit | 0abff89ae011fd09403930fb14063b72ba40603a (patch) | |
tree | 937640dd5f74bcda37512cb4c26e6a80b3150eab /app/xterm/Tekproc.c | |
parent | a85e097bc006d743f42b66432c5c01c546f4535d (diff) |
Update to xterm 304. With help of shadchin@
tested by ajacoutot@ and shadchin@
Diffstat (limited to 'app/xterm/Tekproc.c')
-rw-r--r-- | app/xterm/Tekproc.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/app/xterm/Tekproc.c b/app/xterm/Tekproc.c index 74521eb3a..065ef23e0 100644 --- a/app/xterm/Tekproc.c +++ b/app/xterm/Tekproc.c @@ -1,7 +1,7 @@ -/* $XTermId: Tekproc.c,v 1.194 2012/09/07 09:08:44 tom Exp $ */ +/* $XTermId: Tekproc.c,v 1.196 2014/04/12 00:55:22 tom Exp $ */ /* - * Copyright 2001-2011,2012 by Thomas E. Dickey + * Copyright 2001-2012,2014 by Thomas E. Dickey * * All Rights Reserved * @@ -144,7 +144,7 @@ #define input() Tinput(tw) #define unput(c) *Tpushback++ = (Char) c /* *INDENT-OFF* */ -static struct Tek_Char { +static const struct Tek_Char { int hsize; /* in Tek units */ int vsize; /* in Tek units */ int charsperline; @@ -187,8 +187,8 @@ static char defaultTranslations[] = "\ ~Meta<Btn3Down>: gin-press(r)"; /* *INDENT-OFF* */ static XtActionsRec actionsList[] = { - { "string", HandleStringEvent }, - { "insert", HandleKeyPressed }, /* alias for insert-seven-bit */ + { "string", HandleStringEvent }, + { "insert", HandleKeyPressed }, /* alias for insert-seven-bit */ { "insert-seven-bit", HandleKeyPressed }, { "insert-eight-bit", HandleEightBitKeyPressed }, { "gin-press", HandleGINInput }, @@ -1082,7 +1082,7 @@ static void TCursorBack(TekWidget tw) { TekScreen *tekscr = TekScreenOf(tw); - struct Tek_Char *t; + const struct Tek_Char *t; int x, l; x = (tekscr->cur_X -= @@ -1105,7 +1105,7 @@ static void TCursorForward(TekWidget tw) { TekScreen *tekscr = TekScreenOf(tw); - struct Tek_Char *t; + const struct Tek_Char *t; int l; if ((tekscr->cur_X += @@ -1125,7 +1125,7 @@ static void TCursorUp(TekWidget tw) { TekScreen *tekscr = TekScreenOf(tw); - struct Tek_Char *t; + const struct Tek_Char *t; int l; t = &TekChar[tekscr->cur.fontsize]; @@ -1145,7 +1145,7 @@ static void TCursorDown(TekWidget tw) { TekScreen *tekscr = TekScreenOf(tw); - struct Tek_Char *t; + const struct Tek_Char *t; int l; t = &TekChar[tekscr->cur.fontsize]; @@ -1336,7 +1336,7 @@ TekRun(void) #define SHORT_DASHED_LENGTH 2 #define LONG_DASHED_LENGTH 2 -static int dash_length[TEKNUMLINES] = +static const int dash_length[TEKNUMLINES] = { DOTTED_LENGTH, DOT_DASHED_LENGTH, @@ -1344,16 +1344,16 @@ static int dash_length[TEKNUMLINES] = LONG_DASHED_LENGTH, }; -static unsigned char dotted[DOTTED_LENGTH] = +static _Xconst char dotted[DOTTED_LENGTH] = {3, 1}; -static unsigned char dot_dashed[DOT_DASHED_LENGTH] = +static _Xconst char dot_dashed[DOT_DASHED_LENGTH] = {3, 4, 3, 1}; -static unsigned char short_dashed[SHORT_DASHED_LENGTH] = +static _Xconst char short_dashed[SHORT_DASHED_LENGTH] = {4, 4}; -static unsigned char long_dashed[LONG_DASHED_LENGTH] = +static _Xconst char long_dashed[LONG_DASHED_LENGTH] = {4, 7}; -static unsigned char *dashes[TEKNUMLINES] = +static _Xconst char *dashes[TEKNUMLINES] = { dotted, dot_dashed, @@ -1610,7 +1610,7 @@ TekRealize(Widget gw, tekscr->linepat[i] = XCreateGC(XtDisplay(tw), TWindow(tekscr), (GCForeground | GCLineStyle), &gcv); XSetDashes(XtDisplay(tw), tekscr->linepat[i], 0, - (char *) dashes[i], dash_length[i]); + dashes[i], dash_length[i]); } TekBackground(tw, screen); @@ -1730,7 +1730,7 @@ TekSetFontSize(TekWidget tw, Bool fromMenu, int newitem) } void -ChangeTekColors(TekWidget tw, TScreen * screen, ScrnColors * pNew) +ChangeTekColors(TekWidget tw, TScreen *screen, ScrnColors * pNew) { TekScreen *tekscr = TekScreenOf(tw); int i; @@ -1819,7 +1819,7 @@ TekReverseVideo(TekWidget tw) } static void -TekBackground(TekWidget tw, TScreen * screen) +TekBackground(TekWidget tw, TScreen *screen) { TekScreen *tekscr = TekScreenOf(tw); @@ -1939,7 +1939,7 @@ TekCopy(TekWidget tw) void HandleGINInput(Widget w, XEvent * event GCC_UNUSED, - String * param_list, + String *param_list, Cardinal *nparamsp) { XtermWidget xw = term; |