diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/pdf/pdfthread.h')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/pdf/pdfthread.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfthread.h b/Build/source/texk/web2c/luatexdir/pdf/pdfthread.h index 5719803b86f..dd9078444fc 100644 --- a/Build/source/texk/web2c/luatexdir/pdf/pdfthread.h +++ b/Build/source/texk/web2c/luatexdir/pdf/pdfthread.h @@ -15,7 +15,8 @@ License for more details. You should have received a copy of the GNU General Public License along - with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */ + with LuaTeX; if not, see <http://www.gnu.org/licenses/>. +*/ #ifndef PDFTHREAD_H @@ -23,34 +24,36 @@ /* data structure of threads; words 1..4 represent the coordinates of the corners */ -# define obj_thread_first obj_aux /* pointer to the first bead */ +# define obj_thread_first obj_aux /* pointer to the first bead */ /* data structure of beads */ -# define pdfmem_bead_size 5 /* size of memory in |pdf->mem| which |obj_bead_ptr| points to */ +# define pdfmem_bead_size 5 /* size of memory in |pdf->mem| which |obj_bead_ptr| points to */ -# define set_pdf_thread_attr(A,B) pdf_thread_attr(A)=B -# define set_pdf_thread_id(A,B) pdf_thread_id(A)=B -# define set_pdf_thread_named_id(A,B) pdf_thread_named_id(A)=B +# define set_pdf_thread_attr(A,B) pdf_thread_attr(A)=B +# define set_pdf_thread_id(A,B) pdf_thread_id(A)=B +# define set_pdf_thread_named_id(A,B) pdf_thread_named_id(A)=B -# define obj_bead_ptr obj_aux /* pointer to |pdf->mem| */ +# define obj_bead_ptr obj_aux /* pointer to |pdf->mem| */ # define obj_bead_rect(pdf,A) pdf->mem[obj_bead_ptr(pdf,A)] # define obj_bead_page(pdf,A) pdf->mem[obj_bead_ptr(pdf,A) + 1] # define obj_bead_next(pdf,A) pdf->mem[obj_bead_ptr(pdf,A) + 2] # define obj_bead_prev(pdf,A) pdf->mem[obj_bead_ptr(pdf,A) + 3] # define obj_bead_attr(pdf,A) pdf->mem[obj_bead_ptr(pdf,A) + 4] +# define obj_bead_data obj_bead_rect +# define set_obj_bead_data set_obj_bead_rect -# define set_obj_bead_rect(pdf,A,B) obj_bead_rect(pdf,A)=B -# define set_obj_bead_page(pdf,A,B) obj_bead_page(pdf,A)=B -# define set_obj_bead_next(pdf,A,B) obj_bead_next(pdf,A)=B -# define set_obj_bead_prev(pdf,A,B) obj_bead_prev(pdf,A)=B -# define set_obj_bead_attr(pdf,A,B) obj_bead_attr(pdf,A)=B +# define set_obj_bead_rect(pdf,A,B) obj_bead_rect(pdf,A)=B +# define set_obj_bead_page(pdf,A,B) obj_bead_page(pdf,A)=B +# define set_obj_bead_next(pdf,A,B) obj_bead_next(pdf,A)=B +# define set_obj_bead_prev(pdf,A,B) obj_bead_prev(pdf,A)=B +# define set_obj_bead_attr(pdf,A,B) obj_bead_attr(pdf,A)=B -/* pointer to the corresponding whatsit node; |obj_bead_rect| is needed only when the bead - rectangle has been written out and after that |obj_bead_data| is not needed any more - so we can use this field for both */ -# define obj_bead_data obj_bead_rect -# define set_obj_bead_data set_obj_bead_rect +/* + pointer to the corresponding whatsit node; |obj_bead_rect| is needed only when the bead + rectangle has been written out and after that |obj_bead_data| is not needed any more + so we can use this field for both +*/ extern void append_bead(PDF pdf, halfword p); extern void do_thread(PDF pdf, halfword parent_box, halfword p, scaledpos cur); |