"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/xface.c" between
tin-2.4.3.tar.xz and tin-2.4.4.tar.xz

About: TIN is a threaded NNTP and spool based UseNet newsreader.

xface.c  (tin-2.4.3.tar.xz):xface.c  (tin-2.4.4.tar.xz)
/* /*
* Project : tin - a Usenet reader * Project : tin - a Usenet reader
* Module : xface.c * Module : xface.c
* Author : Joshua Crawford & Drazen Kacar * Author : Joshua Crawford & Drazen Kacar
* Created : 2003-04-27 * Created : 2003-04-27
* Updated : 2013-11-06 * Updated : 2013-11-06
* Notes : * Notes :
* *
* Copyright (c) 2003-2019 Joshua Crawford <mortarn@softhome.net> & Drazen Kacar <dave@willfork.com> * Copyright (c) 2003-2020 Joshua Crawford <mortarn@softhome.net> & Drazen Kacar <dave@willfork.com>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright *
* notice, this list of conditions and the following disclaimer. * 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the * notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution. * documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote *
* products derived from this software without specific prior written * 3. Neither the name of the copyright holder nor the names of its
* permission. * contributors may be used to endorse or promote products derived from
* * this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS *
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/ */
/* /*
* TODO: - document the used vars/files/dir in the manpage * TODO: - document the used vars/files/dir in the manpage
* - move strings to lang.c * - move strings to lang.c
*/ */
#ifndef TIN_H #ifndef TIN_H
# include "tin.h" # include "tin.h"
#endif /* !TIN_H */ #endif /* !TIN_H */
skipping to change at line 68 skipping to change at line 71
size_t pathlen; size_t pathlen;
struct utsname u; struct utsname u;
if (tinrc.use_slrnface == FALSE) if (tinrc.use_slrnface == FALSE)
return; return;
#ifdef HAVE_IS_XTERM #ifdef HAVE_IS_XTERM
if (!is_xterm()) { if (!is_xterm()) {
# ifdef DEBUG # ifdef DEBUG
if (debug & DEBUG_MISC) if (debug & DEBUG_MISC)
error_message(2, _("Can't run slrnface: Not running in a xterm.")); error_message(2, _("Can't run slrnface: Not running in an xterm."));
# endif /* DEBUG */ # endif /* DEBUG */
return; return;
} }
#endif /* HAVE_IS_XTERM */ #endif /* HAVE_IS_XTERM */
/* /*
* $DISPLAY holds the (default) display name * $DISPLAY holds the (default) display name
*/ */
if (!getenv("DISPLAY")) { if (!getenv("DISPLAY")) {
# ifdef DEBUG # ifdef DEBUG
skipping to change at line 160 skipping to change at line 163
return; return;
} }
switch ((pid = fork())) { switch ((pid = fork())) {
case -1: case -1:
break; break;
case 0: case 0:
/* /*
* TODO: allow positioning, coloring, ... * TODO: allow positioning, coloring, ...
* execlp("slrnface", "slrnface", * execl(PATH_SLRNFACE, "slrnface",
* "-xOffsetChar", tinrc.xfacex, * "-xOffsetChar", tinrc.xfacex,
* "-yOffsetChar", tinrc.xfacey, * "-yOffsetChar", tinrc.xfacey,
* "-ink", tinrc.xfacefg, * "-ink", tinrc.xfacefg,
* "-paper", tinrc.xfacebg, * "-paper", tinrc.xfacebg,
* fifo, NULL); * fifo, NULL);
*/ */
execlp("slrnface", "slrnface", fifo, NULL); execlp("slrnface", "slrnface", fifo, NULL);
/* This is child, exit on error. */ /* This is child, exit on error. */
giveup(); giveup();
/* NOTREACHED */ /* NOTREACHED */
 End of changes. 5 change blocks. 
20 lines changed or deleted 23 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)