1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/*
Copyright (c) 1996-2007 Han The Thanh, <thanh@pdftex.org>
This file is part of pdfTeX.
pdfTeX is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
pdfTeX is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with pdfTeX; if not, write to the Free Software Foundation, Inc., 51
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
$Id$
*/
/* Additions to texmfmp.h for pdfTeX */
/* mark a char in font */
#define pdfmarkchar(f, c) pdfcharused[f][c/8] |= (1<<(c%8))
/* test whether a char in font is marked */
#define pdfcharmarked(f, c) (boolean)(pdfcharused[f][c/8] & (1<<(c%8)))
/* writepdf() always writes by fwrite() */
#define writepdf(a, b) \
(void) fwrite ((char *) &pdfbuf[a], sizeof (pdfbuf[a]), \
(int) ((b) - (a) + 1), pdffile)
#define getlpcode(f, c) \
(pdffontlpbase[f] == 0 ? 0 : pdfmem[pdffontlpbase[f] + c])
#define getrpcode(f, c) \
(pdffontrpbase[f] == 0 ? 0 : pdfmem[pdffontrpbase[f] + c])
#define getefcode(f, c) \
(pdffontefbase[f] == 0 ? 1000 : pdfmem[pdffontefbase[f] + c])
#define getknbscode(f, c) \
(pdffontknbsbase[f] == 0 ? 0 : pdfmem[pdffontknbsbase[f] + c])
#define getstbscode(f, c) \
(pdffontstbsbase[f] == 0 ? 0 : pdfmem[pdffontstbsbase[f] + c])
#define getshbscode(f, c) \
(pdffontshbsbase[f] == 0 ? 0 : pdfmem[pdffontshbsbase[f] + c])
#define getknbccode(f, c) \
(pdffontknbcbase[f] == 0 ? 0 : pdfmem[pdffontknbcbase[f] + c])
#define getknaccode(f, c) \
(pdffontknacbase[f] == 0 ? 0 : pdfmem[pdffontknacbase[f] + c])
#define texbopenin(f) \
open_input (&(f), kpse_tex_format, FOPEN_RBIN_MODE)
#define vfbopenin(f) \
open_input (&(f), kpse_vf_format, FOPEN_RBIN_MODE)
#define pdfassert assert
#include <pdftexdir/ptexlib.h>
|