diff options
Diffstat (limited to 'Build/source/texk/dvipdfm-x/spc_dvips.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/spc_dvips.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Build/source/texk/dvipdfm-x/spc_dvips.c b/Build/source/texk/dvipdfm-x/spc_dvips.c index 7732610add6..b4e901ec681 100644 --- a/Build/source/texk/dvipdfm-x/spc_dvips.c +++ b/Build/source/texk/dvipdfm-x/spc_dvips.c @@ -34,10 +34,8 @@ #include "dpxfile.h" -#ifdef XETEX #include "dvi.h" #include "dvicodes.h" -#endif #include "pdfparse.h" @@ -54,18 +52,15 @@ #include "spc_util.h" #include "spc_dvips.h" -#ifdef XETEX #include "mfileio.h" #include "spc_xtx.h" #include "epdf.h" -#endif static int block_pending = 0; static double pending_x = 0.0; static double pending_y = 0.0; static int position_set = 0; -#ifdef XETEX static char** ps_headers = 0; static int num_ps_headers = 0; @@ -98,7 +93,6 @@ spc_handler_ps_header (struct spc_env *spe, struct spc_arg *args) args->curptr = args->endptr; return 0; } -#endif static char * parse_filename (const char **pp, const char *endptr) @@ -287,7 +281,6 @@ spc_handler_ps_literal (struct spc_env *spe, struct spc_arg *args) return error; } -#ifdef XETEX static char *global_defs = 0; static char *page_defs = 0; static char *temporary_defs = 0; @@ -822,7 +815,6 @@ spc_handler_ps_tricksobj (struct spc_env *spe, struct spc_arg *args) args->curptr = args->endptr; return error; } -#endif static int spc_handler_ps_default (struct spc_env *spe, struct spc_arg *args) @@ -864,26 +856,21 @@ spc_handler_ps_default (struct spc_env *spe, struct spc_arg *args) } static struct spc_handler dvips_handlers[] = { -#ifdef XETEX {"header", spc_handler_ps_header}, -#endif {"PSfile", spc_handler_ps_file}, {"psfile", spc_handler_ps_file}, {"ps: plotfile ", spc_handler_ps_plotfile}, {"PS: plotfile ", spc_handler_ps_plotfile}, {"PS:", spc_handler_ps_literal}, {"ps:", spc_handler_ps_literal}, -#ifdef XETEX {"PST:", spc_handler_ps_trickscmd}, {"pst:", spc_handler_ps_tricksobj}, -#endif {"\" ", spc_handler_ps_default} }; int spc_dvips_at_begin_document (void) { -#ifdef XETEX FILE* fp; /* This, together with \pscharpath support code, must be moved to xtex.pro header. */ @@ -896,7 +883,6 @@ spc_dvips_at_begin_document (void) fp = fopen(global_defs, "wb"); fprintf(fp, "tx@Dict begin /STV {} def end\n"); fclose(fp); -#endif return 0; } @@ -904,7 +890,6 @@ spc_dvips_at_begin_document (void) int spc_dvips_at_end_document (void) { -#ifdef XETEX if (ps_headers) { while (num_ps_headers > 0) RELEASE(ps_headers[--num_ps_headers]); @@ -913,7 +898,6 @@ spc_dvips_at_end_document (void) } dpx_delete_temp_file(global_defs, true); dpx_delete_temp_file(page_defs, true); -#endif return 0; } @@ -921,14 +905,12 @@ spc_dvips_at_end_document (void) int spc_dvips_at_begin_page (void) { -#ifdef XETEX if (page_defs) { dpx_delete_temp_file(page_defs, true); page_defs = 0; } put_stack_depth = -1; -#endif return 0; } @@ -937,12 +919,10 @@ int spc_dvips_at_end_page (void) { mps_eop_cleanup(); -#ifdef XETEX if (!temporary_defs) { dpx_delete_temp_file(temporary_defs, true); temporary_defs = 0; } -#endif return 0; } @@ -1009,14 +989,8 @@ spc_dvips_setup_handler (struct spc_handler *handle, for (i = 0; i < sizeof(dvips_handlers) / sizeof(struct spc_handler); i++) { -#ifdef XETEX - /* FIXME: keylen < strlen(dvips_handlers[i].key ?? */ - if (keylen <= strlen(dvips_handlers[i].key) && - !strncmp(key, dvips_handlers[i].key, strlen(dvips_handlers[i].key))) { -#else if (keylen == strlen(dvips_handlers[i].key) && !strncmp(key, dvips_handlers[i].key, keylen)) { -#endif skip_white(&args->curptr, args->endptr); @@ -1032,7 +1006,6 @@ spc_dvips_setup_handler (struct spc_handler *handle, return -1; } -#ifdef XETEX #ifdef __EMX__ #define GS_CALCULATOR "gsos2 -q -dNOPAUSE -dBATCH -sDEVICE=nullpage -f " #elif defined(WIN32) @@ -1097,4 +1070,3 @@ int calculate_PS (char *string, int length, double *res1, double *res2, double * dpx_delete_temp_file(formula, true); return 0; } -#endif |