/* * ircd-ratbox: A slightly useful ircd. * stdinc.h: Pull in all of the necessary system headers * * Copyright (C) 2002 Aaron Sethman * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * */ /////////////////////////////////////////////////////////////////////////////// // // IRCd's namespacing is as follows: // // IRCD_ #define and macro namespace // RB_ #define and macro namespace (legacy, low-level) // ircd_ C namespace and demangled bindings // ircd:: C++ namespace // /////////////////////////////////////////////////////////////////////////////// // // Standard includes // // This header includes almost everything we use out of the standard library. // This is a pre-compiled header. Project build time is significantly reduced // by doing things this way and C++ std headers have very little namespace // pollution and risk of conflicts. // // * If any project header file requires standard library symbols we try to // list it here, not in our header files. // // * Rare one-off's #includes isolated to a specific .cc file may not always be // listed here but can be. // // * Third party / dependency / non-std includes, are NEVER listed here. // Instead we include those in .cc files, and use forward declarations if // we require a symbol in our API to them. // #define HAVE_IRCD_STDINC_H // Generated by ./configure #include "config.h" extern "C" { #include using ilist = std::initializer_list; using int128_t = signed __int128; using uint128_t = unsigned __int128; } /////////////////////////////////////////////////////////////////////////////// // // libircd API // // Unsorted section namespace ircd { struct client; struct server; enum class runlevel :uint; constexpr size_t BUFSIZE { 512 }; extern const std::string &conf; extern const enum runlevel &runlevel; std::string demangle(const std::string &symbol); template std::string demangle(); } #include "util.h" #include "exception.h" #include "string_view.h" #include "vector_view.h" #include "array_view.h" #include "byte_view.h" #include "allocator.h" #include "buffer.h" #include "date.h" #include "timer.h" #include "logger.h" #include "openssl.h" #include "nacl.h" #include "rand.h" #include "hash.h" #include "ed25519.h" #include "info.h" #include "localee.h" #include "life_guard.h" #include "color.h" #include "lex_cast.h" #include "stringops.h" #include "tokens.h" #include "params.h" #include "iov.h" #include "parse.h" #include "rfc1459.h" #include "json/json.h" #include "http.h" #include "fmt.h" #include "fs.h" #include "ios.h" #include "ctx/ctx.h" #include "db/db.h" #include "js.h" #include "mods.h" #include "net/net.h" #include "m/m.h" #include "resource.h" #include "server.h" #include "client.h" template std::string ircd::demangle() { return demangle(typeid(T).name()); }