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 --- a/pdf_name_tree.c Wed Mar 12 11:08:10 2003 +0000 1.2 +++ b/pdf_name_tree.c Wed Mar 12 11:13:28 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_name_tree.c,v 1.7 2003/03/08 01:31:23 eric Exp $ 1.8 + * $Id: pdf_name_tree.c,v 1.8 2003/03/12 03:13:28 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 @@ -300,11 +300,13 @@ 1.13 { 1.14 /* finalize the children first so that their dict ind ref is 1.15 available */ 1.16 + struct pdf_obj *kids; 1.17 + 1.18 for (i = 0; i < node->count; i++) 1.19 pdf_finalize_name_tree_node (tree, node->kids [i]); 1.20 1.21 /* write Kids array */ 1.22 - struct pdf_obj *kids = pdf_new_obj (PT_ARRAY); 1.23 + kids = pdf_new_obj (PT_ARRAY); 1.24 for (i = 0; i < node->count; i++) 1.25 pdf_add_array_elem (kids, node->kids [i]->dict); 1.26 pdf_set_dict_entry (node->dict, "Kids", kids);