Debian Codegraph @

texk/web2c/luatexdir/pdf/pdfsaverestore.h

raw
1 /* pdfsaverestore.h
2
3 Copyright 2009 Taco Hoekwater <[email protected]>
4
5 This file is part of LuaTeX.
6
7 LuaTeX is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
11
12 LuaTeX is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 License for more details.
16
17 You should have received a copy of the GNU General Public License along
18 with LuaTeX; if not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef PDFSAVERESTORE_H
22 # define PDFSAVERESTORE_H
23
24 /* stack for positions of \pdfsave */
25
26 typedef struct {
27 scaledpos pos;
28 int matrix_stack;
29 } pos_entry;
30
31 extern pos_entry *pos_stack; /* the stack */
32 extern int pos_stack_size; /* initially empty */
33 extern int pos_stack_used; /* used entries */
34
35 extern void pdf_out_save(PDF pdf, halfword p);
36 extern void pdf_out_restore(PDF pdf, halfword p);
37
38 #endif