A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 77 lines 3.1 kB view raw
1/* Emacs style mode select -*- C++ -*- 2 *----------------------------------------------------------------------------- 3 * 4 * 5 * PrBoom a Doom port merged with LxDoom and LSDLDoom 6 * based on BOOM, a modified and improved DOOM engine 7 * Copyright (C) 1999 by 8 * id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman 9 * Copyright (C) 1999-2000 by 10 * Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze 11 * 12 * This program is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; either version 2 15 * of the License, or (at your option) any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * You should have received a copy of the GNU General Public License 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 25 * 02111-1307, USA. 26 * 27 * DESCRIPTION: 28 * Simple basic typedefs, isolated here to make it easier 29 * separating modules. 30 * 31 *-----------------------------------------------------------------------------*/ 32#ifndef __DOOMTYPE__ 33#define __DOOMTYPE__ 34#include "rockmacros.h" 35 36// Fixed to use builtin bool type with C++. 37typedef unsigned int boolean; 38typedef unsigned char byte; 39 40typedef signed long long int_64_t; 41typedef unsigned long long uint_64_t; 42 43#define MAXCHAR ((char)0x7f) 44#define MAXSHORT ((short)0x7fff) 45 46// Max pos 32-bit int. 47#define MAXINT ((int)0x7fffffff) 48#define MAXLONG ((long)0x7fffffff) 49#define MINCHAR ((char)0x80) 50#define MINSHORT ((short)0x8000) 51 52// Max negative 32-bit integer. 53#define MININT ((int)0x80000000) 54#define MINLONG ((long)0x80000000) 55 56/* cph - move compatibility levels here so we can use them in d_server.c */ 57enum { 58 doom_12_compatibility, /* Behave like early doom versions */ 59 doom_demo_compatibility, /* As compatible as possible for 60 * playing original Doom demos */ 61 doom_compatibility, /* Compatible with original Doom levels */ 62 boom_compatibility_compatibility, /* Boom's compatibility mode */ 63 boom_201_compatibility, /* Compatible with Boom v2.01 */ 64 boom_202_compatibility, /* Compatible with Boom v2.01 */ 65 lxdoom_1_compatibility, /* LxDoom v1.3.2+ */ 66 mbf_compatibility, /* MBF */ 67 prboom_1_compatibility, /* PrBoom 2.03beta? */ 68 prboom_2_compatibility, /* PrBoom 2.1.0-2.1.1 */ 69 prboom_3_compatibility, /* Latest PrBoom */ 70 MAX_COMPATIBILITY_LEVEL, /* Must be last entry */ 71 /* Aliases follow */ 72 boom_compatibility = boom_201_compatibility, /* Alias used by G_Compatibility */ 73 best_compatibility = prboom_3_compatibility, 74}; 75typedef unsigned complevel_t; 76 77#endif