Back to index

tetex-bin  3.0
pdftex.h
Go to the documentation of this file.
00001 /*
00002 Copyright (c) 1996-2002 Han The Thanh, <thanh@pdftex.org>
00003 
00004 This file is part of pdfTeX.
00005 
00006 pdfTeX is free software; you can redistribute it and/or modify
00007 it under the terms of the GNU General Public License as published by
00008 the Free Software Foundation; either version 2 of the License, or
00009 (at your option) any later version.
00010 
00011 pdfTeX is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with pdfTeX; if not, write to the Free Software
00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 $Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/pdftex.h#4 $
00021 */
00022 
00023 /* Additions to texmfmp.h for pdfTeX */
00024 
00025 /* mark a char in font */
00026 #define pdfmarkchar(f, c) pdfcharused[f][c/8] |= (1<<(c%8))
00027 
00028 /* test whether a char in font is marked */
00029 #define pdfcharmarked(f, c) (boolean)(pdfcharused[f][c/8] & (1<<(c%8)))
00030 
00031 /* writepdf() always writes by fwrite() */
00032 #define       writepdf(a, b) \
00033   (void) fwrite ((char *) &pdfbuf[a], sizeof (pdfbuf[a]), \
00034                  (int) ((b) - (a) + 1), pdffile)
00035 
00036 #define getlpcode(f, c) \
00037     (pdffontlpbase[f] == 0 ? 0 : pdfmem[pdffontlpbase[f] + c])
00038 
00039 #define getrpcode(f, c) \
00040     (pdffontrpbase[f] == 0 ? 0 : pdfmem[pdffontrpbase[f] + c])
00041 
00042 #define getefcode(f, c) \
00043     (pdffontefbase[f] == 0 ? 1000 : pdfmem[pdffontefbase[f] + c])
00044 
00045 #define texbopenin(f) \
00046     open_input (&(f), kpse_tex_format, FOPEN_RBIN_MODE)
00047 #define vfbopenin(f) \
00048     open_input (&(f), kpse_vf_format, FOPEN_RBIN_MODE)
00049 
00050 #include <pdftexdir/ptexlib.h>