# HG changeset patch # User Matti Hamalainen # Date 1670507796 -7200 # Node ID ef6c826c5b7a10a3afb6048e32a1ab11af0c1f08 # Parent 9f26a93d7e7000b6ca720dc0d03128cef897a4d1 Cosmetics. diff -r 9f26a93d7e70 -r ef6c826c5b7a src/dmlib.h --- a/src/dmlib.h Thu Dec 08 14:25:08 2022 +0200 +++ b/src/dmlib.h Thu Dec 08 15:56:36 2022 +0200 @@ -138,8 +138,8 @@ #endif // Defaults -#define DM_PROG_AUTHOR "By Matti 'ccr' Hamalainen (C) Copyright 2002-2022 TNSP" -#define DM_PROG_LICENSE "This program is distributed under a 3-clause BSD -style license." +#define DM_PROG_AUTHOR "By Matti 'ccr' Hamalainen (C) Copyright 2002-2022 TNSP" +#define DM_PROG_LICENSE "This program is distributed under a 3-clause BSD -style license." /* Error codes @@ -147,7 +147,7 @@ enum { // General error codes DMERR_OK = 0, - DMERR_PROGRESS, // Status OK, but operation in progress + DMERR_PROGRESS, // Status OK, but operation in progress DMERR_INTERNAL, @@ -155,23 +155,23 @@ DMERR_FREAD, DMERR_FWRITE, DMERR_FSEEK, - DMERR_NOT_FOUND, // Resource/data not found + DMERR_NOT_FOUND, // Resource/data not found - DMERR_INVALID_DATA, // Some data was invalid - DMERR_MALLOC, // Memory allocation failure - DMERR_ALREADY_INIT, // Resource has already been initialized - DMERR_INIT_FAIL, // General initialization failure + DMERR_INVALID_DATA, // Some data was invalid + DMERR_MALLOC, // Memory allocation failure + DMERR_ALREADY_INIT, // Resource has already been initialized + DMERR_INIT_FAIL, // General initialization failure DMERR_INVALID_ARGS, - DMERR_NULLPTR, // NULL pointer specified in critical argument - DMERR_NOT_SUPPORTED,// Operation not supported + DMERR_NULLPTR, // NULL pointer specified in critical argument + DMERR_NOT_SUPPORTED, // Operation not supported DMERR_OUT_OF_DATA, DMERR_EXTRA_DATA, DMERR_BOUNDS, - DMERR_DATA_ERROR, // Data decoding/encoding/parsing error + DMERR_DATA_ERROR, // Data decoding/encoding/parsing error - DMERR_VERSION, // Unsupported data version + DMERR_VERSION, // Unsupported data version // PACK-file subsystem DMERR_NOTPACK, @@ -182,12 +182,12 @@ // Directory/path separator stuff -#define DM_DIR_SEPARATOR '/' +#define DM_DIR_SEPARATOR '/' // Resource management defines -#define DMRES_NAME_LEN 32 -#define DMRES_RES_FILE "res.txt" // Resource data file +#define DMRES_NAME_LEN 32 +#define DMRES_RES_FILE "res.txt" // Resource data file /* Define a boolean type @@ -207,9 +207,9 @@ /* Math constants */ -#define DM_PI 3.14159265358f -#define DM_PI2 6.28318530718f -#define DM_E 2.71828182846f +#define DM_PI 3.14159265358f +#define DM_PI2 6.28318530718f +#define DM_E 2.71828182846f /* Fixed point math types