summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/xdvipdfmx/ChangeLog5
-rw-r--r--Build/source/texk/xdvipdfmx/src/dpxfile.c4
-rw-r--r--Build/source/texk/xdvipdfmx/src/spc_dvips.c18
3 files changed, 16 insertions, 11 deletions
diff --git a/Build/source/texk/xdvipdfmx/ChangeLog b/Build/source/texk/xdvipdfmx/ChangeLog
index 9d20d94184a..5f1fb3c1e4b 100644
--- a/Build/source/texk/xdvipdfmx/ChangeLog
+++ b/Build/source/texk/xdvipdfmx/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-28 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * src/dpxfile.c, src/spc_dvips.c: Recover dpx_create_temp_file()
+ for PSTricks.
+
2013-03-26 Peter Breitenlohner <peb@mppmu.mpg.de>
* data/dvipdfmx.cfg: Synch with ../dvipdfmx/.
diff --git a/Build/source/texk/xdvipdfmx/src/dpxfile.c b/Build/source/texk/xdvipdfmx/src/dpxfile.c
index 3a77e21e098..d51b978ce27 100644
--- a/Build/source/texk/xdvipdfmx/src/dpxfile.c
+++ b/Build/source/texk/xdvipdfmx/src/dpxfile.c
@@ -778,7 +778,7 @@ dpx_get_tmpdir (void)
# include <stdlib.h>
#endif
-#if 0 /* Not used */
+#ifdef XETEX
char *
dpx_create_temp_file (void)
{
@@ -835,7 +835,7 @@ dpx_create_temp_file (void)
return tmp;
}
-#endif /* 0 */
+#endif /* XETEX */
char *
dpx_create_fix_temp_file (const char *filename)
diff --git a/Build/source/texk/xdvipdfmx/src/spc_dvips.c b/Build/source/texk/xdvipdfmx/src/spc_dvips.c
index 24c415d3699..7deb3b2bdcf 100644
--- a/Build/source/texk/xdvipdfmx/src/spc_dvips.c
+++ b/Build/source/texk/xdvipdfmx/src/spc_dvips.c
@@ -320,7 +320,7 @@ spc_handler_ps_tricks_pdef (struct spc_env *spe, struct spc_arg *args)
pdf_concatmatrix(&M, &T);
if (!page_defs)
- page_defs = dpx_create_fix_temp_file("page_defs");
+ page_defs = dpx_create_temp_file();
if (!page_defs) {
WARN("Failed to create temporary input file for PSTricks image conversion.");
return -1;
@@ -340,7 +340,7 @@ spc_handler_ps_tricks_tdef (struct spc_env *spe, struct spc_arg *args)
{
FILE* fp;
if (!temporary_defs)
- temporary_defs = dpx_create_fix_temp_file("temp_defs");
+ temporary_defs = dpx_create_temp_file();
if (!temporary_defs) {
WARN("Failed to create temporary input file for PSTricks image conversion.");
return -1;
@@ -400,7 +400,7 @@ spc_handler_ps_tricks_bput (struct spc_env *spe, struct spc_arg *args, int must_
if (must_def != 0) {
FILE* fp;
if (!temporary_defs)
- temporary_defs = dpx_create_fix_temp_file("temp_defs_a");
+ temporary_defs = dpx_create_temp_file();
if (!temporary_defs) {
WARN("Failed to create temporary input file for PSTricks image conversion.");
return -1;
@@ -545,7 +545,7 @@ spc_handler_ps_tricks_parse_path (struct spc_env *spe, struct spc_arg *args,
pdf_dev_currentmatrix(&M);
if (!gs_in) {
- gs_in = dpx_create_fix_temp_file("gs_in");
+ gs_in = dpx_create_temp_file();
if (!gs_in) {
WARN("Failed to create temporary input file for PSTricks image conversion.");
return -1;
@@ -583,7 +583,7 @@ spc_handler_ps_tricks_parse_path (struct spc_env *spe, struct spc_arg *args,
}
fclose(fp);
- gs_out = dpx_create_fix_temp_file("gs_out");
+ gs_out = dpx_create_temp_file();
if (!gs_out) {
WARN("Failed to create temporary output file for PSTricks image conversion.");
RELEASE(gs_in);
@@ -639,7 +639,7 @@ spc_handler_ps_tricks_render (struct spc_env *spe, struct spc_arg *args)
pdf_dev_currentmatrix(&M);
if (!gs_in) {
- gs_in = dpx_create_fix_temp_file("gs_in_a");
+ gs_in = dpx_create_temp_file();
if (!gs_in) {
WARN("Failed to create temporary input file for PSTricks image conversion.");
return -1;
@@ -671,7 +671,7 @@ spc_handler_ps_tricks_render (struct spc_env *spe, struct spc_arg *args)
fclose(fp);
- gs_out = dpx_create_fix_temp_file("gs_out_a");
+ gs_out = dpx_create_temp_file();
if (!gs_out) {
WARN("Failed to create temporary output file for PSTricks image conversion.");
RELEASE(gs_in);
@@ -899,7 +899,7 @@ spc_dvips_at_begin_document (void)
FILE* fp;
/* This, together with \pscharpath support code, must be moved to xtex.pro header. */
- global_defs = dpx_create_fix_temp_file("global_defs");
+ global_defs = dpx_create_temp_file();
if (!global_defs) {
WARN("Failed to create temporary input file for PSTricks image conversion.");
return -1;
@@ -1021,7 +1021,7 @@ int calculate_PS (char *string, int length, double *res1, double *res2, double *
if (res1 == 0 && res2 == 0)
return -1;
- formula = dpx_create_fix_temp_file("formula");
+ formula = dpx_create_temp_file();
if (!formula) {
WARN("Failed to create temporary input file for PSTricks image conversion.");
return -1;