ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/includes.h
Revision: 1.11
Committed: Sat May 26 15:44:04 2007 UTC (17 years ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.10: +2 -1 lines
Log Message:
- restore after combined mainboard+harddisk crash
- cleanup/fixes for 2.1 release
- fix invoke to actually do work
- refactor invoke shortcuts, gcc cannot inline
  varargs functions.
- optimised invoke to 4-5 insns in the common case.
- optimised (For no good reason) the int-to-ascii
  conversions of dynbuf_text into division-less and
  branchless code (of which I am pretty proud).
- actually move players to their savebed when they did
  not use one and the map has been reste in the meantime.
  does not kill (yet) when too long.
- enter_map is now handled completely in perl.
- goto is now using generation counting to ensure that only the
  most-recently-issues goto will succeed.
- make some heavy use of __builtin_expect to streamline
  rare callbacks even more.
- optimised thawer.

File Contents

# User Rev Content
1 root 1.1 /*
2 root 1.11 * CrossFire, A Multiplayer game
3 pippijn 1.10 *
4     * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
5     * Copyright (C) 2002 Mark Wedel & Crossfire Development Team
6     * Copyright (C) 1992 Frank Tore Johansen
7     *
8     * This program is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License as published by
10     * the Free Software Foundation; either version 2 of the License, or
11     * (at your option) any later version.
12     *
13     * This program is distributed in the hope that it will be useful,
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     * GNU General Public License for more details.
17     *
18     * You should have received a copy of the GNU General Public License
19     * along with this program; if not, write to the Free Software
20     * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21     *
22     * The authors can be reached via e-mail at crossfire@schmorp.de
23     */
24 root 1.1
25     #ifndef INCLUDES_H
26     #define INCLUDES_H
27    
28 root 1.5 // we want those macros, rewriting too much code is annoying
29     #define __STDC_LIMIT_MACROS
30     #define __STDC_FORMAT_MACROS
31 root 1.11 #define __STDC_CONSTANT_MACROS
32 root 1.1
33 root 1.5 /* Include this first, because it lets us know what we are missing */
34     #include <autoconf.h>
35 root 1.1
36 root 1.5 using namespace std;
37 root 1.1
38 root 1.5 #include <cstddef>
39     #include <cstdlib>
40     #include <cstdio>
41     #include <cstring>
42     #include <csignal>
43     #include <csetjmp>
44     #include <cmath>
45 root 1.1
46     #include <ctype.h>
47 root 1.5 #include <stdint.h>
48     #include <inttypes.h>
49     #include <stdint.h>
50     #include <limits.h>
51 root 1.1 #include <errno.h>
52    
53 root 1.5 #include <unistd.h>
54 root 1.1 #include <fcntl.h>
55     #include <sys/time.h>
56     #include <sys/types.h>
57     #include <sys/stat.h>
58    
59 root 1.6 #include <vector>
60 root 1.1
61     #endif /* INCLUDES_H */
62