Remove the use of stdbool (#19)

It should not be needed anymore after the migration to C++
This commit is contained in:
Jan Šimek 2022-05-28 05:55:42 +02:00 committed by GitHub
parent b467198f16
commit ad1fb7765b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
69 changed files with 0 additions and 127 deletions

View File

@ -5,8 +5,6 @@
#include "obj_types.h"
#include "proto_types.h"
#include <stdbool.h>
extern int _action_in_explode;
extern const int gNormalDeathAnimations[DAMAGE_TYPE_COUNT];
extern const int gMaximumBloodDeathAnimations[DAMAGE_TYPE_COUNT];

View File

@ -6,8 +6,6 @@
#include "obj_types.h"
#include "sound.h"
#include <stdbool.h>
#define ANIMATION_SEQUENCE_LIST_CAPACITY (32)
#define ANIMATION_DESCRIPTION_LIST_CAPACITY (55)

View File

@ -3,8 +3,6 @@
#include "sound_decoder.h"
#include <stdbool.h>
typedef enum AudioFileFlags {
AUDIO_FILE_IN_USE = 0x01,
AUDIO_FILE_COMPRESSED = 0x02,

View File

@ -4,8 +4,6 @@
#include "db.h"
#include "map_defs.h"
#include <stdbool.h>
#define AUTOMAP_DB ("AUTOMAP.DB")
#define AUTOMAP_TMP ("AUTOMAP.TMP")

View File

@ -1,8 +1,6 @@
#ifndef AUTORUN_H
#define AUTORUN_H
#include <stdbool.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View File

@ -3,8 +3,6 @@
#include "heap.h"
#include <stdbool.h>
#define INVALID_CACHE_ENTRY ((CacheEntry*)-1)
// The initial number of cache entries in new cache.

View File

@ -3,8 +3,6 @@
#include "art.h"
#include <stdbool.h>
#define CS_WINDOW_WIDTH (640)
#define CS_WINDOW_HEIGHT (480)

View File

@ -3,7 +3,6 @@
#include "memory_defs.h"
#include <stdbool.h>
#include <stdlib.h>
typedef char*(ColorFileNameManger)(char*);

View File

@ -8,8 +8,6 @@
#include "obj_types.h"
#include "party_member.h"
#include <stdbool.h>
#define AI_PACKET_CHEM_PRIMARY_DESIRE_COUNT (3)
typedef enum AiMessageType {

View File

@ -3,8 +3,6 @@
#include "dictionary.h"
#include <stdbool.h>
#define CONFIG_FILE_MAX_LINE_LENGTH (256)
// The initial number of sections (or key-value) pairs in the config.

View File

@ -8,8 +8,6 @@
#include <SDL.h>
#include <stdbool.h>
#define MOUSE_DEFAULT_CURSOR_WIDTH 8
#define MOUSE_DEFAULT_CURSOR_HEIGHT 8
#define MOUSE_DEFAULT_CURSOR_SIZE (MOUSE_DEFAULT_CURSOR_WIDTH * MOUSE_DEFAULT_CURSOR_HEIGHT)

View File

@ -3,8 +3,6 @@
#include "db.h"
#include <stdbool.h>
#define CREDITS_WINDOW_WIDTH (640)
#define CREDITS_WINDOW_HEIGHT (480)
#define CREDITS_WINDOW_SCROLLING_DELAY (38)

View File

@ -6,8 +6,6 @@
#include "obj_types.h"
#include "proto_types.h"
#include <stdbool.h>
// Maximum length of dude's name length.
#define DUDE_NAME_MAX_LENGTH (32)

View File

@ -1,8 +1,6 @@
#ifndef CYCLE_H
#define CYCLE_H
#include <stdbool.h>
#define COLOR_CYCLE_PERIOD_1 (200U)
#define COLOR_CYCLE_PERIOD_2 (142U)
#define COLOR_CYCLE_PERIOD_3 (100U)

View File

@ -4,7 +4,6 @@
#include "memory_defs.h"
#include "xfile.h"
#include <stdbool.h>
#include <stddef.h>
typedef XFile File;

View File

@ -4,7 +4,6 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdbool.h>
#include <stdio.h>
#include <zlib.h>

View File

@ -1,7 +1,6 @@
#include "dictionary.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

View File

@ -3,8 +3,6 @@
#include "geometry.h"
#include <stdbool.h>
// The maximum number of lines display monitor can hold. Once this value
// is reached earlier messages are thrown away.
#define DISPLAY_MONITOR_LINES_CAPACITY (100)

View File

@ -5,8 +5,6 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdbool.h>
typedef enum EndgameDeathEndingReason {
// Dude died.
ENDGAME_DEATH_ENDING_REASON_DEATH = 0,

View File

@ -1,8 +1,6 @@
#ifndef FILE_FIND_H
#define FILE_FIND_H
#include <stdbool.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View File

@ -3,7 +3,6 @@
#include "file_utils.h"
#include <stdbool.h>
#include <stdio.h>
#include <zlib.h>

View File

@ -3,8 +3,6 @@
#include "text_font.h"
#include <stdbool.h>
// The maximum number of interface fonts.
#define INTERFACE_FONT_MAX (16)

View File

@ -4,8 +4,6 @@
#include "game_vars.h"
#include "message.h"
#include <stdbool.h>
extern char _aGame_0[];
extern bool gGameUiDisabled;

View File

@ -3,8 +3,6 @@
#include "config.h"
#include <stdbool.h>
// The file name of the main config file.
#define GAME_CONFIG_FILE_NAME "fallout2.cfg"

View File

@ -8,8 +8,6 @@
#include "message.h"
#include "obj_types.h"
#include <stdbool.h>
#define DIALOG_REVIEW_ENTRIES_CAPACITY 80
#define DIALOG_OPTION_ENTRIES_CAPACITY 30

View File

@ -5,8 +5,6 @@
#include "geometry.h"
#include "obj_types.h"
#include <stdbool.h>
typedef enum ScrollableDirections {
SCROLLABLE_W = 0x01,
SCROLLABLE_E = 0x02,

View File

@ -3,8 +3,6 @@
#include "db.h"
#include <stdbool.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View File

@ -21,7 +21,6 @@
#include "window_manager.h"
#include "world_map.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>

View File

@ -4,8 +4,6 @@
#include "obj_types.h"
#include "sound.h"
#include <stdbool.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View File

@ -1,8 +1,6 @@
#ifndef HEAP_H
#define HEAP_H
#include <stdbool.h>
#define HEAP_BLOCK_HEADER_GUARD (0xDEADC0DE)
#define HEAP_BLOCK_FOOTER_GUARD (0xACDCACDC)

View File

@ -6,8 +6,6 @@
#include "geometry.h"
#include "obj_types.h"
#include <stdbool.h>
typedef enum Hand {
// Item1 (Punch)
HAND_LEFT,

View File

@ -2,7 +2,6 @@
#define INTERPRETER_H
#include <setjmp.h>
#include <stdbool.h>
// The maximum number of opcodes.
#define OPCODE_MAX_COUNT (342)

View File

@ -6,8 +6,6 @@
#include "interpreter.h"
#include "obj_types.h"
#include <stdbool.h>
typedef enum ScriptError {
SCRIPT_ERROR_NOT_IMPLEMENTED,
SCRIPT_ERROR_OBJECT_IS_NULL,

View File

@ -6,8 +6,6 @@
#include "message.h"
#include "obj_types.h"
#include <stdbool.h>
#define INVENTORY_NORMAL_WINDOW_PC_ROTATION_DELAY (1000U / ROTATION_COUNT)
#define OFF_59E7BC_COUNT 12

View File

@ -5,8 +5,6 @@
#include "message.h"
#include "obj_types.h"
#include <stdbool.h>
#define ADDICTION_COUNT (9)
typedef enum _WeaponClass {

View File

@ -3,8 +3,6 @@
#include "map_defs.h"
#include <stdbool.h>
#define LIGHT_LEVEL_MIN (65536 / 4)
#define LIGHT_LEVEL_MAX 65536

View File

@ -4,7 +4,6 @@
#include "db.h"
#include "sound.h"
#include <stdbool.h>
#include <stddef.h>
#define PHONEME_COUNT (42)

View File

@ -6,8 +6,6 @@
#include "geometry.h"
#include "message.h"
#include <stdbool.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View File

@ -4,8 +4,6 @@
#include "art.h"
#include "fps_limiter.h"
#include <stdbool.h>
typedef enum MainMenuButton {
MAIN_MENU_BUTTON_INTRO,
MAIN_MENU_BUTTON_NEW_GAME,

View File

@ -7,8 +7,6 @@
#include "map_defs.h"
#include "message.h"
#include <stdbool.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View File

@ -1,8 +1,6 @@
#ifndef MAPDEFS_H
#define MAPDEFS_H
#include <stdbool.h>
#define ELEVATION_COUNT (3)
#define SQUARE_GRID_WIDTH (100)

View File

@ -3,8 +3,6 @@
#include "db.h"
#include <stdbool.h>
#define BADWORD_LENGTH_MAX 80
#define MESSAGE_LIST_ITEM_TEXT_FILTERED 0x01

View File

@ -1,8 +1,6 @@
#ifndef MMX_H
#define MMX_H
#include <stdbool.h>
bool mmxIsSupported();
void mmxBlit(unsigned char* dest, int destPitch, unsigned char* src, int srcPitch, int width, int height);
void mmxBlitTrans(unsigned char* dest, int destPitch, unsigned char* src, int srcPitch, int width, int height);

View File

@ -1,8 +1,6 @@
#ifndef MOVIE_EFFECT_H
#define MOVIE_EFFECT_H
#include <stdbool.h>
typedef enum MovieEffectType {
MOVIE_EFFECT_TYPE_NONE = 0,
MOVIE_EFFECT_TYPE_FADE_IN = 1,

View File

@ -8,8 +8,6 @@
#define DIRECTSOUND_VERSION 0x0300
#include <dsound.h>
#include <stdbool.h>
typedef struct STRUCT_6B3690 {
void* field_0;
int field_4;

View File

@ -6,8 +6,6 @@
#include "message.h"
#include "geometry.h"
#include <stdbool.h>
#define OPTIONS_WINDOW_BUTTONS_COUNT (10)
#define PRIMARY_OPTION_VALUE_COUNT (4)
#define SECONDARY_OPTION_VALUE_COUNT (2)

View File

@ -6,8 +6,6 @@
#include "obj_types.h"
#include "scripts.h"
#include <stdbool.h>
typedef struct PartyMemberDescription {
bool areaAttackMode[AREA_ATTACK_MODE_COUNT];
bool runAwayMode[RUN_AWAY_MODE_COUNT];

View File

@ -7,8 +7,6 @@
#include "perk_defs.h"
#include "stat_defs.h"
#include <stdbool.h>
typedef struct PerkDescription {
char* name;
char* description;

View File

@ -6,8 +6,6 @@
#include "geometry.h"
#include "message.h"
#include <stdbool.h>
#define PIPBOY_WINDOW_WIDTH (640)
#define PIPBOY_WINDOW_HEIGHT (480)

View File

@ -4,8 +4,6 @@
#include "message.h"
#include "obj_types.h"
#include <stdbool.h>
extern MessageListItem stru_49A990;
int _obj_sid(Object* object, int* sidPtr);

View File

@ -4,8 +4,6 @@
#include "db.h"
#include "obj_types.h"
#include <stdbool.h>
typedef enum EventType {
EVENT_TYPE_DRUG = 0,
EVENT_TYPE_KNOCKOUT = 1,

View File

@ -7,8 +7,6 @@
#include "message.h"
#include "obj_types.h"
#include <stdbool.h>
#define SCRIPT_LIST_EXTENT_SIZE 16
#define SCRIPT_FLAG_0x01 (0x01)

View File

@ -3,8 +3,6 @@
#include "config.h"
#include <stdbool.h>
#define SFALL_CONFIG_FILE_NAME "ddraw.ini"
#define SFALL_CONFIG_MISC_KEY "Misc"

View File

@ -7,8 +7,6 @@
#include "proto_types.h"
#include "skill_defs.h"
#include <stdbool.h>
#define SKILLS_MAX_USES_PER_DAY (3)
#define REPAIRABLE_DAMAGE_FLAGS_LENGTH (5)

View File

@ -5,8 +5,6 @@
#include "geometry.h"
#include "message.h"
#include <stdbool.h>
#define SKILLDEX_SKILL_BUTTON_BUFFER_COUNT (SKILLDEX_SKILL_COUNT * 2)
typedef enum SkilldexFrm {

View File

@ -1,7 +1,6 @@
#ifndef SOUND_DECODER_H
#define SOUND_DECODER_H
#include <stdbool.h>
#include <stddef.h>
#define SOUND_DECODER_IN_BUFFER_SIZE (512)

View File

@ -3,8 +3,6 @@
#include "cache.h"
#include <stdbool.h>
// The maximum number of sound effects that can be loaded and played
// simultaneously.
#define SOUND_EFFECTS_MAX_COUNT (4)

View File

@ -1,8 +1,6 @@
#ifndef SOUND_EFFECTS_LIST_H
#define SOUND_EFFECTS_LIST_H
#include <stdbool.h>
#define SFXL_OK (0)
#define SFXL_ERR (1)
#define SFXL_ERR_TAG_INVALID (2)

View File

@ -7,8 +7,6 @@
#include "proto_types.h"
#include "stat_defs.h"
#include <stdbool.h>
#define STAT_ERR_INVALID_STAT (-5)
// Provides metadata about stats.

View File

@ -1,8 +1,6 @@
#ifndef TEXT_FONT_H
#define TEXT_FONT_H
#include <stdbool.h>
// The maximum number of text fonts.
#define TEXT_FONT_MAX (10)

View File

@ -4,8 +4,6 @@
#include "geometry.h"
#include "obj_types.h"
#include <stdbool.h>
// The maximum number of text objects that can exist at the same time.
#define TEXT_OBJECTS_MAX_COUNT (20)

View File

@ -5,8 +5,6 @@
#include "map.h"
#include "obj_types.h"
#include <stdbool.h>
#define TILE_SET_CENTER_FLAG_0x01 0x01
#define TILE_SET_CENTER_FLAG_0x02 0x02

View File

@ -5,8 +5,6 @@
#include "message.h"
#include "trait_defs.h"
#include <stdbool.h>
// Provides metadata about traits.
typedef struct TraitDescription {
// The name of trait.

View File

@ -9,8 +9,6 @@
#define DIRECTSOUND_VERSION 0x0300
#include <dsound.h>
#include <stdbool.h>
typedef HRESULT(__stdcall DirectSoundCreateProc)(GUID*, LPDIRECTSOUND*, IUnknown*);
extern DirectSoundCreateProc* gDirectSoundCreateProc;

View File

@ -5,8 +5,6 @@
#include "interpreter.h"
#include "region.h"
#include <stdbool.h>
#define MANAGED_WINDOW_COUNT (16)
typedef void (*WINDOWDRAWINGPROC)(unsigned char* src, int src_pitch, int a3, int src_x, int src_y, int src_width, int src_height, int dest_x, int dest_y);

View File

@ -3,7 +3,6 @@
#include "geometry.h"
#include <stdbool.h>
#include <stddef.h>
#define WIN32_LEAN_AND_MEAN

View File

@ -1,8 +1,6 @@
#ifndef WINDOW_MANAGER_PRIVATE_H
#define WINDOW_MANAGER_PRIVATE_H
#include <stdbool.h>
typedef struct struc_177 struc_177;
typedef struct STRUCT_6B2340 {

View File

@ -8,8 +8,6 @@
#include "message.h"
#include "obj_types.h"
#include <stdbool.h>
#define CITY_NAME_SIZE (40)
#define TILE_WALK_MASK_NAME_SIZE (40)
#define ENTRANCE_LIST_CAPACITY (10)

View File

@ -3,7 +3,6 @@
#include "dfile.h"
#include <stdbool.h>
#include <stdio.h>
#include <zlib.h>