Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/BaseFile.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2005-03-01 22:24:10 (GMT)
committer Kristian Høgsberg <krh@src.gnome.org>2005-03-01 22:24:10 (GMT)
commit02eb16fef45712a91e24f6471b9e2f31249c888e (patch)
treed5579258f1d7fbd5a280fb2f1b97b74004b1dea9 /pdf/xpdf/BaseFile.h
parent332afee84ff4eb7df326d96f07efd6f82a87c0a2 (diff)
Use poppler instead of including xpdf source code. Poppler is a fork of
2005-03-01 Kristian Høgsberg <krh@redhat.com> Use poppler instead of including xpdf source code. Poppler is a fork of xpdf to build it as a shared library. See http://freedesktop.org/wiki/Software/poppler. * pdf/xpdf/*, pdf/goo/*, pdf/splash/*, pdf/fofi/*: Remove included xpdf fork. * pdf/Makefile.am: Build libpdfdocument.a here. * pdf/GDKSplashOutputDev.cc: * pdf/GDKSplashOutputDev.h: * pdf/GnomeVFSStream.cc: * pdf/GnomeVFSStream.h: * pdf-document.cc: * pdf-document.h: * test-gdk-output-dev.cc * Thumb.cc: * Thumb.h: Pull these files out of pdf/xpdf and adjust to compile against poppler.
Diffstat (limited to 'pdf/xpdf/BaseFile.h')
-rw-r--r--pdf/xpdf/BaseFile.h87
1 files changed, 0 insertions, 87 deletions
diff --git a/pdf/xpdf/BaseFile.h b/pdf/xpdf/BaseFile.h
deleted file mode 100644
index c596b42..0000000
--- a/pdf/xpdf/BaseFile.h
+++ /dev/null
@@ -1,87 +0,0 @@
-//========================================================================
-//
-// BaseFile.h
-//
-// Copyright 1999 Derek B. Noonburg assigned by Michael Meeks.
-//
-//========================================================================
-
-#ifndef BASEFILE_H
-#define BASEFILE_H
-
-#include <stdio.h>
-#include <stdarg.h>
-
-#include "Error.h"
-
-//#ifdef BONOBO_IO
-# include "BonoboFile.h"
-/*#else
-
-typedef FILE * BaseFile;
-
-static inline BaseFile
-bxpdfopen (GString *fileName1)
-{
- GString *fileName2;
- // try to open file
- fileName2 = NULL;
- BaseFile file;
-
-#ifdef VMS
- if (!(file = fopen(fileName->getCString(), "rb", "ctx=stm"))) {
- error(-1, "Couldn't open file '%s'", fileName->getCString());
- return NULL;
- }
-#else
- if (!(file = fopen(fileName1->getCString(), "rb"))) {
- fileName2 = fileName1->copy();
- fileName2->lowerCase();
- if (!(file = fopen(fileName2->getCString(), "rb"))) {
- fileName2->upperCase();
- if (!(file = fopen(fileName2->getCString(), "rb"))) {
- error(-1, "Couldn't open file '%s'", fileName1->getCString());
- delete fileName2;
- return NULL;
- }
- }
- delete fileName2;
- }
-#endif
- return file;
-}
-
-static inline void
-bfclose (BaseFile file)
-{
- fclose (file);
-}
-
-static inline size_t
-bfread (void *ptr, size_t size, size_t nmemb, BaseFile file)
-{
- return fread (ptr, size, nmemb, file);
-}
-
-static inline int
-bfseek (BaseFile file, long offset, int whence)
-{
- return fseek (file, offset, whence);
-}
-
-static inline void
-brewind (BaseFile file)
-{
- rewind (file);
-}
-
-static inline long
-bftell (BaseFile file)
-{
- return ftell (file);
-}*/
-
-//#endif /* BONOBO_IO not defined */
-#endif /* BASEFILE_H */
-
-