source: trunk/dports/tex/texlive/patch-texk_web2c_xetexdir_XeTeX_ext_h @ 30880

Last change on this file since 30880 was 30880, checked in by milosh@…, 13 years ago

A tentative texlive port.

File size: 5.5 KB
Line 
1$OpenBSD: patch-texk_web2c_xetexdir_XeTeX_ext_h,v 1.1.1.1 2007/07/17 21:53:33 jasper Exp $
2--- texk/web2c/xetexdir/XeTeX_ext.h.orig        Fri Dec 29 17:54:26 2006
3+++ texk/web2c/xetexdir/XeTeX_ext.h     Fri Jun 22 10:51:56 2007
4@@ -141,10 +141,10 @@ typedef struct {
5 #define node_width(node)                       node[width_offset].cint
6 #define node_depth(node)                       node[depth_offset].cint
7 #define node_height(node)                      node[height_offset].cint
8-#define native_length(node)                    node[native_info_offset].hh.v.RH
9-#define native_font(node)                      node[native_info_offset].hh.b1
10-#define native_glyph_count(node)       node[native_glyph_info_offset].hh.v.LH
11-#define native_glyph_info_ptr(node)    node[native_glyph_info_offset].hh.v.RH
12+#define native_length(node)                    node[native_info_offset].qqqq.b2
13+#define native_font(node)                      node[native_info_offset].qqqq.b1
14+#define native_glyph_count(node)       node[native_info_offset].qqqq.b3
15+#define native_glyph_info_ptr(node)    node[native_glyph_info_offset].ptr
16 #define native_glyph_info_size         10      /* info for each glyph is location (FixedPoint) + glyph ID (UInt16) */
17 
18 #define native_glyph(p)                native_length(p)        /* glyph ID field in a glyph_node */
19@@ -206,6 +206,8 @@ extern const UInt32 kSurrogateLowEnd;
20 extern const UInt32 byteMask;
21 extern const UInt32 byteMark;
22 
23+#include <stdio.h> /* for FILE */
24+
25 #include "trans.h"
26 
27 #ifdef __cplusplus
28@@ -213,51 +215,62 @@ extern "C" {
29 #endif
30        void initversionstring(char **versions);
31 
32-       void setinputfileencoding(unicodefile f, int mode, int encodingData);
33+       void setinputfileencoding(unicodefile f, integer mode, integer encodingData);
34        void uclose(unicodefile f);
35        int input_line_icu(unicodefile f);
36-       void linebreakstart(int localeStrNum, const UniChar* text, int textLength);
37+       void linebreakstart(integer localeStrNum, const UniChar* text, integer textLength);
38        int linebreaknext();
39-       long getencodingmodeandinfo(long* info);
40+       int getencodingmodeandinfo(integer* info);
41        void printutf8str(const unsigned char* str, int len);
42        void printchars(const unsigned short* str, int len);
43        void* load_mapping_file(const char* s, const char* e);
44-       void* findnativefont(unsigned char* name, long scaled_size);
45+       void* findnativefont(unsigned char* name, integer scaled_size);
46        void releasefontengine(void* engine, int type_flag);
47 
48-       /* 'integer' params here are really TeX 'scaled' values, but that typedef isn't available every place this is included */
49+       /* the metrics params here are really TeX 'scaled' values, but that typedef isn't available every place this is included */
50        void otgetfontmetrics(void* engine, integer* ascent, integer* descent, integer* xheight, integer* capheight, integer* slant);
51-       void getnativecharheightdepth(int font, int ch, integer* height, integer* depth);
52-       void getnativecharsidebearings(int font, int ch, integer* lsb, integer* rsb);
53+       void getnativecharheightdepth(integer font, integer ch, integer* height, integer* depth);
54+       void getnativecharsidebearings(integer font, integer ch, integer* lsb, integer* rsb);
55 
56        /* single-purpose metrics accessors */
57-       integer getnativecharwd(int font, int ch);
58-       integer getnativecharht(int font, int ch);
59-       integer getnativechardp(int font, int ch);
60-       integer getnativecharic(int font, int ch);
61+       integer getnativecharwd(integer font, integer ch);
62+       integer getnativecharht(integer font, integer ch);
63+       integer getnativechardp(integer font, integer ch);
64+       integer getnativecharic(integer font, integer ch);
65 
66-       long otfontget(int what, void* engine);
67-       long otfontget1(int what, void* engine, long param);
68-       long otfontget2(int what, void* engine, long param1, long param2);
69-       long otfontget3(int what, void* engine, long param1, long param2, long param3);
70+       integer otfontget(integer what, void* engine);
71+       integer otfontget1(integer what, void* engine, integer param);
72+       integer otfontget2(integer what, void* engine, integer param1, integer param2);
73+       integer otfontget3(integer what, void* engine, integer param1, integer param2, integer param3);
74        int makeXDVGlyphArrayData(void* p);
75-       long makefontdef(long f);
76+       int makefontdef(integer f);
77        int applymapping(void* cnv, const UniChar* txtPtr, int txtLen);
78        void store_justified_native_glyphs(void* node);
79        void measure_native_node(void* node, int use_glyph_metrics);
80        Fixed get_native_ital_corr(void* node);
81        Fixed get_native_glyph_ital_corr(void* node);
82        void measure_native_glyph(void* node, int use_glyph_metrics);
83-       int mapchartoglyph(int font, unsigned int ch);
84-       int mapglyphtoindex(int font);
85+       integer mapchartoglyph(integer font, integer ch);
86+       integer mapglyphtoindex(integer font);
87+       integer getfontcharrange(integer font, int first);
88+       void printglyphname(integer font, integer gid);
89 
90+       double read_double(const char** s);
91+       unsigned int read_rgb_a(const char** cp);
92
93        const char* getGlyphNamePtr(const char* buffer, int tableSize, UInt16 gid, int* len);
94 
95        int find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page);
96+       int u_open_in(unicodefile* f, integer filefmt, const char* fopen_mode, integer mode, integer encodingData);
97+       int open_dvi_output(FILE** fptr);
98+       void dviclose(FILE* fptr);
99+       int get_uni_c(UFILE* f);
100+       int input_line(UFILE* f);
101+       void makeutf16name();
102 
103 #ifdef XETEX_MAC
104 /* functions in XeTeX_mac.c */
105-       void* loadAATfont(ATSFontRef fontRef, long scaled_size, const char* cp1);
106+       void* loadAATfont(ATSFontRef fontRef, integer scaled_size, const char* cp1);
107        void DoAtsuiLayout(void* node, int justify);
108        void GetGlyphBBox_AAT(ATSUStyle style, UInt16 gid, GlyphBBox* bbox);
109        float GetGlyphWidth_AAT(ATSUStyle style, UInt16 gid);
Note: See TracBrowser for help on using the repository browser.