Commit fb2054a5 authored by Kristian Høgsberg's avatar Kristian Høgsberg

2006-01-23 Kristian Høgsberg <krh@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).
parent 836af352
2006-01-23 Kristian Høgsberg <krh@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).
* splash/SplashFTFont.cc: Don't use deprecated freetype include
files.
......
......@@ -13,11 +13,12 @@ print_index (PopplerIndexIter *iter)
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 @@ print_document_info (PopplerDocument *document)
PopplerViewerPreferences view_prefs;
PopplerFontInfo *font_info;
PopplerFontsIter *fonts_iter;
PopplerIndexIter *index_iter;
GEnumValue *enum_value;
g_object_get (document,
......@@ -85,7 +87,6 @@ print_document_info (PopplerDocument *document)
}
poppler_font_info_free (font_info);
PopplerIndexIter *index_iter;
index_iter = poppler_index_iter_new (document);
if (index_iter)
{
......
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
......@@ -10,7 +11,6 @@
#include "GfxFont.h"
#include "Annot.h"
#include "PDFDoc.h"
#include "config.h"
#include "FontInfo.h"
#include "UGooString.h"
......
......@@ -14,6 +14,7 @@
#pragma implementation
#endif
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
......@@ -24,7 +25,6 @@
#include "goo/GooList.h"
#include "UnicodeMap.h"
#include "goo/gmem.h"
#include "config.h"
#include "Error.h"
#include "GfxState.h"
#ifdef ENABLE_LIBJPEG
......
......@@ -6,6 +6,7 @@
//
//========================================================================
#include "config.h"
#include <poppler-config.h>
#ifdef USE_GCC_PRAGMAS
......@@ -17,7 +18,6 @@
#include <stddef.h>
#include <ctype.h>
#include "goo/gmem.h"
#include "config.h"
#include "Error.h"
#include "GfxState.h"
#include "Object.h"
......
......@@ -6,6 +6,7 @@
//
//========================================================================
#include "config.h"
#include <poppler-config.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -22,7 +23,6 @@
#include "GfxFont.h"
#include "Annot.h"
#include "PDFDoc.h"
#include "config.h"
#include "UGooString.h"
static char *fontTypeNames[] = {
......
......@@ -8,6 +8,7 @@
//
//========================================================================
#include "config.h"
#include <poppler-config.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -27,7 +28,6 @@
#include "PDFDoc.h"
#include "ImageOutputDev.h"
#include "Error.h"
#include "config.h"
static int firstPage = 1;
static int lastPage = 0;
......
......@@ -6,6 +6,7 @@
//
//========================================================================
#include "config.h"
#include <poppler-config.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -29,7 +30,6 @@
#include "UnicodeMap.h"
#include "Error.h"
#include "UGooString.h"
#include "config.h"
static void printInfoString(Dict *infoDict, char *key, char *text,
UnicodeMap *uMap);
......
......@@ -6,12 +6,13 @@
// Copyright 1999-2000 G. Ovtcharov
//========================================================================
#include "config.h"
#include <poppler-config.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <dirent.h>
#include <poppler-config.h>
#include <time.h>
#include "parseargs.h"
#include "goo/GooString.h"
......@@ -29,7 +30,6 @@
#include "GlobalParams.h"
#include "Error.h"
#include "UGooString.h"
#include "config.h"
#include "goo/gfile.h"
#ifndef GHOSTSCRIPT
......
......@@ -6,6 +6,7 @@
//
//========================================================================
#include "config.h"
#include <poppler-config.h>
#include <stdio.h>
#include "parseargs.h"
......@@ -17,7 +18,6 @@
#include "splash/SplashBitmap.h"
#include "splash/Splash.h"
#include "SplashOutputDev.h"
#include "config.h"
static int firstPage = 1;
static int lastPage = 0;
......
......@@ -8,6 +8,7 @@
//
//========================================================================
#include "config.h"
#include <poppler-config.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -27,7 +28,6 @@
#include "PDFDoc.h"
#include "PSOutputDev.h"
#include "Error.h"
#include "config.h"
static int firstPage = 1;
static int lastPage = 0;
......
......@@ -8,6 +8,7 @@
//
//========================================================================
#include "config.h"
#include <poppler-config.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -30,7 +31,6 @@
#include "UnicodeMap.h"
#include "Error.h"
#include "UGooString.h"
#include "config.h"
static void printInfoString(FILE *f, Dict *infoDict, char *key,
char *text1, char *text2, UnicodeMap *uMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment