Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 203548
Collapse All | Expand All

(-)../xfractint-20.04p07-orig/dos_help/hc.c (-2 / +2 lines)
Lines 72-79 Link Here
72
#   include <dir.h>
72
#   include <dir.h>
73
#   define FNSPLIT fnsplit
73
#   define FNSPLIT fnsplit
74
#else
74
#else
75
#   define MAXFILE _MAX_FNAME
75
#   define MAXFILE FILE_MAX_FNAME
76
#   define MAXEXT  _MAX_EXT
76
#   define MAXEXT  FILE_MAX_EXT
77
#   define FNSPLIT _splitpath
77
#   define FNSPLIT _splitpath
78
#endif
78
#endif
79
79
(-)../xfractint-20.04p07-orig/headers/fractint.h (-25 lines)
Lines 47-77 Link Here
47
#define RESTORESTART      3
47
#define RESTORESTART      3
48
#define CONTINUE          4
48
#define CONTINUE          4
49
49
50
/* these are used to declare arrays for file names */
51
#ifdef XFRACT
52
#define FILE_MAX_PATH  256       /* max length of path+filename  */
53
#define FILE_MAX_DIR   256       /* max length of directory name */
54
#else
55
#define FILE_MAX_PATH  80       /* max length of path+filename  */
56
#define FILE_MAX_DIR   80       /* max length of directory name */
57
#endif
58
#define FILE_MAX_DRIVE  3       /* max length of drive letter   */
59
60
#if 1
61
#define FILE_MAX_FNAME  9       /* max length of filename       */
62
#define FILE_MAX_EXT    5       /* max length of extension      */
63
#else
64
/*
65
The filename limits were increased in Xfract 3.02. But alas,
66
in this poor program that was originally developed on the
67
nearly-brain-dead DOS operating system, quite a few things
68
in the UI would break if file names were bigger than DOS 8-3
69
names. So for now humor us and let's keep the names short.
70
*/
71
#define FILE_MAX_FNAME  64       /* max length of filename       */
72
#define FILE_MAX_EXT    64       /* max length of extension      */
73
#endif
74
75
#define MAXMAXLINELENGTH  128   /* upper limit for maxlinelength for PARs */
50
#define MAXMAXLINELENGTH  128   /* upper limit for maxlinelength for PARs */
76
#define MINMAXLINELENGTH  40    /* lower limit for maxlinelength for PARs */
51
#define MINMAXLINELENGTH  40    /* lower limit for maxlinelength for PARs */
77
52
(-)../xfractint-20.04p07-orig/headers/port.h (+30 lines)
Lines 260-265 Link Here
260
#endif
260
#endif
261
#endif
261
#endif
262
262
263
264
/* The following FILE_* #defines were moved here from fractint.h to
265
 * avoid inconsistent declarations in dos_help/hc.c and unix/unix.c. */
266
267
/* these are used to declare arrays for file names */
268
#ifdef XFRACT
269
#define FILE_MAX_PATH  256       /* max length of path+filename  */
270
#define FILE_MAX_DIR   256       /* max length of directory name */
271
#else
272
#define FILE_MAX_PATH  80       /* max length of path+filename  */
273
#define FILE_MAX_DIR   80       /* max length of directory name */
274
#endif
275
#define FILE_MAX_DRIVE  3       /* max length of drive letter   */
276
277
#if 1
278
#define FILE_MAX_FNAME  9       /* max length of filename       */
279
#define FILE_MAX_EXT    5       /* max length of extension      */
280
#else
281
/*
282
The filename limits were increased in Xfract 3.02. But alas,
283
in this poor program that was originally developed on the
284
nearly-brain-dead DOS operating system, quite a few things
285
in the UI would break if file names were bigger than DOS 8-3
286
names. So for now humor us and let's keep the names short.
287
*/
288
#define FILE_MAX_FNAME  64       /* max length of filename       */
289
#define FILE_MAX_EXT    64       /* max length of extension      */
290
#endif
291
292
263
/* Uses big_access32(), big_set32(),... functions instead of macros. */
293
/* Uses big_access32(), big_set32(),... functions instead of macros. */
264
/* Some little endian machines may require this as well. */
294
/* Some little endian machines may require this as well. */
265
#if BYTE_ORDER == BIG_ENDIAN
295
#if BYTE_ORDER == BIG_ENDIAN
(-)../xfractint-20.04p07-orig/headers/unix.h (-2 lines)
Lines 28-35 Link Here
28
#define max(a,b) ((a)>(b)?(a):(b))
28
#define max(a,b) ((a)>(b)?(a):(b))
29
#define min(a,b) ((a)<(b)?(a):(b))
29
#define min(a,b) ((a)<(b)?(a):(b))
30
#define remove(x) unlink(x)
30
#define remove(x) unlink(x)
31
#define _MAX_FNAME 20
32
#define _MAX_EXT 4
33
#define chsize(fd,len) ftruncate(fd,len)
31
#define chsize(fd,len) ftruncate(fd,len)
34
32
35
#define inp(x) 0
33
#define inp(x) 0
(-)../xfractint-20.04p07-orig/unix/unix.c (-6 lines)
Lines 15-26 Link Here
15
#include <ctype.h>
15
#include <ctype.h>
16
#include "port.h"
16
#include "port.h"
17
17
18
#define FILE_MAX_PATH  256       /* max length of path+filename  */
19
#define FILE_MAX_DIR   256       /* max length of directory name */
20
#define FILE_MAX_DRIVE  3       /* max length of drive letter   */
21
#define FILE_MAX_FNAME  9       /* max length of filename       */
22
#define FILE_MAX_EXT    5       /* max length of extension      */
23
24
int iocount;
18
int iocount;
25
19
26
/*
20
/*

Return to bug 203548