nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* source: mytypes.h */ |
2 | /* Copyright Gerhard Rieger */ |
||
3 | /* Published under the GNU General Public License V.2, see file COPYING */ |
||
4 | |||
5 | #ifndef __mytypes_h_included |
||
6 | #define __mytypes_h_included 1 |
||
7 | |||
8 | /* some types and macros I miss in C89 */ |
||
9 | |||
10 | #ifndef HAVE_TYPE_BOOL |
||
11 | # undef bool |
||
12 | typedef enum { false, true } bool; |
||
13 | #endif |
||
14 | |||
15 | #ifndef Min |
||
16 | #define Min(x,y) ((x)<=(y)?(x):(y)) |
||
17 | #endif |
||
18 | |||
19 | #ifndef Max |
||
20 | #define Max(x,y) ((x)>=(y)?(x):(y)) |
||
21 | #endif |
||
22 | |||
23 | #define SOCKADDR_MAX UNIX_PATH_MAX |
||
24 | |||
25 | #endif /* __mytypes_h_included */ |