Go to the documentation of this file.
19 #if defined(WIN32) || defined(_WIN32) || defined(WIN64)
26 #include <sys/socket.h>
29 #ifdef HAVE_LIBDMALLOC
44 #define PRINTF_ARGS(x, y) __attribute__ ((format (printf, x, y)))
152 #define SPELL_MAPPINGS 206
160 #define ROTATE_RIGHT(c) if ((c)&01) (c) = ((c)>>1)+0x80000000; else (c) >>= 1;
162 #define SET_ANIMATION(ob, newanim) { ob->face = (ob->temp_animation ? ob->temp_animation : ob->animation)->faces[newanim]; }
163 #define GET_ANIMATION(ob, anim) ((ob->temp_animation ? ob->temp_animation : ob->animation)->faces[anim])
164 #define GET_ANIM(ob) (ob->temp_animation ? ob->temp_animation : ob->animation)
165 #define GET_ANIM_ID(ob) (ob->temp_animation ? ob->temp_animation->num : (ob->animation ? ob->animation->num : 0))
171 #define NUM_ANIMATIONS(ob) ((ob->temp_animation ? ob->temp_animation : ob->animation)->num_animations)
172 #define NUM_FACINGS(ob) ((ob->temp_animation ? ob->temp_animation : ob->animation)->facings)
193 #define FREE_AND_CLEAR(xyz) { free(xyz); xyz = NULL; }
198 #define FREE_AND_CLEAR_STR(xyz) { free_string(xyz); xyz = NULL; }
200 #define FREE_AND_CLEAR_STR_IF(xyz) { if (xyz) { free_string(xyz); xyz = NULL; } }
204 #define FREE_AND_COPY(sv, nv) { if (sv) free_string(sv); sv = add_string(nv); }
206 #define FREE_AND_COPY_IF(sv, nv) { if (sv) free_string(sv); sv = nv ? add_string(nv) : NULL; }
211 # define NAMLEN(dirent) strlen((dirent)->d_name)
213 # define dirent direct
214 # define NAMLEN(dirent) (dirent)->d_namlen
216 # include <sys/ndir.h>
219 # include <sys/dir.h>
230 #define PERM_EXP(exptotal) (exptotal * settings.permanent_exp_ratio / 100 )
231 #define MAX_TOTAL_EXPERIENCE (settings.permanent_exp_ratio ? (MAX_EXPERIENCE * 100 / settings.permanent_exp_ratio) : 0)
373 #define PROFILE_BEGIN(expr) { \
374 struct timespec _begin, _end; \
375 clock_gettime(CLOCK_MONOTONIC, &_begin); \
378 #define PROFILE_END(var, expr) \
379 clock_gettime(CLOCK_MONOTONIC, &_end); \
380 long var = timespec_diff(&_end, &_begin); \
388 #define SCRIPT_FIX_ACTIVATOR 2
389 #define SCRIPT_FIX_ALL 1
390 #define SCRIPT_FIX_NOTHING 0
uint8_t special_break_map
char meta_comment[MAX_BUF]
EXTERN long nrofallowedstr
EXTERN archetype * empty_archetype
char meta_server[MAX_BUF]
int allow_broken_converters
socket_struct * init_sockets
char * log_timestamp_format
uint8_t armor_speed_linear
uint8_t ignore_plugin_compatibility
uint8_t permanent_exp_ratio
EXTERN artifactlist * first_artifactlist
uint8_t starting_stat_min
class AssetsTracker * assets_tracker
EXTERN char first_map_path[MAX_BUF]
EXTERN mapstruct * first_map
EXTERN std::vector< region * > all_regions
int64_t pk_max_experience
const EXTERN char * undead_name
uint8_t spell_encumbrance
void add_hook(const char *name, collectorHook hook)
uint8_t balanced_stat_loss
int pk_max_experience_percent
uint8_t death_penalty_ratio
uint16_t set_friendly_fire
uint8_t account_block_create
void(* logHook)(LogLevel, const char *, va_list)
int armor_weight_reduction
EXTERN player * first_player
uint8_t stat_loss_on_death
std::vector< char * > disabled_plugins
struct linked_char * next
short freearr_y[SIZEOFFREE]
void(* collectorHook)(BufferReader *, const char *)
const char * hooks_filename[20]
EXTERN sstring blocks_prayer
uint8_t death_penalty_level
uint64_t spell_suppressions
const char *const spell_mapping[SPELL_MAPPINGS]
uint8_t spell_failure_effects
uint8_t starting_stat_points
short freearr_x[SIZEOFFREE]
int allow_denied_spells_writing
char who_wiz_format[MAX_BUF]
uint8_t spellpoint_level_depend
const typedef char * sstring
uint8_t personalized_blessings
uint8_t armor_weight_linear
uint32_t worldmaptilesizex
EXTERN char first_map_ext_path[MAX_BUF]
EXTERN long trying_emergency_save
uint32_t worldmaptilesizey
EXTERN long nrofartifacts
void(* fatalHook)(enum fatal_error err)
uint8_t no_player_stealing
char * account_trusted_host
uint8_t create_home_portals
int armor_speed_improvement
uint8_t starting_stat_max