]>
Commit | Line | Data |
---|---|---|
2ace9480 | 1 | /* Thales - IRC to Relational Database Gateway |
2 | * Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net> | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License | |
15 | * along with this program; if not, write to the Free Software | |
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
17 | */ | |
18 | ||
19 | #ifndef NAME_MAX | |
20 | # define NAME_MAX 255 | |
21 | #endif | |
22 | ||
23 | #ifndef BUFSIZ | |
24 | # define BUFSIZ 256 | |
25 | #else | |
26 | # if BUFSIZ < 256 | |
27 | # define BUFSIZ 256 | |
28 | # endif | |
29 | #endif | |
30 | ||
31 | /* Length of an array: */ | |
32 | #define lenof(a) (sizeof(a) / sizeof(*(a))) | |
33 | ||
34 | /* Telling compilers about printf()-like functions: */ | |
35 | #ifdef __GNUC__ | |
36 | # define FORMAT(type,fmt,start) __attribute__((format(type,fmt,start))) | |
37 | #else | |
38 | # define FORMAT(type,fmt,start) | |
39 | #endif | |
40 | ||
41 | #define BUFSIZE 1024 | |
42 | #define NET_BUFSIZE 65536 | |
43 | /*************************************************************************/ |