Commit e1e19f3f authored by Bernhard Link's avatar Bernhard Link

Import gv_3.6.91.orig.tar.gz

parents dc87b933 d3969e2b
2010-06-03 Markus Steinborn <gnugv_maintainer@yahoo.de>
* src/Aaa.c, src/Aaa_bison.c: Include ac_config.h, otherwise compiling
failes in Mac OS X.
2010-06-02 Markus Steinborn <gnugv_maintainer@yahoo.de>
* m4/* lib/* imported mkdtemp from gnulib.
Note: I ran "sed -i 's/<config.h>/<ac_config.h>/g' lib/*" after the
import.
I imported from revision
of gnulib.
2010-06-02 Markus Steinborn <gnugv_maintainer@yahoo.de>
* src/Ghostview.c, src/process.c, src/ps.c: Use safe-dir from variable
gv_safe_gs_workdir.
* src/main.c: Check if global safe-dir is accessible, if not, create
a temporary one.
* src/Ghostview.c, src/Scrollbar.c, src/callbacks.c, src/ps.c:
Call clean_safe_tempdir on each position gv can exit.
* src/main_globals.h: Two new vaiables gv_safe_gs_workdir and
gv_safe_gs_tempdir (=1 iff gv_safe_gs_workdir is temporary).
* src/actions.c(clean_safe_tempdir): Delete temporary safe-dir.
2010-06-02 Markus Steinborn <gnugv_maintainer@yahoo.de>
* src/Makefile.am: Create s"afe-gs-workdir".
2010-06-02 Markus Steinborn <gnugv_maintainer@yahoo.de>
* configure.ac, src/FileSel.c, src/Scrollbar.c, src/actions.c,
src/callbacks.c, src/file.c, src/main.c, src/misc.c, src/options_gv.c:
mkstemo and inttypes.h are always available after gnulib import
2010-06-02 Markus Steinborn <gnugv_maintainer@yahoo.de>
* m4/* lib/* updated gnulib and imported canonicalize-lgpl, inttypes
and mkstemp.
Note: I ran "sed -i 's/<config.h>/<ac_config.h>/g' lib/*" after the
import.
I imported from revision 8ab5996c4a14364411442d93babb343cc2ce0d89
of gnulib.
2010-05-30 Markus Steinborn <gnugv_maintainer@yahoo.de>
* src/gv_message.h: Document new options
* rc/main.c: Parsing of new options --safedir and --nosafedir
* src/main_globals.h: Global variable for each of the new options
* src/resource.c: Modify resource GV.gsSafeDir on new options
2010-05-30 Bernhard R. Link <brlink@debian.org>
* src/Ghostview.c, src/Ghostview.h, src/GhostviewP.h, src/Makefile.am,
src/doc_misc.c, src/doc_misc.h, gv_layout_res.dat, src/gv_misc_res.dat,
src/main.c, main_globals.h, main_resources.h, src/misc.c, options_gs.c,
process.c, src/ps.c, src/ps.h, src/save.c, src/zoom.c:
New resource GV.gsSafeDir, ability to set it to true resp. false by
user interface, if enabled start ghostscript from a safe directory.
2010-05-30 Markus Steinborn <gnugv_maintainer@yahoo.de>
* src/misc.c(setup_ghostview), src/save.c(save_forkPDFToPSConversion):
Add -P- if and only if SAVER is turned on.
2010-05-29 Markus Steinborn <gnugv_maintainer@yahoo.de>
* doc/gv.texi: Update: ghostscript is called with -P- (by B. R. Link)
* src/Ghostview.c(StartInterpreter): Call ghostscript with -P-
(by B. R. Link)
* src/misc.c(setup_ghostview): Call ghostscript with -P-
* src/save.c(save_forkPDFToPSConversion): likewise
2010-05-29 Bernhard R. Link <brlink@debian.org>
* src/resource.c(resource_buildDatabase): Fixed possible segfault
2010-05-29 Markus Steinborn <gnugv_maintainer@yahoo.de>
* configure.ac, src/versionp.h: Bumped version to 3.6.91
2010-05-29 Markus Steinborn <gnugv_maintainer@yahoo.de>
* src/nls/de.UTF-8.dat, src/nls/noint:de.dat: Translate one missing
string
2010-05-14 Yasuyuki Furukawa <yasu@on.cs.keio.ac.jp>
* src/nls/ja_JP.UTF-8.dat, src/nls/ko_KR.UTF-8.dat: Added Japanese and
......
This diff is collapsed.
......@@ -9,6 +9,17 @@ by a '#' or a '*' or a '?'. A
'#' denotes a change which is noticeable by the user.
'?' describes a known problem which is not fixed yet.
%%%%%%%%%%%%%%%%%%% GV 3.6.91 (June 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# Support starting ghostscript from a safe directory.
# ghostscript is startet with -P- if SAFER is enabled.
# ghostscript is startet with -dSAFER and -dDELAYSAFER for "pdf2dsc"
and "pdf2ps" if safer is enabled
# Minor bugfixes
%%%%%%%%%%%%%%%%%%% GV 3.6.90 (May 2010) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# Fix compiling on Mac OS X
......
......@@ -1001,8 +1001,41 @@ AC_SUBST([am__tar])
AC_SUBST([am__untar])
]) # _AM_PROG_TAR
m4_include([m4/00gnulib.m4])
m4_include([m4/alloca.m4])
m4_include([m4/canonicalize.m4])
m4_include([m4/dos.m4])
m4_include([m4/double-slash-root.m4])
m4_include([m4/eealloc.m4])
m4_include([m4/errno_h.m4])
m4_include([m4/extensions.m4])
m4_include([m4/getopt.m4])
m4_include([m4/gettimeofday.m4])
m4_include([m4/gnulib-common.m4])
m4_include([m4/gnulib-comp.m4])
m4_include([m4/include_next.m4])
m4_include([m4/onceonly_2_57.m4])
m4_include([m4/inttypes-pri.m4])
m4_include([m4/inttypes.m4])
m4_include([m4/longlong.m4])
m4_include([m4/lstat.m4])
m4_include([m4/malloca.m4])
m4_include([m4/mkdtemp.m4])
m4_include([m4/mkstemp.m4])
m4_include([m4/multiarch.m4])
m4_include([m4/onceonly.m4])
m4_include([m4/pathmax.m4])
m4_include([m4/readlink.m4])
m4_include([m4/stat.m4])
m4_include([m4/stdbool.m4])
m4_include([m4/stddef_h.m4])
m4_include([m4/stdint.m4])
m4_include([m4/stdlib_h.m4])
m4_include([m4/sys_stat_h.m4])
m4_include([m4/sys_time_h.m4])
m4_include([m4/tempname.m4])
m4_include([m4/time_h.m4])
m4_include([m4/unistd_h.m4])
m4_include([m4/warn-on-use.m4])
m4_include([m4/wchar_h.m4])
m4_include([m4/wchar_t.m4])
m4_include([m4/wint_t.m4])
/* A C macro for declaring that specific arguments must not be NULL.
Copyright (C) 2009, 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
that the values passed as arguments n, ..., m must be non-NULL pointers.
n = 1 stands for the first argument, n = 2 for the second argument etc. */
#ifndef _GL_ARG_NONNULL
# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
# define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
# else
# define _GL_ARG_NONNULL(params)
# endif
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -8,14 +8,14 @@ dnl Please process this file with `autoconf' to get a configure script
AC_INIT(src/ps.c)
AM_INIT_AUTOMAKE(gv,3.6.90)
AM_INIT_AUTOMAKE(gv,3.6.91)
AM_CONFIG_HEADER(src/ac_config.h)
dnl AM_CONFIG_HEADER(src/ac_config.h)
AM_MAINTAINER_MODE
dnl gv version
VERSION=3.6.90
VERSION=3.6.91
dnl manual edition
MANUALEDITION=First
......@@ -78,12 +78,6 @@ AC_CHECK_HEADER(zio.h,[
fi
opt_mkstemp=false
AC_CHECK_FUNCS([mkstemp],[opt_mkstemp=true],[opt_mkstemp=false])
AM_CONDITIONAL(HAVE_MKSTEMP, test x$opt_mkstemp = xtrue)
dnl WITH options
AC_ARG_WITH(default-papersize, AC_HELP_STRING([--with-default-papersize=PSIZE],[The default papersize (can be changed at runtime). Defaults to `A4']), opt_default_papersize=$withval, opt_default_papersize=A4)
......@@ -280,16 +274,6 @@ AM_CONDITIONAL(USE_SETENV_CODE, test x$opt_setenv_code = xtrue)
AC_CHECK_HEADER([inttypes.h],,[
AC_ARG_WITH(intptr_t, [--with-intptr_t=TYPE], [
AC_DEFINE_UNQUOTED([intptr_t],[$withval],[Use the given type for intptr_t -- only available if ! HAVE_INTTYPES_H])
], [
AC_CHECK_TYPE([intptr_t],, [AC_MSG_ERROR([You must supply --with-intptr_t=TYPE])])
], [])
])
AC_ARG_ENABLE(memdebug-code, AC_HELP_STRING([--enable-memdebug-code],[Use extra code for debug memory operations. It defaults to `no']),
[case "${enableval}" in
......
This diff is collapsed.
......@@ -41,6 +41,11 @@ to \fI~\fP\fB/.gv\fP.
\fB\-s\fR
removes navigation resources from \fI~\fP\fB/.gv\fP and therefore enables
standard navigation.
.TP
\fB\-i\fR
updates translation file. Using the optional filename parameter is stroingly
recommanded for using this option. This option cannot be used together with any of
the other options.
.SH BACKGROUND
......
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
.TH GV "1" "May 2010" "gv 3.6.90" "User Commands"
.TH GV "1" "June 2010" "gv 3.6.91" "User Commands"
.SH NAME
gv \- Postscript and PDF viewer
.SH SYNOPSIS
......@@ -23,6 +23,12 @@ start ghostscript in safe mode
[\-]\-nosafer
do not start ghostscript in safe mode
.TP
[\-]\-safedir
start ghostscript from a safe diretory
.TP
[\-]\-nosafedir
do not start ghostscript from a safe diretory
.TP
[\-]\-quiet
start ghostscript with the \fB\-dQUIET\fR option
.TP
......
No preview for this file type
......@@ -85,6 +85,8 @@ PostScript and PDF viewer.
[-]-color display document as usual
[-]-safer start ghostscript in safe mode
[-]-nosafer do not start ghostscript in safe mode
[-]-safedir start ghostscript from a safe diretory
[-]-nosafedir do not start ghostscript from a safe diretory
[-]-quiet start ghostscript with the -dQUIET option
[-]-noquiet do not start ghostscript with the -dQUIET option
[-]-infoSilent do not show any messages in the info popup window
......@@ -216,7 +218,11 @@ usefull for viewing encrypted PDF files.
@item --presentation
Is actually a shortcut for @code{--fullscreen --noresize --scale=-1000 --widgetless}.
@item --safer, --nosafer
Whether to start ghostscript with the @code{-dSAFER} option.
Whether to start ghostscript in safer mode
(that includes he @code{-dSAFER} option or the @code{-dDELAYSAFER}
mode where appropriate) and the @code{-P-} option.
@item --safedir, --nosafedir
Whether to start ghostscript from a safe direcotry or not.
@item --spartan
This is a shortcut for @code{--style=gv_spartan.dat}.
@item --style=@var{file}
......@@ -422,6 +428,11 @@ The ghostscript command line option which activates the
@emph{X11} device with antialiasing enabled.
It defaults to @code{-dNOPLATFONTS -sDEVICE=x11alpha}
@item gsSafeeDir
Determines whether ghostscript should be started from a safe
directory.
It defaults to @code{True}.
@item gsSafer
Determines whether ghostscript should be started with the
@code{-dSAFER} command line option.
......@@ -610,6 +621,9 @@ detetction fails. Valid values are as given in the above
list of paper-sizes.
It defaults to @code{a4}.
@item strings.*
Variuos strings for translating GNU gv.
@end table
@node Mouse and key bindings, Comments about the user interface, Resources, Top
......
@set UPDATED 24 April 2010
@set UPDATED-MONTH April 2010
@set EDITION 3.6.90
@set VERSION 3.6.90
@set UPDATED 2 June 2010
@set UPDATED-MONTH June 2010
@set EDITION 3.6.91
@set VERSION 3.6.91
@set UPDATED 24 April 2010
@set UPDATED-MONTH April 2010
@set EDITION 3.6.90
@set VERSION 3.6.90
@set UPDATED 2 June 2010
@set UPDATED-MONTH June 2010
@set EDITION 3.6.91
@set VERSION 3.6.91
This diff is collapsed.
This diff is collapsed.
/* Memory allocation on the stack.
Copyright (C) 1995, 1999, 2001-2004, 2006-2010 Free Software Foundation,
Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 3, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA. */
/* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H
means there is a real alloca function. */
#ifndef _GL_ALLOCA_H
#define _GL_ALLOCA_H
/* alloca (N) returns a pointer to N bytes of memory
allocated on the stack, which will last until the function returns.
Use of alloca should be avoided:
- inside arguments of function calls - undefined behaviour,
- in inline functions - the allocation may actually last until the
calling function returns,
- for huge N (say, N >= 65536) - you never know how large (or small)
the stack is, and when the stack cannot fulfill the memory allocation
request, the program just crashes.
*/
#ifndef alloca
# ifdef __GNUC__
# define alloca __builtin_alloca
# elif defined _AIX
# define alloca __alloca
# elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
# elif defined __DECC && defined __VMS
# define alloca __ALLOCA
# else
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
# endif
#endif
#endif /* _GL_ALLOCA_H */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* Declarations for getopt.
Copyright (C) 1989-1994,1996-1999,2001,2003,2004,2005,2006,2007
Free Software Foundation, Inc.
Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2010 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef _GETOPT_H
#ifndef _GL_GETOPT_H
#if __GNUC__ >= 3
@PRAGMA_SYSTEM_HEADER@
#endif
/* The include_next requires a split double-inclusion guard. We must
also inform the replacement unistd.h to not recursively use
<getopt.h>; our definitions will be present soon enough. */
#if @HAVE_GETOPT_H@
# define _GL_SYSTEM_GETOPT
# @INCLUDE_NEXT@ @NEXT_GETOPT_H@
# undef _GL_SYSTEM_GETOPT
#endif
#ifndef _GL_GETOPT_H
#ifndef __need_getopt
# define _GETOPT_H 1
# define _GL_GETOPT_H 1
#endif
/* Standalone applications should #define __GETOPT_PREFIX to an
identifier that prefixes the external functions and variables
defined in this header. When this happens, include the
headers that might declare getopt so that they will not cause
confusion if included after this file. Then systematically rename
confusion if included after this file (if the system had <getopt.h>,
we have already included it). Then systematically rename
identifiers so that they do not collide with the system functions
and variables. Renaming avoids problems with some compilers and
linkers. */
#if defined __GETOPT_PREFIX && !defined __need_getopt
# include <stdlib.h>
# include <stdio.h>
# include <unistd.h>
# if !@HAVE_GETOPT_H@
# include <stdlib.h>
# include <stdio.h>
# include <unistd.h>
# endif
# undef __need_getopt
# undef getopt
# undef getopt_long
......@@ -43,6 +60,7 @@
# undef opterr
# undef optind
# undef optopt
# undef option
# define __GETOPT_CONCAT(x, y) x ## y
# define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y)
# define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y)
......@@ -53,6 +71,8 @@
# define opterr __GETOPT_ID (opterr)
# define optind __GETOPT_ID (optind)
# define optopt __GETOPT_ID (optopt)
# define option __GETOPT_ID (option)
# define _getopt_internal __GETOPT_ID (getopt_internal)
#endif
/* Standalone applications get correct prototypes for getopt_long and
......@@ -95,12 +115,14 @@
# define __GNUC_PREREQ(maj, min) (0)
# endif
# if defined __cplusplus && __GNUC_PREREQ (2,8)
# define __THROW throw ()
# define __THROW throw ()
# else
# define __THROW
# endif
#endif
/* The definition of _GL_ARG_NONNULL is copied here. */
#ifdef __cplusplus
extern "C" {
#endif
......@@ -143,9 +165,9 @@ extern int optopt;
zero.
The field `has_arg' is:
no_argument (or 0) if the option does not take an argument,
required_argument (or 1) if the option requires an argument,
optional_argument (or 2) if the option takes an optional argument.
no_argument (or 0) if the option does not take an argument,
required_argument (or 1) if the option requires an argument,
optional_argument (or 2) if the option takes an optional argument.
If the field `flag' is not NULL, it points to a variable that is set
to the value given in the field `val' when the option is found, but
......@@ -170,10 +192,10 @@ struct option
/* Names for the values of the `has_arg' field of `struct option'. */
# define no_argument 0
# define required_argument 1
# define optional_argument 2
#endif /* need getopt */
# define no_argument 0
# define required_argument 1
# define optional_argument 2
#endif /* need getopt */
/* Get definitions and prototypes for functions to process the
......@@ -202,17 +224,17 @@ struct option
the environment, then do not permute arguments. */
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
__THROW;
__THROW _GL_ARG_NONNULL ((2, 3));
#ifndef __need_getopt
extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
const char *__shortopts,
const struct option *__longopts, int *__longind)
__THROW;
const char *__shortopts,
const struct option *__longopts, int *__longind)
__THROW _GL_ARG_NONNULL ((2, 3));
extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv,
const char *__shortopts,
const struct option *__longopts, int *__longind)
__THROW;
const char *__shortopts,
const struct option *__longopts, int *__longind)
__THROW _GL_ARG_NONNULL ((2, 3));
#endif
......@@ -224,3 +246,4 @@ extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv,
#undef __need_getopt
#endif /* getopt.h */
#endif /* getopt.h */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment