git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some bugfixes around -z.
[swftools.git]
/
pdf2swf
/
xpdf
/
gfile.h
diff --git
a/pdf2swf/xpdf/gfile.h
b/pdf2swf/xpdf/gfile.h
index
f3041b9
..
b433aeb
100644
(file)
--- a/
pdf2swf/xpdf/gfile.h
+++ b/
pdf2swf/xpdf/gfile.h
@@
-4,7
+4,7
@@
//
// Miscellaneous file and directory name manipulation.
//
//
// Miscellaneous file and directory name manipulation.
//
-// Copyright 1996 Derek B. Noonburg
+// Copyright 1996-2003 Glyph & Cog, LLC
//
//========================================================================
//
//========================================================================
@@
-14,13
+14,14
@@
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
-#include "../../config.h"
+#include "./aconf.h"
#if defined(WIN32)
# include <sys/stat.h>
# ifdef FPTEX
# include <win32lib.h>
# else
# include <windows.h>
#if defined(WIN32)
# include <sys/stat.h>
# ifdef FPTEX
# include <win32lib.h>
# else
# include <windows.h>
+# include <winbase.h>
# endif
#elif defined(ACORN)
#elif defined(MACOS)
# endif
#elif defined(ACORN)
#elif defined(MACOS)
@@
-59,6
+60,9
@@
extern GString *getHomeDir();
// Get current directory.
extern GString *getCurrentDir();
// Get current directory.
extern GString *getCurrentDir();
+/* create a temporary filename */
+char* mktmpname(char*ptr);
+
// Append a file name to a path string. <path> may be an empty
// string, denoting the current directory). Returns <path>.
extern GString *appendToPath(GString *path, char *fileName);
// Append a file name to a path string. <path> may be an empty
// string, denoting the current directory). Returns <path>.
extern GString *appendToPath(GString *path, char *fileName);
@@
-72,11
+76,11
@@
extern GBool isAbsolutePath(char *path);
// Make this path absolute by prepending current directory (if path is
// relative) or prepending user's directory (if path starts with '~').
// Make this path absolute by prepending current directory (if path is
// relative) or prepending user's directory (if path starts with '~').
-GString *makePathAbsolute(GString *path);
+extern GString *makePathAbsolute(GString *path);
// Get the modification time for <fileName>. Returns 0 if there is an
// error.
// Get the modification time for <fileName>. Returns 0 if there is an
// error.
-time_t getModTime(char *fileName);
+extern time_t getModTime(char *fileName);
// Create a temporary file and open it for writing. If <ext> is not
// NULL, it will be used as the file name extension. Returns both the
// Create a temporary file and open it for writing. If <ext> is not
// NULL, it will be used as the file name extension. Returns both the
@@
-84,10
+88,14
@@
time_t getModTime(char *fileName);
// should be done to the returned file pointer; the file may be
// reopened later for reading, but not for writing. The <mode> string
// should be "w" or "wb". Returns true on success.
// should be done to the returned file pointer; the file may be
// reopened later for reading, but not for writing. The <mode> string
// should be "w" or "wb". Returns true on success.
-GBool openTempFile(GString **name, FILE **f, char *mode, char *ext);
+extern GBool openTempFile(GString **name, FILE **f, char *mode, char *ext);
-/* create a temporary filename */
-char* mktmpname(char*ptr);
+// Execute <command>. Returns true on success.
+extern GBool executeCommand(char *cmd);
+
+// Just like fgets, but handles Unix, Mac, and/or DOS end-of-line
+// conventions.
+extern char *getLine(char *buf, int size, FILE *f);
//------------------------------------------------------------------------
// GDir and GDirEntry
//------------------------------------------------------------------------
// GDir and GDirEntry
@@
-96,7
+104,7
@@
char* mktmpname(char*ptr);
class GDirEntry {
public:
class GDirEntry {
public:
- GDirEntry(char *dirPath, char *name1, GBool doStat);
+ GDirEntry(char *dirPath, char *nameA, GBool doStat);
~GDirEntry();
GString *getName() { return name; }
GBool isDir() { return dir; }
~GDirEntry();
GString *getName() { return name; }
GBool isDir() { return dir; }
@@
-110,7
+118,7
@@
private:
class GDir {
public:
class GDir {
public:
- GDir(char *name, GBool doStat1 = gTrue);
+ GDir(char *name, GBool doStatA = gTrue);
~GDir();
GDirEntry *getNextEntry();
void rewind();
~GDir();
GDirEntry *getNextEntry();
void rewind();