[poppler] poppler/glib: test-poppler-glib.c,1.15,1.16

Kristian Høgsberg krh at freedesktop.org
Mon Jan 23 07:40:56 PST 2006


Update of /cvs/poppler/poppler/glib
In directory gabe:/tmp/cvs-serv30093/glib

Modified Files:
	test-poppler-glib.c 
Log Message:
2006-01-23  Kristian Høgsberg  <krh at redhat.com>

        * glib/test-poppler-glib.c (print_document_info, print_index):
        Move variable declarations to top (#5692).

        * utils/*.cc: Move config.h #include to top of #include's (#5693).



Index: test-poppler-glib.c
===================================================================
RCS file: /cvs/poppler/poppler/glib/test-poppler-glib.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- test-poppler-glib.c	31 Dec 2005 02:10:33 -0000	1.15
+++ test-poppler-glib.c	23 Jan 2006 15:40:54 -0000	1.16
@@ -13,11 +13,12 @@
   do
     {
       PopplerAction *action;
+      PopplerIndexIter *child;
 
       action = poppler_index_iter_get_action (iter);
       g_print ("Action: %d\n", action->type);
       poppler_action_free (action);
-      PopplerIndexIter *child = poppler_index_iter_get_child (iter);
+      child = poppler_index_iter_get_child (iter);
       if (child)
 	print_index (child);
       poppler_index_iter_free (child);
@@ -35,6 +36,7 @@
   PopplerViewerPreferences view_prefs;
   PopplerFontInfo *font_info;
   PopplerFontsIter *fonts_iter;
+  PopplerIndexIter *index_iter;
   GEnumValue *enum_value;
 
   g_object_get (document,
@@ -85,7 +87,6 @@
   }
   poppler_font_info_free (font_info);
 
-  PopplerIndexIter *index_iter;
   index_iter = poppler_index_iter_new (document);
   if (index_iter)
     {



More information about the poppler mailing list