ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/define.h
(Generate patch)

Comparing deliantra/server/include/define.h (file contents):
Revision 1.77 by root, Thu Nov 8 19:43:24 2007 UTC vs.
Revision 1.78 by root, Sat Mar 15 13:52:37 2008 UTC

42#define FABS(x) fabs (x) 42#define FABS(x) fabs (x)
43 43
44#ifdef __NetBSD__ 44#ifdef __NetBSD__
45# include <sys/param.h> 45# include <sys/param.h>
46#endif 46#endif
47#ifndef MIN
48# define MIN(x,y) min (x, y)
49#endif
50#ifndef MAX
51# define MAX(x,y) max (x, y)
52#endif
53 47
54// maximum length of an object name in the protocol 48// maximum length of an object name in the protocol
55#define NAME_LEN 127 49#define NAME_LEN 127
56 50
57/* MAX3 is basically like MAX, but instead does 3 values. */
58#ifndef MAX3
59# define MAX3(x,y, z) (MAX(x, MAX(y,z)))
60#endif
61
62/* MIN3 is basically like MIN, but instead does 3 values. */
63#ifndef MIN3 51#undef MIN
64# define MIN3(x,y, z) (MIN(x, MIN(y,z))) 52#undef MAX
65#endif
66 53
67#define MAX_STAT 30 /* The maximum legal value of any stat */ 54#define MAX_STAT 30 /* The maximum legal value of any stat */
68#define MIN_STAT 1 /* The minimum legal value of any stat */ 55#define MIN_STAT 1 /* The minimum legal value of any stat */
69 56
70//TODO: not only use more reasonable values, also enforce them 57//TODO: not only use more reasonable values, also enforce them

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines