Wed, 12 Mar 2003 11:13:28 +0000
don't declare variable in middle of block, makes older C compilers unhappy.
pdf_name_tree.c | file | annotate | diff | revisions |
1.1 diff -r ddf1ad38ddbf -r d9a9ee9ff098 pdf_name_tree.c 1.2 --- a/pdf_name_tree.c Wed Mar 12 11:08:10 2003 +0000 1.3 +++ b/pdf_name_tree.c Wed Mar 12 11:13:28 2003 +0000 1.4 @@ -4,7 +4,7 @@ 1.5 * will be compressed using ITU-T T.6 (G4) fax encoding. 1.6 * 1.7 * PDF routines 1.8 - * $Id: pdf_name_tree.c,v 1.7 2003/03/08 01:31:23 eric Exp $ 1.9 + * $Id: pdf_name_tree.c,v 1.8 2003/03/12 03:13:28 eric Exp $ 1.10 * Copyright 2003 Eric Smith <eric@brouhaha.com> 1.11 * 1.12 * This program is free software; you can redistribute it and/or modify 1.13 @@ -300,11 +300,13 @@ 1.14 { 1.15 /* finalize the children first so that their dict ind ref is 1.16 available */ 1.17 + struct pdf_obj *kids; 1.18 + 1.19 for (i = 0; i < node->count; i++) 1.20 pdf_finalize_name_tree_node (tree, node->kids [i]); 1.21 1.22 /* write Kids array */ 1.23 - struct pdf_obj *kids = pdf_new_obj (PT_ARRAY); 1.24 + kids = pdf_new_obj (PT_ARRAY); 1.25 for (i = 0; i < node->count; i++) 1.26 pdf_add_array_elem (kids, node->kids [i]->dict); 1.27 pdf_set_dict_entry (node->dict, "Kids", kids);