From: maqiyuan Date: Wed, 20 Aug 2014 11:50:23 +0000 (+0800) Subject: updated Windows build. X-Git-Url: http://git.osdn.net/view?p=putex%2Fputex.git;a=commitdiff_plain;h=7c6099b31145df54e191363f181d68cda7152066 updated Windows build. --- diff --git a/src/texsourc/Makefile.win.msvc b/src/texsourc/Makefile.win.msvc index 888f241..93a8ec9 100644 --- a/src/texsourc/Makefile.win.msvc +++ b/src/texsourc/Makefile.win.msvc @@ -17,19 +17,23 @@ LFLAGS=/NOLOGO /MAP objs = yandytex.obj itex.obj openinou.obj subroute.obj local.obj \ tex0.obj tex1.obj tex2.obj tex3.obj tex4.obj \ tex5.obj tex6.obj tex7.obj tex8.obj tex9.obj \ - pool.obj yandytex.res utils.obj + pool.obj yandytex.res utils.obj dpx.obj yandytex.exe: $(objs) $(LINK) $(LFLAGS) yandytex itex openinou subroute local \ tex0 tex1 tex2 tex3 tex4 tex5 tex6 tex7 tex8 tex9 \ - pool yandytex.res utils \ - kpathsea\kpathsea.lib zlib\zlib.lib + pool yandytex.res utils dpx\ + kpathsea\kpathsea.lib dvipdfmx\libdpx.lib libpng\libpng.lib zlib\zlib.lib del ..\yandy\bin\yandytex.exe copy yandytex.exe ..\yandy\bin\yandytex.exe yandytex.res: yandytex.rc $(RC) /nologo yandytex.rc +dpx.obj: dpx.c \ + texd.h yandytex.h dpx.h memory.h coerce.h macros.h + $(CC) $(CFLAGS) dpx.c + yandytex.obj: yandytex.c \ texd.h yandytex.h memory.h coerce.h macros.h $(CC) $(CFLAGS) yandytex.c diff --git a/src/texsourc/README b/src/texsourc/README deleted file mode 100644 index e7bbcd3..0000000 --- a/src/texsourc/README +++ /dev/null @@ -1,2 +0,0 @@ -In this directory, you can found sources of Y&Y TeX which is under -developing in MS-Windows (a Linux port is working now). diff --git a/src/texsourc/dpx.c b/src/texsourc/dpx.c index 8318f0e..ce69246 100644 --- a/src/texsourc/dpx.c +++ b/src/texsourc/dpx.c @@ -19,8 +19,8 @@ #define EXTERN extern -#include "yandytex.h" #include "dpx.h" +#include "yandytex.h" void ensure_pdf_open(void) { @@ -115,10 +115,6 @@ void pdf_ship_out (pointer p) if (total_pages == 0) { - //kpse_init_prog("", 600, NULL, NULL); - //kpse_set_program_enabled(kpse_pk_format, true, kpse_src_texmf_cnf); - //pdf_font_set_dpi(600); - //dpx_delete_old_cache(image_cache_life); pdf_set_version(5); pdf_set_compression(9); pdf_init_fontmaps(); diff --git a/src/texsourc/dpx.h b/src/texsourc/dpx.h index 3377e57..d4a4cbd 100644 --- a/src/texsourc/dpx.h +++ b/src/texsourc/dpx.h @@ -1,10 +1,13 @@ extern void pdf_init_fontmaps(void); extern void pdf_close_fontmaps(void); extern void pdf_doc_set_creator(const char * creator); +extern void pdf_doc_set_producer(const char * producer); extern void pdf_set_version(unsigned version); extern void pdf_set_compression(int level); extern void pdf_files_init(void); extern void pdf_files_close(void); +extern void graphics_mode (void); +extern long pdf_output_stats (void); extern void pdf_init_device(double dvi2pts, int precision, int black_and_white); extern void pdf_close_device(void); extern void pdf_open_document(const char *filename, @@ -22,6 +25,7 @@ extern int spc_exec_at_end_document(void); extern int spc_exec_at_begin_page(void); extern int spc_exec_at_end_page(void); typedef signed long spt_t; +extern int dvi_locate_font (const char * name, spt_t ptsize); extern int spc_exec_special (const char *buffer, long size, double x_user, double y_user, double dpx_mag); extern int pdf_dev_locate_font(const char *font_name, spt_t ptsize); extern void pdf_dev_set_rule(spt_t xpos, spt_t ypos, spt_t width, spt_t height); diff --git a/src/texsourc/notes.txt b/src/texsourc/notes.txt deleted file mode 100644 index 99ef573..0000000 --- a/src/texsourc/notes.txt +++ /dev/null @@ -1,39 +0,0 @@ -Copyright 2007 TeX Users Group. -Copyright 2014 Clerk Ma. -You may freely use, modify and/or distribute this file. - -use \write18{...} to execute system commmands? - -use openany_out to allow opening `special' files that should -otherwise be prohibited (on Unix, files starting with .)? - -********************************************************************** - -Notes: Making adjustable hash-table version: - -win web2c twice with different hash_size and hash_prime - -collection the *.c and *.h files in each case - -run comaptex.exe on these files to mark all uses of hash_size and hash_prime - -reconcile difference with existing *.c and *.h files - -********************************************************************** - -Notes: there are still a few places where we may be able to -go from 256 to (maxquarterword + 1) (or 255 to maxquarterword): -itex.c (info(end_span) <- null p.797) -tex1.c (overflow of grouping levels p.274), -tex5.c (confusion(256 spans) p.798), -tex7.c (replace_count(tail) p.1120) - -********************************************************************** - -internal_font_number --> true name --> HPDF_Font -1 | cmr10 | 1 -2 | cmr10 | 1 -3 | cmmi10 | 2 - -BOX -> BOX -> BOX -> BOX -BT -> FONT -> CUR_XY -> ET diff --git a/src/texsourc/tex4.c b/src/texsourc/tex4.c index cf15785..7f9e501 100644 --- a/src/texsourc/tex4.c +++ b/src/texsourc/tex4.c @@ -17,8 +17,8 @@ #define EXTERN extern -#include "yandytex.h" #include "dpx.h" +#include "yandytex.h" /* sec 0581 */ void char_warning_(internal_font_number f, eight_bits c) @@ -2164,4 +2164,4 @@ found: shift_amount(b) = half(height(b) - depth(b)) - axis_height(s); return b; -} \ No newline at end of file +} diff --git a/src/texsourc/tex9.c b/src/texsourc/tex9.c index 33053d7..8864c97 100644 --- a/src/texsourc/tex9.c +++ b/src/texsourc/tex9.c @@ -17,8 +17,8 @@ #define EXTERN extern -#include "yandytex.h" #include "dpx.h" +#include "yandytex.h" /* sec 1284 */ void give_err_help (void)