… | |
… | |
50 | #endif |
50 | #endif |
51 | #ifndef MAX |
51 | #ifndef MAX |
52 | # define MAX(x,y) max (x, y) |
52 | # define MAX(x,y) max (x, y) |
53 | #endif |
53 | #endif |
54 | |
54 | |
55 | /*NAME_MAX used by random maps may not be defined on pure ansi systems*/ |
55 | // maximum length of an object name in the protocol |
56 | #ifndef NAME_MAX |
56 | #define NAME_LEN 127 |
57 | # define NAME_MAX 255 |
|
|
58 | #endif |
|
|
59 | |
57 | |
60 | /* MAX3 is basically like MAX, but instead does 3 values. */ |
58 | /* MAX3 is basically like MAX, but instead does 3 values. */ |
61 | #ifndef MAX3 |
59 | #ifndef MAX3 |
62 | # define MAX3(x,y, z) (MAX(x, MAX(y,z))) |
60 | # define MAX3(x,y, z) (MAX(x, MAX(y,z))) |
63 | #endif |
61 | #endif |