commit xterm for openSUSE:Factory
Hello community,
here is the log from the commit of package xterm for openSUSE:Factory checked in at 2015-04-22 01:16:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xterm (Old)
and /work/SRC/openSUSE:Factory/.xterm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xterm"
Changes:
--------
--- /work/SRC/openSUSE:Factory/xterm/xterm.changes 2015-03-30 19:10:27.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.xterm.new/xterm.changes 2015-04-22 01:16:20.000000000 +0200
@@ -1,0 +2,18 @@
+Sun Apr 19 09:03:43 UTC 2015 - mpluskal@suse.com
+
+- Update to version 318
+ * rename new(er) configure option --enable-initial-erase to
+ --enable-pty-erase, since that conflicted with an existing
+ option (report by Jens Schweikhardt).
+ * fix cut/paste error in --with-builtin-xpms configure option
+ (reports by Jens Schweikhardt, Ross Combs).
+ * fix minor formatting issue in xterm manual (report by Jens
+ Schweikhardt).
+ * eliminate unnecessary "#(vi" markers in autoconf macros by
+ using "(" to begin case-statement cases (suggested by Jens
+ Schweikhardt).
+ * minor fixes to improve const usage (Ross Combs).
+- Add pkgconfig and groff as dependency as configure is looking
+ for them
+
+-------------------------------------------------------------------
Old:
----
xterm-317.tgz
xterm-317.tgz.asc
New:
----
xterm-318.tgz
xterm-318.tgz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ xterm.spec ++++++
--- /var/tmp/diff_new_pack.RKlDBS/_old 2015-04-22 01:16:21.000000000 +0200
+++ /var/tmp/diff_new_pack.RKlDBS/_new 2015-04-22 01:16:21.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package xterm
#
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%define vttest_version 20120506
%define splitbin 0%{?suse_version} >= 1300
Name: xterm
-Version: 317
+Version: 318
Release: 0
Summary: The basic X terminal program
License: MIT
@@ -58,6 +58,8 @@
Provides: XFree86:%{_prefix}/X11R6/bin/xterm
Provides: xorg-x11:%{_prefix}/X11R6/bin/xterm
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: groff
+BuildRequires: pkgconfig
%if 0%{?suse_version} > 1220
BuildRequires: fontpackages-devel
%endif
++++++ xterm-317.tgz -> xterm-318.tgz ++++++
++++ 5544 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/INSTALL new/xterm-318/INSTALL
--- old/xterm-317/INSTALL 2015-02-11 11:17:08.000000000 +0100
+++ new/xterm-318/INSTALL 2015-04-12 22:44:43.000000000 +0200
@@ -1,4 +1,4 @@
--- $XTermId: INSTALL,v 1.156 2015/02/11 10:17:08 tom Exp $
+-- $XTermId: INSTALL,v 1.157 2015/04/12 20:44:43 tom Exp $
-------------------------------------------------------------------------------
-- Copyright 1997-2014,2015 by Thomas E. Dickey
--
@@ -444,10 +444,6 @@
Compile-in code to support HP-style function keys.
- --enable-initial-erase set default ptyInitialErase resource (default: false)
-
- This sets the default resource value, which is shown in the manpage.
-
--enable-load-vt-fonts enable load-vt-fonts() action
Compile-in code that allows user to define load different VT-font
@@ -493,6 +489,10 @@
configure --disable-imake --disable-narrowproto
+ --enable-pty-erase set default ptyInitialErase resource (default: false)
+
+ This sets the default resource value, which is shown in the manpage.
+
--enable-readline-mouse enable support for mouse in readline applications
Compile-in code to support experimental bracketed paste mode, i.e.,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/MANIFEST new/xterm-318/MANIFEST
--- old/xterm-317/MANIFEST 2015-03-21 00:54:43.000000000 +0100
+++ new/xterm-318/MANIFEST 2015-04-06 12:31:31.000000000 +0200
@@ -1,4 +1,4 @@
-MANIFEST for xterm-317, version xterm-317
+MANIFEST for xterm-318, version xterm-318
--------------------------------------------------------------------------------
MANIFEST this file
256colres.h resource-definitions for 256-color mode
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/button.c new/xterm-318/button.c
--- old/xterm-317/button.c 2014-12-28 23:15:03.000000000 +0100
+++ new/xterm-318/button.c 2015-04-10 12:16:19.000000000 +0200
@@ -1,7 +1,7 @@
-/* $XTermId: button.c,v 1.491 2014/12/28 22:15:03 tom Exp $ */
+/* $XTermId: button.c,v 1.492 2015/04/10 10:16:19 tom Exp $ */
/*
- * Copyright 1999-2013,2014 by Thomas E. Dickey
+ * Copyright 1999-2014,2015 by Thomas E. Dickey
*
* All Rights Reserved
*
@@ -3853,8 +3853,9 @@
char *the_data = (char *) screen->selection_data;
char *the_next;
- TRACE(("converting %ld:'%s'\n", screen->selection_length,
- visibleChars(screen->selection_data, screen->selection_length)));
+ TRACE(("converting %ld:'%s'\n",
+ (long) screen->selection_length,
+ visibleChars(screen->selection_data, (unsigned) screen->selection_length)));
/*
* For most selections, we can convert in one pass. It is possible
* that some applications contain embedded nulls, e.g., using xterm's
@@ -4165,7 +4166,7 @@
TRACE(("_OwnSelection count %d, length %ld value %s\n", count,
screen->selection_length,
- visibleChars(screen->selection_data, screen->selection_length)));
+ visibleChars(screen->selection_data, (unsigned) screen->selection_length)));
selections = MapSelections(xw, selections, count);
if (count > screen->sel_atoms_size) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/charproc.c new/xterm-318/charproc.c
--- old/xterm-317/charproc.c 2015-03-02 12:46:32.000000000 +0100
+++ new/xterm-318/charproc.c 2015-04-12 18:57:00.000000000 +0200
@@ -1,4 +1,4 @@
-/* $XTermId: charproc.c,v 1.1407 2015/03/02 11:46:32 tom Exp $ */
+/* $XTermId: charproc.c,v 1.1409 2015/04/12 16:57:00 tom Exp $ */
/*
* Copyright 1999-2014,2015 by Thomas E. Dickey
@@ -7422,7 +7422,7 @@
lookupSelectUnit(XtermWidget xw, Cardinal item, String value)
{
/* *INDENT-OFF* */
- static struct {
+ static const struct {
const char * name;
SelectUnit code;
} table[] = {
@@ -10886,6 +10886,26 @@
#undef FMT
}
+void
+getKeymapResources(Widget w,
+ const char *mapName,
+ const char *mapClass,
+ const char *type,
+ void *result,
+ size_t size)
+{
+ XtResource key_resources[1];
+ key_resources[0].resource_name = XtNtranslations;
+ key_resources[0].resource_class = XtCTranslations;
+ key_resources[0].resource_type = (char *) type;
+ key_resources[0].resource_size = (Cardinal) size;
+ key_resources[0].resource_offset = 0;
+ key_resources[0].default_type = key_resources[0].resource_type;
+ key_resources[0].default_addr = 0;
+ XtGetSubresources(w, (XtPointer) result, mapName, mapClass,
+ key_resources, (Cardinal) 1, NULL, (Cardinal) 0);
+}
+
/* ARGSUSED */
static void
HandleKeymapChange(Widget w,
@@ -10894,48 +10914,56 @@
Cardinal *param_count)
{
static XtTranslations keymap, original;
- static XtResource key_resources[] =
- {
- {XtNtranslations, XtCTranslations, XtRTranslationTable,
- sizeof(XtTranslations), 0, XtRTranslationTable, (XtPointer) NULL}
- };
char mapName[1000];
char mapClass[1000];
char *pmapName;
char *pmapClass;
size_t len;
+ TRACE(("HandleKeymapChange(%#lx, %s)\n",
+ w,
+ (*param_count
+ ? params[0]
+ : "missing")));
+
if (*param_count != 1)
return;
- if (original == NULL)
+ if (original == NULL) {
+ TRACE(("...saving original keymap-translations\n"));
original = w->core.tm.translations;
+ }
if (strcmp(params[0], "None") == 0) {
+ TRACE(("...restoring original keymap-translations\n"));
XtOverrideTranslations(w, original);
- return;
- }
+ } else {
- len = strlen(params[0]) + 7;
+ len = strlen(params[0]) + 7;
- pmapName = (char *) MyStackAlloc(len, mapName);
- pmapClass = (char *) MyStackAlloc(len, mapClass);
- if (pmapName == NULL
- || pmapClass == NULL) {
- SysError(ERROR_KMMALLOC1);
- } else {
+ pmapName = (char *) MyStackAlloc(len, mapName);
+ pmapClass = (char *) MyStackAlloc(len, mapClass);
+ if (pmapName == NULL
+ || pmapClass == NULL) {
+ SysError(ERROR_KMMALLOC1);
+ } else {
- (void) sprintf(pmapName, "%sKeymap", params[0]);
- (void) strcpy(pmapClass, pmapName);
- if (islower(CharOf(pmapClass[0])))
- pmapClass[0] = x_toupper(pmapClass[0]);
- XtGetSubresources(w, (XtPointer) &keymap, pmapName, pmapClass,
- key_resources, (Cardinal) 1, NULL, (Cardinal) 0);
- if (keymap != NULL)
- XtOverrideTranslations(w, keymap);
+ (void) sprintf(pmapName, "%sKeymap", params[0]);
+ (void) strcpy(pmapClass, pmapName);
+ if (islower(CharOf(pmapClass[0])))
+ pmapClass[0] = x_toupper(pmapClass[0]);
+ getKeymapResources(w, pmapName, pmapClass, XtRTranslationTable,
+ &keymap, sizeof(keymap));
+ if (keymap != NULL) {
+ TRACE(("...applying keymap \"%s\"\n", pmapName));
+ XtOverrideTranslations(w, keymap);
+ } else {
+ TRACE(("...found no match for keymap \"%s\"\n", pmapName));
+ }
- MyStackFree(pmapName, mapName);
- MyStackFree(pmapClass, mapClass);
+ MyStackFree(pmapName, mapName);
+ MyStackFree(pmapClass, mapClass);
+ }
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/configure.in new/xterm-318/configure.in
--- old/xterm-317/configure.in 2015-03-05 21:54:36.000000000 +0100
+++ new/xterm-318/configure.in 2015-04-12 22:41:52.000000000 +0200
@@ -1,4 +1,4 @@
-dnl $XTermId: configure.in,v 1.332 2015/03/05 20:54:36 tom Exp $
+dnl $XTermId: configure.in,v 1.335 2015/04/12 20:41:52 tom Exp $
dnl
dnl -----------------------------------------------------------------------------
dnl this file is part of xterm
@@ -44,11 +44,11 @@
dnl Only add to this case statement when a system has a compiler that is not
dnl detected by AC_PROG_CC.
case "$host_os" in
-openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
+(openedition) : ${CFLAGS="-O2 -Wc,dll -Wl,EDIT=NO"}
: ${CPPFLAGS="-D_ALL_SOURCE"}
: ${LIBS="/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/X11.x"}
: ${CC=c89};;
-darwin*)
+(darwin*)
: ${LDFLAGS}="${LDFLAGS} -Wl,-bind_at_load";;
esac
@@ -285,7 +285,7 @@
# imake-file.
if test "x$cf_cv_lib_tgetent" != xno || test "x$cf_cv_lib_part_tgetent" != xno ; then
case "$IMAKE_CFLAGS" in
- *-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
+ (*-DUSE_TERMINFO\ -DHAVE_TIGETSTR*)
CF_UNDO_CFLAGS(IMAKE_CFLAGS,terminfo,[-DUSE_TERMINFO[[ ]]*-DHAVE_TIGETSTR[[ ]]*])
CF_UNDO_CFLAGS(CPPFLAGS,terminfo,[-DUSE_TERMINFO[[ ]]*-DHAVE_TIGETSTR[[ ]]*])
;;
@@ -301,7 +301,7 @@
[default_termid=vt420])
AC_MSG_RESULT($default_termid)
case $default_termid in
-vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
+(vt*) default_termid=`echo $default_termid | sed -e 's/^..//'`
;;
esac
AC_DEFINE_UNQUOTED(DFT_DECID,"$default_termid",[default terminal-id])
@@ -339,8 +339,8 @@
CF_XBOOL_RESULT(DEFDELETE_DEL,delete_is_del,[Define to 1 if default backspace/DEL setting is DEL])
AC_MSG_CHECKING(for default pty initial erase setting)
-AC_ARG_ENABLE(initial-erase,
- [ --enable-initial-erase set default ptyInitialErase resource (default: maybe)],
+AC_ARG_ENABLE(pty-erase,
+ [ --enable-pty-erase set default ptyInitialErase resource (default: maybe)],
[initial_erase=$enableval],
[initial_erase=False])
CF_XBOOL_RESULT(DEF_INITIAL_ERASE,initial_erase,[Define to 1 if default pty initial erase setting is TRUE])
@@ -465,10 +465,10 @@
AC_MSG_CHECKING(if you want to ignore Linux's broken palette-strings)
-case $host_os in #(vi
-linux*)
- assume_broken_osc=yes ;; #(vi
-*)
+case $host_os in
+(linux*)
+ assume_broken_osc=yes ;;
+(*)
assume_broken_osc=no ;;
esac
@@ -493,7 +493,7 @@
test "$enable_broken_st" = no && AC_DEFINE(OPT_BROKEN_ST,0,[Define to 0 to disallow broken string-terminators])
AC_MSG_CHECKING(if you want to compile-in icon data)
-CF_ARG_ENABLE(broken-st,
+CF_ARG_ENABLE(builtin-xpms,
[ --enable-builtin-xpms compile-in icon data],
[enable_builtin_xpms=no],
[enable_builtin_xpms=yes])
@@ -584,9 +584,9 @@
AC_MSG_RESULT($enable_double_bfr)
if test "$enable_double_bfr" = yes ; then
case "x$LIBS" in
- *Xext*)
+ (*Xext*)
;;
- *)
+ (*)
CF_X_EXT
;;
esac
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/ctlseqs.ms new/xterm-318/ctlseqs.ms
--- old/xterm-317/ctlseqs.ms 2015-02-28 02:43:29.000000000 +0100
+++ new/xterm-318/ctlseqs.ms 2015-04-12 22:55:48.000000000 +0200
@@ -1,6 +1,6 @@
.\"#! troff -ms $1 -*- Nroff -*-
.\" "Xterm Control Sequences" document
-.\" $XTermId: ctlseqs.ms,v 1.319 2015/02/28 01:43:29 tom Exp $
+.\" $XTermId: ctlseqs.ms,v 1.320 2015/04/12 20:55:48 tom Exp $
.\"
.\"
.\" Copyright 1996-2014,2015 by Thomas E. Dickey
@@ -69,8 +69,8 @@
.\"
.ds XT XTerm
.ds xt xterm
-.ds LF Patch #315
-.ds RF 2015/02/27
+.ds LF Patch #318
+.ds RF 2015/04/12
.\"
.if n .pl 9999v \" no page breaks in nroff
.ND
@@ -641,7 +641,7 @@
\*(c"\*q \(-> DECSCA
\*(c"\*p \(-> DECSCL
\*r \(-> DECSTBM
- \*s \(-> DECSLRM
+ \*(cs \(-> DECSLRM
\*m \(-> SGR
\*(Sp\*q \(-> DECSCUSR
.br
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/ctlseqs.txt new/xterm-318/ctlseqs.txt
--- old/xterm-317/ctlseqs.txt 2015-02-28 02:45:34.000000000 +0100
+++ new/xterm-318/ctlseqs.txt 2015-04-12 23:08:33.000000000 +0200
@@ -21,7 +21,7 @@
Thomas Dickey
XFree86 Project (1996-2006)
invisible-island.net (2006-2015)
- updated for XTerm Patch #315 (2015/02/27)
+ updated for XTerm Patch #318 (2015/04/12)
@@ -210,7 +210,7 @@
" q -> DECSCA
" p -> DECSCL
r -> DECSTBM
- -> DECSLRM
+ s -> DECSLRM
m -> SGR
SP q -> DECSCUSR
xterm responds with DCS 1 $ r Pt ST for valid requests,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/input.c new/xterm-318/input.c
--- old/xterm-317/input.c 2015-02-16 01:10:30.000000000 +0100
+++ new/xterm-318/input.c 2015-04-10 12:50:21.000000000 +0200
@@ -1,4 +1,4 @@
-/* $XTermId: input.c,v 1.352 2015/02/16 00:10:30 tom Exp $ */
+/* $XTermId: input.c,v 1.354 2015/04/10 10:50:21 tom Exp $ */
/*
* Copyright 1999-2014,2015 by Thomas E. Dickey
@@ -130,13 +130,13 @@
} KEY_DATA;
static
-const char *kypd_num = " XXXXXXXX\tXXX\rXXXxxxxXXXXXXXXXXXXXXXXXXXXX*+,-./0123456789XXX=";
-/* 0123456789 abc def0123456789abcdef0123456789abcdef0123456789abcd */
+const char kypd_num[] = " XXXXXXXX\tXXX\rXXXxxxxXXXXXXXXXXXXXXXXXXXXX*+,-./0123456789XXX=";
+/* 0123456789 abc def0123456789abcdef0123456789abcdef0123456789abcd */
static
-const char *kypd_apl = " ABCDEFGHIJKLMNOPQRSTUVWXYZ??????abcdefghijklmnopqrstuvwxyzXXX";
-/* 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd */
+const char kypd_apl[] = " ABCDEFGHIJKLMNOPQRSTUVWXYZ??????abcdefghijklmnopqrstuvwxyzXXX";
+/* 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd */
static
-const char *curfinal = "HDACB FE";
+const char curfinal[] = "HDACB FE";
static int decfuncvalue(KEY_DATA *);
static void sunfuncvalue(ANSI *, KEY_DATA *);
@@ -1726,7 +1726,7 @@
Boolean escape = False;
Boolean quoted = False;
- static const char *table[] =
+ static const char *const table[] =
{
"insert",
"insert-seven-bit",
@@ -1854,26 +1854,14 @@
static Bool
TranslationsUseKeyword(Widget w, char **cache, const char *keyword, Bool onlyInsert)
{
- static String data;
- static XtResource key_resources[] =
- {
- {XtNtranslations, XtCTranslations, XtRString,
- sizeof(data), 0, XtRString, (XtPointer) NULL}
- };
Bool result = False;
char *copy;
char *test;
if ((test = stripTranslations(keyword, onlyInsert)) != 0) {
if (*cache == 0) {
- XtGetSubresources(w,
- (XtPointer) &data,
- "vt100",
- "VT100",
- key_resources,
- XtNumber(key_resources),
- NULL,
- (Cardinal) 0);
+ String data = 0;
+ getKeymapResources(w, "vt100", "VT100", XtRString, &data, sizeof(data));
if (data != 0 && (copy = stripTranslations(data, onlyInsert)) != 0) {
*cache = copy;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/main.c new/xterm-318/main.c
--- old/xterm-317/main.c 2014-12-29 01:17:32.000000000 +0100
+++ new/xterm-318/main.c 2015-04-10 02:33:25.000000000 +0200
@@ -1,7 +1,7 @@
-/* $XTermId: main.c,v 1.767 2014/12/29 00:17:32 tom Exp $ */
+/* $XTermId: main.c,v 1.769 2015/04/10 00:33:25 tom Exp $ */
/*
- * Copyright 2002-2013,2014 by Thomas E. Dickey
+ * Copyright 2002-2014,2015 by Thomas E. Dickey
*
* All Rights Reserved
*
@@ -1296,7 +1296,7 @@
{ NULL, NULL }};
/* *INDENT-ON* */
-static const char *message[] =
+static const char *const message[] =
{
"Fonts should be fixed width and, if both normal and bold are specified, should",
"have the same size. If only a normal font is specified, it will be used for",
@@ -1615,7 +1615,7 @@
{
OptionHelp *opt;
OptionHelp *list = sortedOpts(xtermOptions, optionDescList, XtNumber(optionDescList));
- const char **cpp;
+ const char *const *cpp;
printf("%s usage:\n %s [-options ...] [-e command args]\n\n",
xtermVersion(), ProgramName);
@@ -1952,7 +1952,7 @@
{
#if OPT_MAXIMIZE
#define DATA(name) { #name, es##name }
- static FlagList tblFullscreen[] =
+ static const FlagList tblFullscreen[] =
{
DATA(Always),
DATA(Never)
@@ -2881,7 +2881,7 @@
*/
#if OPT_TEK4014
-static const char *tekterm[] =
+static const char *const tekterm[] =
{
"tek4014",
"tek4015", /* 4014 with APL character set support */
@@ -2900,7 +2900,7 @@
* The VT420 has up to 48 lines on the screen.
*/
-static const char *vtterm[] =
+static const char *const vtterm[] =
{
#ifdef USE_X11TERM
"x11term", /* for people who want special term name */
@@ -3320,7 +3320,7 @@
#if USE_NO_DEV_TTY
int no_dev_tty = False;
#endif
- const char **envnew; /* new environment */
+ const char *const *envnew; /* new environment */
char buf[64];
char *TermName = NULL;
#ifdef TTYSIZE_STRUCT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/menu.c new/xterm-318/menu.c
--- old/xterm-317/menu.c 2015-03-02 03:00:32.000000000 +0100
+++ new/xterm-318/menu.c 2015-04-10 03:11:52.000000000 +0200
@@ -1,4 +1,4 @@
-/* $XTermId: menu.c,v 1.329 2015/03/02 02:00:32 tom Exp $ */
+/* $XTermId: menu.c,v 1.331 2015/04/10 01:11:52 tom Exp $ */
/*
* Copyright 1999-2014,2015 by Thomas E. Dickey
@@ -465,7 +465,7 @@
} MenuHeader;
/* This table is ordered to correspond with MenuIndex */
-static MenuHeader menu_names[] = {
+static const MenuHeader menu_names[] = {
{ "mainMenu", mainMenuEntries, XtNumber(mainMenuEntries) },
{ "vtMenu", vtMenuEntries, XtNumber(vtMenuEntries) },
{ "fontMenu", fontMenuEntries, XtNumber(fontMenuEntries) },
@@ -642,7 +642,7 @@
{XtNcallback, (XtArgVal) cb};
TScreen *screen = TScreenOf(xw);
- MenuHeader *data = &menu_names[num];
+ const MenuHeader *data = &menu_names[num];
MenuList *list = select_menu(w, num);
struct _MenuEntry *entries = data->entry_list;
Cardinal nentries = data->entry_len;
@@ -2118,7 +2118,7 @@
Cardinal *param_count)
{
/* *INDENT-OFF* */
- static struct sigtab {
+ static const struct sigtab {
const char *name;
int sig;
} signals[] = {
@@ -2141,7 +2141,7 @@
/* *INDENT-ON* */
if (*param_count == 1) {
- struct sigtab *st;
+ const struct sigtab *st;
for (st = signals; st->name; st++) {
if (XmuCompareISOLatin1(st->name, params[0]) == 0) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/misc.c new/xterm-318/misc.c
--- old/xterm-317/misc.c 2015-03-02 14:01:43.000000000 +0100
+++ new/xterm-318/misc.c 2015-04-10 10:27:17.000000000 +0200
@@ -1,4 +1,4 @@
-/* $XTermId: misc.c,v 1.724 2015/03/02 13:01:43 tom Exp $ */
+/* $XTermId: misc.c,v 1.726 2015/04/10 08:27:17 tom Exp $ */
/*
* Copyright 1999-2014,2015 by Thomas E. Dickey
@@ -704,8 +704,8 @@
init_colored_cursor(void)
{
#ifdef HAVE_LIB_XCURSOR
- const char *theme = "index.theme";
- const char *pattern = "xtermXXXXXX";
+ static const char theme[] = "index.theme";
+ static const char pattern[] = "xtermXXXXXX";
const char *tmp_dir;
char *filename;
char *env = getenv("XCURSOR_THEME");
@@ -2008,7 +2008,7 @@
if ((log_default = x_strdup(log_def_name)) == NULL)
return;
#else
- const char *log_def_name = "XtermLog.XXXXXX";
+ static const char log_def_name[] = "XtermLog.XXXXXX";
if ((log_default = x_strdup(log_def_name)) == NULL)
return;
@@ -5100,7 +5100,7 @@
const char *
SysErrorMsg(int code)
{
- static char unknown[] = "unknown error";
+ static const char unknown[] = "unknown error";
char *s = strerror(code);
return s ? s : unknown;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/xterm-317/package/debian/changelog new/xterm-318/package/debian/changelog
--- old/xterm-317/package/debian/changelog 2015-03-21 00:54:44.000000000 +0100
+++ new/xterm-318/package/debian/changelog 2015-04-06 12:31:31.000000000 +0200
@@ -1,3 +1,9 @@
+xterm-dev (318) unstable; urgency=low
+
+ * maintenance updates
+
+ -- Thomas E. Dickey
participants (1)
-
root@hilbert.suse.de