move struct pdf_bookmark from pdf_private.h into pdf_bookmark.c.

Wed, 05 Mar 2003 20:56:25 +0000

author
eric
date
Wed, 05 Mar 2003 20:56:25 +0000
changeset 79
4cd9d23d924a
parent 78
74b6b230f85d
child 80
96c64a7566df

move struct pdf_bookmark from pdf_private.h into pdf_bookmark.c.

pdf_bookmark.c file | annotate | diff | revisions
pdf_private.h file | annotate | diff | revisions
     1.1 --- a/pdf_bookmark.c	Wed Mar 05 20:44:33 2003 +0000
     1.2 +++ b/pdf_bookmark.c	Wed Mar 05 20:56:25 2003 +0000
     1.3 @@ -4,7 +4,7 @@
     1.4   *      will be compressed using ITU-T T.6 (G4) fax encoding.
     1.5   *
     1.6   * PDF routines
     1.7 - * $Id: pdf_bookmark.c,v 1.4 2003/03/05 12:44:33 eric Exp $
     1.8 + * $Id: pdf_bookmark.c,v 1.5 2003/03/05 12:56:25 eric Exp $
     1.9   * Copyright 2003 Eric Smith <eric@brouhaha.com>
    1.10   *
    1.11   * This program is free software; you can redistribute it and/or modify
    1.12 @@ -38,6 +38,24 @@
    1.13  #include "pdf_private.h"
    1.14  
    1.15  
    1.16 +struct pdf_bookmark
    1.17 +{
    1.18 +  struct pdf_obj *dict;    /* indirect reference */
    1.19 +  struct pdf_obj *count;
    1.20 +  bool open;
    1.21 +
    1.22 +  struct pdf_bookmark *first;
    1.23 +  struct pdf_bookmark *last;
    1.24 +
    1.25 +  /* the following fields don't appear in the root */
    1.26 +  /* title and dest are in the dictionary but don't have
    1.27 +     explicit fields in the C structure */
    1.28 +  struct pdf_bookmark *parent;
    1.29 +  struct pdf_bookmark *prev;
    1.30 +  struct pdf_bookmark *next;
    1.31 +};
    1.32 +
    1.33 +
    1.34  static void pdf_bookmark_update_count (pdf_bookmark_handle entry)
    1.35  {
    1.36    while (entry)
     2.1 --- a/pdf_private.h	Wed Mar 05 20:44:33 2003 +0000
     2.2 +++ b/pdf_private.h	Wed Mar 05 20:56:25 2003 +0000
     2.3 @@ -4,7 +4,7 @@
     2.4   *      will be compressed using ITU-T T.6 (G4) fax encoding.
     2.5   *
     2.6   * PDF routines
     2.7 - * $Id: pdf_private.h,v 1.4 2003/03/05 12:39:50 eric Exp $
     2.8 + * $Id: pdf_private.h,v 1.5 2003/03/05 12:56:25 eric Exp $
     2.9   * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
    2.10   *
    2.11   * This program is free software; you can redistribute it and/or modify
    2.12 @@ -45,24 +45,6 @@
    2.13  };
    2.14  
    2.15  
    2.16 -struct pdf_bookmark
    2.17 -{
    2.18 -  struct pdf_obj *dict;    /* indirect reference */
    2.19 -  struct pdf_obj *count;
    2.20 -  bool open;
    2.21 -
    2.22 -  struct pdf_bookmark *first;
    2.23 -  struct pdf_bookmark *last;
    2.24 -
    2.25 -  /* the following fields don't appear in the root */
    2.26 -  /* title and dest are in the dictionary but don't have
    2.27 -     explicit fields in the C structure */
    2.28 -  struct pdf_bookmark *parent;
    2.29 -  struct pdf_bookmark *prev;
    2.30 -  struct pdf_bookmark *next;
    2.31 -};
    2.32 -
    2.33 -
    2.34  struct pdf_file
    2.35  {
    2.36    FILE                *f;