101
101
#define MY_DONT_OVERWRITE_FILE 1024 /* my_copy: Don't overwrite file */
102
102
#define MY_THREADSAFE 2048 /* my_seek(): lock fd mutex */
104
#define ME_HIGHBYTE 8 /* Shift for colours */
105
#define ME_NOCUR 1 /* Don't use curses message */
106
104
#define ME_OLDWIN 2 /* Use old window */
107
105
#define ME_BELL 4 /* Ring bell then printing message */
108
106
#define ME_HOLDTANG 8 /* Don't delete last keys */
109
#define ME_WAITTOT 16 /* Wait for errtime secs of for a action */
110
107
#define ME_WAITTANG 32 /* Wait for a user action */
111
108
#define ME_NOREFRESH 64 /* Dont refresh screen */
112
109
#define ME_NOINPUT 128 /* Dont use the input libary */
113
#define ME_COLOUR1 ((1 << ME_HIGHBYTE)) /* Possibly error-colours */
114
#define ME_COLOUR2 ((2 << ME_HIGHBYTE))
115
#define ME_COLOUR3 ((3 << ME_HIGHBYTE))
117
111
/* Bits in last argument to fn_format */
118
112
#define MY_REPLACE_DIR 1 /* replace dir in name with 'dir' */
119
113
#define MY_REPLACE_EXT 2 /* replace extension with 'ext' */
120
114
#define MY_UNPACK_FILENAME 4 /* Unpack name (~ -> home) */
121
#define MY_PACK_FILENAME 8 /* Pack name (home -> ~) */
122
115
#define MY_RESOLVE_SYMLINKS 16 /* Resolve all symbolic links */
123
116
#define MY_RETURN_REAL_PATH 32 /* return full path for file */
124
117
#define MY_SAFE_PATH 64 /* Return NULL if too long path */
231
224
#define my_b_tell(info) ((info)->pos_in_file + \
232
225
(size_t) (*(info)->current_pos - (info)->request_pos))
234
#define my_b_get_buffer_start(info) (info)->request_pos
237
227
#define my_b_bytes_in_cache(info) (size_t) (*(info)->current_end - \
238
228
*(info)->current_pos)