| 1 |
/* pdfcolorstack.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 |
|
| 22 |
#ifndef PDFCOLORSTACK_H |
| 23 |
# define PDFCOLORSTACK_H |
| 24 |
|
| 25 |
# define set_pdf_colorstack_stack(A,B) pdf_colorstack_stack(A)=B |
| 26 |
# define set_pdf_colorstack_cmd(A,B) pdf_colorstack_cmd(A)=B |
| 27 |
# define set_pdf_colorstack_data(A,B) pdf_colorstack_data(A)=B |
| 28 |
|
| 29 |
# define STACK_INCREMENT 8 |
| 30 |
|
| 31 |
int newcolorstack(const char *s, int literal_mode, boolean pagestart); |
| 32 |
int colorstackused(void); |
| 33 |
int colorstackpop(int colstack_no); |
| 34 |
int colorstackcurrent(int colstack_no); |
| 35 |
int colorstackskippagestart(int colstack_no); |
| 36 |
void colorstackpagestart(void); |
| 37 |
|
| 38 |
extern void pdf_out_colorstack(PDF pdf, halfword p); |
| 39 |
extern void pdf_out_colorstack_startpage(PDF pdf); |
| 40 |
|
| 41 |
#endif |