mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-21 00:41:42 +00:00
rename xfopen to xdvi_xfopen as a bug reporter says this fixes the final problems
svn path=/trunk/kdegraphics/kdvi/; revision=80548
This commit is contained in:
parent
d8e21fb731
commit
2e35b575e2
6
font.cpp
6
font.cpp
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include "oconfig.h"
|
||||
|
||||
extern FILE *xfopen(const char *filename, const char *type);
|
||||
extern FILE *xdvi_xfopen(const char *filename, const char *type);
|
||||
extern void oops(QString message);
|
||||
extern int n_files_left;
|
||||
|
||||
|
@ -40,7 +40,7 @@ void font::font_name_receiver(KProcess *, char *buffer, int buflen)
|
|||
|
||||
kdDebug() << "FONT NAME RECEIVED:" << filename << endl;
|
||||
|
||||
file = xfopen(filename.latin1(), "r");
|
||||
file = xdvi_xfopen(filename.latin1(), "r");
|
||||
if (file == NULL) {
|
||||
kdError() << i18n("Can't find font ") << fontname << "." << endl;
|
||||
return;
|
||||
|
@ -160,7 +160,7 @@ struct glyph *font::glyphptr(unsigned int ch) {
|
|||
return NULL; /* previously flagged missing char */
|
||||
|
||||
if (file == NULL) {
|
||||
file = xfopen(filename.latin1(), "r");
|
||||
file = xdvi_xfopen(filename.latin1(), "r");
|
||||
if (file == NULL) {
|
||||
oops(QString(i18n("Font file disappeared: %1")).arg(filename) );
|
||||
return NULL;
|
||||
|
|
3
util.cpp
3
util.cpp
|
@ -148,8 +148,7 @@ static void close_a_file()
|
|||
/*
|
||||
* Open a file in the given mode.
|
||||
*/
|
||||
|
||||
FILE *xfopen(const char *filename, const char *type)
|
||||
FILE *xdvi_xfopen(const char *filename, const char *type)
|
||||
#define TYPE type
|
||||
{
|
||||
/* Try not to let the file table fill up completely. */
|
||||
|
|
Loading…
Reference in a new issue