gfile.h (xpdf-4.03) | : | gfile.h (xpdf-4.04) | ||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
# include <windows.h> | # include <windows.h> | |||
# endif | # endif | |||
#elif defined(ACORN) | #elif defined(ACORN) | |||
#elif defined(ANDROID) | #elif defined(ANDROID) | |||
#else | #else | |||
# include <unistd.h> | # include <unistd.h> | |||
# include <sys/types.h> | # include <sys/types.h> | |||
#endif | #endif | |||
#include "gtypes.h" | #include "gtypes.h" | |||
// Windows 10 supports long paths - with a registry setting, and only | ||||
// with Unicode (...W) functions. | ||||
#ifdef _WIN32 | ||||
# define winMaxLongPath 32767 | ||||
#endif | ||||
class GString; | class GString; | |||
//------------------------------------------------------------------------ | //------------------------------------------------------------------------ | |||
// Get home directory path. | // Get home directory path. | |||
extern GString *getHomeDir(); | extern GString *getHomeDir(); | |||
// Get current directory. | // Get current directory. | |||
extern GString *getCurrentDir(); | extern GString *getCurrentDir(); | |||
skipping to change at line 58 | skipping to change at line 64 | |||
// directory component in <fileName>, returns an empty string. | // directory component in <fileName>, returns an empty string. | |||
extern GString *grabPath(char *fileName); | extern GString *grabPath(char *fileName); | |||
// Is this an absolute path or file name? | // Is this an absolute path or file name? | |||
extern GBool isAbsolutePath(char *path); | extern GBool isAbsolutePath(char *path); | |||
// Make this path absolute by prepending current directory (if path is | // Make this path absolute by prepending current directory (if path is | |||
// relative) or prepending user's directory (if path starts with '~'). | // relative) or prepending user's directory (if path starts with '~'). | |||
extern GString *makePathAbsolute(GString *path); | extern GString *makePathAbsolute(GString *path); | |||
// Returns true if [path] exists and is a regular file. | ||||
extern GBool pathIsFile(const char *path); | ||||
// Get the modification time for <fileName>. Returns 0 if there is an | // Get the modification time for <fileName>. Returns 0 if there is an | |||
// error. | // error. | |||
extern time_t getModTime(char *fileName); | extern time_t getModTime(char *fileName); | |||
// Create a temporary file and open it for writing. If <ext> is not | // 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 | // NULL, it will be used as the file name extension. Returns both the | |||
// name and the file pointer. For security reasons, all writing | // name and the file pointer. For security reasons, all writing | |||
// should be done to the returned file pointer; the file may be | // should be done to the returned file pointer; the file may be | |||
// reopened later for reading, but not for writing. The <mode> string | // reopened later for reading, but not for writing. The <mode> string | |||
// should be "w" or "wb". Returns true on success. | // should be "w" or "wb". Returns true on success. | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 9 lines changed or added |