ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/include/common.h
Revision: 30
Committed: Sun Oct 2 20:03:27 2005 UTC (21 years ago) by adx
Content type: text/x-chdr
Original Path: ircd-hybrid/include/common.h
File size: 1462 byte(s)
Log Message:
- imported sources
- can be moved later according to the directory/branching scheme,
  but we need the svn up

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * common.h: An ircd header common to most code.
4     *
5     * Copyright (C) 2002 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20     * USA
21     *
22     * $Id: common.h,v 7.5 2005/08/17 16:02:51 michael Exp $
23     */
24    
25     #ifndef INCLUDED_common_h
26     #define INCLUDED_common_h
27    
28     #ifdef TRUE
29     #undef TRUE
30     #endif
31    
32     #ifdef FALSE
33     #undef FALSE
34     #endif
35    
36     #define FALSE 0
37     #define TRUE 1
38     #define HIDEME 2
39    
40     /* Blah. I use these a lot. -Dianora */
41     #ifdef YES
42     #undef YES
43     #endif
44    
45     #define YES 1
46    
47     #ifdef NO
48     #undef NO
49     #endif
50    
51     #define NO 0
52    
53     /* Just blindly define our own MIN/MAX macro */
54    
55     #define IRCD_MAX(a, b) ((a) > (b) ? (a) : (b))
56     #define IRCD_MIN(a, b) ((a) < (b) ? (a) : (b))
57     #endif /* INCLUDED_common_h */

Properties

Name Value
svn:eol-style native
svn:keywords "Id Revision"