From 47d13daa0cbeb42a35fd50230bbd8b37e34fcece Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Wed, 5 Mar 2003 20:56:25 +0000 Subject: [PATCH] move struct pdf_bookmark from pdf_private.h into pdf_bookmark.c. --- pdf_bookmark.c | 20 +++++++++++++++++++- pdf_private.h | 20 +------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/pdf_bookmark.c b/pdf_bookmark.c index d0acacf..5a2e9e7 100644 --- a/pdf_bookmark.c +++ b/pdf_bookmark.c @@ -4,7 +4,7 @@ * will be compressed using ITU-T T.6 (G4) fax encoding. * * PDF routines - * $Id: pdf_bookmark.c,v 1.4 2003/03/05 12:44:33 eric Exp $ + * $Id: pdf_bookmark.c,v 1.5 2003/03/05 12:56:25 eric Exp $ * Copyright 2003 Eric Smith * * This program is free software; you can redistribute it and/or modify @@ -38,6 +38,24 @@ #include "pdf_private.h" +struct pdf_bookmark +{ + struct pdf_obj *dict; /* indirect reference */ + struct pdf_obj *count; + bool open; + + struct pdf_bookmark *first; + struct pdf_bookmark *last; + + /* the following fields don't appear in the root */ + /* title and dest are in the dictionary but don't have + explicit fields in the C structure */ + struct pdf_bookmark *parent; + struct pdf_bookmark *prev; + struct pdf_bookmark *next; +}; + + static void pdf_bookmark_update_count (pdf_bookmark_handle entry) { while (entry) diff --git a/pdf_private.h b/pdf_private.h index 9fd16e7..5a309fa 100644 --- a/pdf_private.h +++ b/pdf_private.h @@ -4,7 +4,7 @@ * will be compressed using ITU-T T.6 (G4) fax encoding. * * PDF routines - * $Id: pdf_private.h,v 1.4 2003/03/05 12:39:50 eric Exp $ + * $Id: pdf_private.h,v 1.5 2003/03/05 12:56:25 eric Exp $ * Copyright 2001, 2002, 2003 Eric Smith * * This program is free software; you can redistribute it and/or modify @@ -45,24 +45,6 @@ struct pdf_pages }; -struct pdf_bookmark -{ - struct pdf_obj *dict; /* indirect reference */ - struct pdf_obj *count; - bool open; - - struct pdf_bookmark *first; - struct pdf_bookmark *last; - - /* the following fields don't appear in the root */ - /* title and dest are in the dictionary but don't have - explicit fields in the C structure */ - struct pdf_bookmark *parent; - struct pdf_bookmark *prev; - struct pdf_bookmark *next; -}; - - struct pdf_file { FILE *f;