summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/tex-make.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/tex-make.c')
-rw-r--r--Build/source/texk/kpathsea/tex-make.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/Build/source/texk/kpathsea/tex-make.c b/Build/source/texk/kpathsea/tex-make.c
index cddb04dfc8f..c17eeec3ab9 100644
--- a/Build/source/texk/kpathsea/tex-make.c
+++ b/Build/source/texk/kpathsea/tex-make.c
@@ -47,11 +47,11 @@ set_maketex_mag (kpathsea kpse)
/* If the environment variables aren't set, it's a bug. */
assert (dpi != 0 && bdpi != 0);
-
+
/* Fix up for roundoff error. Hopefully the driver has already fixed
up DPI, but may as well be safe, and also get the magstep number. */
(void) kpathsea_magstep_fix (kpse, dpi, bdpi, &m);
-
+
if (m == 0) {
if (bdpi <= 4000) {
sprintf(q, "%u+%u/%u", dpi / bdpi, dpi % bdpi, bdpi);
@@ -93,7 +93,7 @@ static void
misstex (kpathsea kpse, kpse_file_format_type format, string *args)
{
string *s;
-
+
/* If we weren't trying to make a font, do nothing. Maybe should
allow people to specify what they want recorded? */
if (format != kpse_gf_format
@@ -115,7 +115,7 @@ misstex (kpathsea kpse, kpse_file_format_type format, string *args)
} /* else use user's name */
kpse->missfont
- = missfont_name ? fopen (missfont_name, FOPEN_A_MODE) : NULL;
+ = missfont_name ? fopen (missfont_name, FOPEN_A_MODE) : NULL;
if (!kpse->missfont && kpathsea_var_value (kpse, "TEXMFOUTPUT")) {
missfont_name = concat3 (kpathsea_var_value (kpse, "TEXMFOUTPUT"),
DIR_SEP_STRING, missfont_name);
@@ -126,7 +126,7 @@ misstex (kpathsea kpse, kpse_file_format_type format, string *args)
fprintf (stderr, "kpathsea: Appending font creation commands to %s.\n",
missfont_name);
}
-
+
/* Write the command if we have a log file. */
if (kpse->missfont) {
fputs (args[0], kpse->missfont);
@@ -136,7 +136,7 @@ misstex (kpathsea kpse, kpse_file_format_type format, string *args)
}
putc ('\n', kpse->missfont);
}
-}
+}
/* Assume the script outputs the filename it creates (and nothing
@@ -152,7 +152,7 @@ maketex (kpathsea kpse, kpse_file_format_type format, string* args)
string *s;
string ret = NULL;
string fn;
-
+
if (!kpse->make_tex_discard_errors) {
fprintf (stderr, "\nkpathsea: Running");
for (s = &args[0]; *s != NULL; s++)
@@ -271,7 +271,7 @@ maketex (kpathsea kpse, kpse_file_format_type format, string* args)
&pi /* pointer to PROCESS_INFORMATION */
) == 0) {
LIB_FATAL2 ("kpathsea: CreateProcess() failed for `%s' (Error %d)\n",
- new_cmd, (int)(GetLastError()));
+ new_cmd, (int)(GetLastError()));
}
CloseHandle(child_in);
@@ -288,7 +288,7 @@ maketex (kpathsea kpse, kpse_file_format_type format, string* args)
if (num <= 0) {
if (GetLastError() != ERROR_BROKEN_PIPE) {
LIB_FATAL2 ("kpathsea: read() error code for `%s' (Error %d)",
- new_cmd, (int)(GetLastError()));
+ new_cmd, (int)(GetLastError()));
break;
}
} else {
@@ -462,7 +462,7 @@ maketex (kpathsea kpse, kpse_file_format_type format, string* args)
misstex (kpse, format, args);
else
kpathsea_db_insert (kpse, ret);
-
+
return ret;
}
@@ -476,7 +476,7 @@ kpathsea_make_tex (kpathsea kpse, kpse_file_format_type format,
{
kpse_format_info_type spec; /* some compilers lack struct initialization */
string ret = NULL;
-
+
spec = kpse->format_info[format];
if (!spec.type) { /* Not initialized yet? */
kpathsea_init_format (kpse, format);
@@ -490,7 +490,7 @@ kpathsea_make_tex (kpathsea kpse, kpse_file_format_type format,
/* Helpers */
int argnum;
int i;
-
+
/* FIXME
* Check whether the name we were given is likely to be a problem.
* Right now we err on the side of strictness:
@@ -566,7 +566,7 @@ void
test_make_tex (kpathsea kpse, kpse_file_format_type fmt, const_string base)
{
string answer;
-
+
printf ("\nAttempting %s in format %d:\n", base, fmt);
answer = kpathsea_make_tex (kpse, fmt, base);
@@ -587,10 +587,10 @@ main (int argc, char **argv)
/* Fail with mktextfm. */
kpathsea_set_program_enabled(kpse, kpse_tfm_format, 1, kpse_src_env);
test_make_tex (kpse, kpse_tfm_format, "foozler99");
-
+
/* Call something disabled. */
test_make_tex (kpse, kpse_bst_format, "no-way");
-
+
return 0;
}