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

# Content
1 /*
2 * CrossFire, A Multiplayer game
3 *
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
25 #ifndef INCLUDES_H
26 #define INCLUDES_H
27
28 // we want those macros, rewriting too much code is annoying
29 #define __STDC_LIMIT_MACROS
30 #define __STDC_FORMAT_MACROS
31 #define __STDC_CONSTANT_MACROS
32
33 /* Include this first, because it lets us know what we are missing */
34 #include <autoconf.h>
35
36 using namespace std;
37
38 #include <cstddef>
39 #include <cstdlib>
40 #include <cstdio>
41 #include <cstring>
42 #include <csignal>
43 #include <csetjmp>
44 #include <cmath>
45
46 #include <ctype.h>
47 #include <stdint.h>
48 #include <inttypes.h>
49 #include <stdint.h>
50 #include <limits.h>
51 #include <errno.h>
52
53 #include <unistd.h>
54 #include <fcntl.h>
55 #include <sys/time.h>
56 #include <sys/types.h>
57 #include <sys/stat.h>
58
59 #include <vector>
60
61 #endif /* INCLUDES_H */
62