ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/crossedit/include/util.h
Revision: 1.1
Committed: Fri Feb 3 07:11:46 2006 UTC (18 years, 5 months ago) by root
Content type: text/plain
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# User Rev Content
1 root 1.1 /*
2     * Copyright (C) 1993 Petri Heinila
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., 675 Mass Ave, Cambridge, MA 02139, USA.
17     *
18     * Author can be connected by email from hevi@lut.fi
19     */
20    
21     #ifndef _util_h
22     #define _util_h
23     #include <stdio.h>
24    
25     #define die(STR) {fprintf(stderr,"Fatal: %s\n",STR);fflush(stderr);exit(1);}
26     #define sdie(STR) {perror(STR);fflush(stderr);exit(1);}
27     #define warn(STR) {fprintf(stderr,"Warning: %s\n",STR);fflush(stderr);}
28    
29     #define LineSize 80+1
30     #define BufSize 255+1
31     #define BigBufSize 65535+1
32     #define KiloBufSize (1<<10)+1
33     #define MegaBufSize (1<<20)+1
34     #define GigaBufSize (1<<30)+1
35    
36     /* These should now be defined in global.h */
37    
38     #endif /* _util_h */