summaryrefslogtreecommitdiff
path: root/freebsdtvision/lib/tvconfig.h
blob: ba654bebe617aa3ea0eb5252c11cebf13eccc8f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * tvconfig.h
 *
 * Turbo Vision - Version 2.0
 *
 * Copyright (c) 1994 by Borland International
 * All Rights Reserved.
 *
 * Modified by Sergio Sigala <sergio@sigala.it>
 */

#if !defined( __CONFIG_H )
#define __CONFIG_H

#include <limits.h>

/** \file tvconfig.h
 * tvconfig.h
 */

/** \var eventQSize
 * Specifies the size of the event queue.
 */
const int eventQSize = 16;

/** \var maxCollectionSize
 * maxCollectionSize determines the maximum number of elements that may be
 * contained in a collection, which is essentially the number of pointers that
 * can fit in INT_MAX (= 2^31-1) bytes.
 */
const int maxCollectionSize = INT_MAX / sizeof(void *);

/** \var maxViewWidth
 * Sets the maximum width of a view.
 */
const int maxViewWidth = 132;

/** \var maxFindStrLen
 * Gives the maximum length for a find string in TEditor applications.
 * @see TEditor
 */
const int maxFindStrLen = 80;

/** \var maxReplaceStrLen
 * Gives the maximum length for a replacement string in TEditor applications.
 * @see TEditor
 */
const int maxReplaceStrLen = 80;

#endif  // __CONFIG_H