[poppler] Branch 'poppler-0.10' - CMakeLists.txt poppler/BaseFile.h poppler/Makefile.am
Albert Astals Cid
aacid at kemper.freedesktop.org
Fri Dec 26 10:50:24 PST 2008
CMakeLists.txt | 1
poppler/BaseFile.h | 82 ----------------------------------------------------
poppler/Makefile.am | 1
3 files changed, 84 deletions(-)
New commits:
commit f45773f9916da878fad93846ec98526f64daf626
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Dec 26 19:47:42 2008 +0100
BaseFile.h has never been used and it fact it's not part of xpdf sources
Fixes bug 19298
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f6ba76..c86bca6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -253,7 +253,6 @@ if(ENABLE_XPDF_HEADERS)
install(FILES
poppler/Annot.h
poppler/Array.h
- poppler/BaseFile.h
poppler/BuiltinFont.h
poppler/BuiltinFontTables.h
poppler/Catalog.h
diff --git a/poppler/BaseFile.h b/poppler/BaseFile.h
deleted file mode 100644
index 7aedec1..0000000
--- a/poppler/BaseFile.h
+++ /dev/null
@@ -1,82 +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"
-
-typedef FILE * BaseFile;
-
-static inline BaseFile
-bxpdfopen (GooString *fileName1)
-{
- GooString *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 /* BASEFILE_H */
-
-
diff --git a/poppler/Makefile.am b/poppler/Makefile.am
index 5d22918..bfa4443 100644
--- a/poppler/Makefile.am
+++ b/poppler/Makefile.am
@@ -145,7 +145,6 @@ poppler_include_HEADERS = \
$(splash_headers) \
Annot.h \
Array.h \
- BaseFile.h \
BuiltinFont.h \
BuiltinFontTables.h \
Catalog.h \
More information about the poppler
mailing list