diff options
author | Martin Schröder <martin@oneiros.de> | 2007-07-11 21:13:59 +0000 |
---|---|---|
committer | Martin Schröder <martin@oneiros.de> | 2007-07-11 21:13:59 +0000 |
commit | 7bf56e6bfcd7b204b3507dc9acaaaa3dce2cbcdb (patch) | |
tree | 5f8b4be4a21dc917441e4d2a1ec3e6fe25fd0192 /Build/source/texk/kpathsea | |
parent | c0da09fd6e4a542610245624c185a66f5ec814b2 (diff) |
Imported pdftex 1.40.4
git-svn-id: svn://tug.org/texlive/trunk@4561 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea')
-rw-r--r-- | Build/source/texk/kpathsea/cnf.c | 3 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/depend.mak | 1 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/depend.mk | 1 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/kpathsea.h | 1 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/recorder.h | 30 |
5 files changed, 36 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/cnf.c b/Build/source/texk/kpathsea/cnf.c index 951edd550eb..12a0b574828 100644 --- a/Build/source/texk/kpathsea/cnf.c +++ b/Build/source/texk/kpathsea/cnf.c @@ -30,6 +30,7 @@ #include <kpathsea/paths.h> #include <kpathsea/pathsearch.h> #include <kpathsea/progname.h> +#include <kpathsea/recorder.h> #include <kpathsea/tex-file.h> #include <kpathsea/variable.h> @@ -166,6 +167,8 @@ read_all_cnf P1H(void) for (cnf = cnf_files; *cnf; cnf++) { string line; FILE *cnf_file = xfopen (*cnf, FOPEN_R_MODE); + if (kpse_record_input) + kpse_record_input (*cnf); while ((line = read_line (cnf_file)) != NULL) { unsigned len = strlen (line); diff --git a/Build/source/texk/kpathsea/depend.mak b/Build/source/texk/kpathsea/depend.mak index 3182cfb7e45..ceb5c840883 100644 --- a/Build/source/texk/kpathsea/depend.mak +++ b/Build/source/texk/kpathsea/depend.mak @@ -1199,6 +1199,7 @@ $(objdir)/cnf.obj: \ $(kpathseadir)/line.h \ $(kpathseadir)/paths.h \ $(kpathseadir)/pathsearch.h \ + $(kpathseadir)/recoder.h \ $(kpathseadir)/str-llist.h \ $(kpathseadir)/tex-file.h \ $(kpathseadir)/c-vararg.h \ diff --git a/Build/source/texk/kpathsea/depend.mk b/Build/source/texk/kpathsea/depend.mk index 39cf08cca7a..0d80e68cf66 100644 --- a/Build/source/texk/kpathsea/depend.mk +++ b/Build/source/texk/kpathsea/depend.mk @@ -39,6 +39,7 @@ cnf.lo: cnf.c $(kpathsea_srcdir)/config.h $(kpathsea_dir)/c-auto.h \ $(kpathsea_srcdir)/cnf.h $(kpathsea_srcdir)/db.h $(kpathsea_srcdir)/str-list.h \ $(kpathsea_srcdir)/hash.h $(kpathsea_srcdir)/line.h $(kpathsea_dir)/paths.h \ $(kpathsea_srcdir)/pathsearch.h $(kpathsea_srcdir)/str-llist.h $(kpathsea_srcdir)/tex-file.h \ + $(kpathsea_srcdir)/recorder.h \ $(kpathsea_srcdir)/c-vararg.h $(kpathsea_srcdir)/variable.h concat3.lo: concat3.c $(kpathsea_srcdir)/config.h $(kpathsea_dir)/c-auto.h \ $(kpathsea_srcdir)/c-std.h \ diff --git a/Build/source/texk/kpathsea/kpathsea.h b/Build/source/texk/kpathsea/kpathsea.h index 4256cb155e2..c8189440253 100644 --- a/Build/source/texk/kpathsea/kpathsea.h +++ b/Build/source/texk/kpathsea/kpathsea.h @@ -36,6 +36,7 @@ #include <kpathsea/proginit.h> #include <kpathsea/progname.h> #include <kpathsea/readable.h> +#include <kpathsea/recorder.h> #include <kpathsea/str-list.h> #include <kpathsea/str-llist.h> #include <kpathsea/systypes.h> diff --git a/Build/source/texk/kpathsea/recorder.h b/Build/source/texk/kpathsea/recorder.h new file mode 100644 index 00000000000..a3532de1f89 --- /dev/null +++ b/Build/source/texk/kpathsea/recorder.h @@ -0,0 +1,30 @@ +/* recorder.h: filename recorder callback. + + Copyright 2007 Karl Berry. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +*/ + +#ifndef KPATHSEA_RECORDER_H +#define KPATHSEA_RECORDER_H + +/* Thess variables get set by web2c and are used to record filenames for its + * filename recorder. This way they can also be used in kpathsea, e.g. for + * texmf.cnf */ +void (*kpse_record_input)(char*); +void (*kpse_record_output)(char*); + +#endif /* not KPATHSEA_RECORDER_H */ |