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)
372 #define PROFILE_BEGIN(expr) { \
373 struct timespec _begin, _end; \
374 clock_gettime(CLOCK_MONOTONIC, &_begin); \
377 #define PROFILE_END(var, expr) \
378 clock_gettime(CLOCK_MONOTONIC, &_end); \
379 long var = timespec_diff(&_end, &_begin); \
387 #define SCRIPT_FIX_ACTIVATOR 2
388 #define SCRIPT_FIX_ALL 1
389 #define SCRIPT_FIX_NOTHING 0
EXTERN long nrofallowedstr
EXTERN archetype * empty_archetype
uint8_t death_penalty_ratio
char * log_timestamp_format
char * account_trusted_host
socket_struct * init_sockets
int armor_weight_reduction
uint8_t starting_stat_max
uint32_t worldmaptilesizex
uint8_t spell_failure_effects
EXTERN artifactlist * first_artifactlist
uint8_t spell_encumbrance
uint8_t ignore_plugin_compatibility
EXTERN char first_map_path[MAX_BUF]
EXTERN mapstruct * first_map
EXTERN std::vector< region * > all_regions
Plugin animator file specs[Config] name
int allow_denied_spells_writing
const EXTERN char * undead_name
uint8_t special_break_map
uint16_t set_friendly_fire
const char * hooks_filename[20]
char meta_comment[MAX_BUF]
void(* logHook)(LogLevel, const char *, va_list)
int armor_speed_improvement
uint64_t spell_suppressions
void add_hook(const char *name, collectorHook hook)
EXTERN player * first_player
struct linked_char * next
short freearr_y[SIZEOFFREE]
void(* collectorHook)(BufferReader *, const char *)
int allow_broken_converters
class AssetsTracker * assets_tracker
uint32_t worldmaptilesizey
uint8_t account_block_create
uint8_t armor_weight_linear
EXTERN sstring blocks_prayer
uint8_t personalized_blessings
const char *const spell_mapping[SPELL_MAPPINGS]
std::vector< char * > disabled_plugins
short freearr_x[SIZEOFFREE]
uint8_t armor_speed_linear
uint8_t starting_stat_min
uint8_t create_home_portals
const typedef char * sstring
uint8_t stat_loss_on_death
uint8_t spellpoint_level_depend
char meta_server[MAX_BUF]
uint8_t balanced_stat_loss
int pk_max_experience_percent
EXTERN char first_map_ext_path[MAX_BUF]
EXTERN long trying_emergency_save
EXTERN long nrofartifacts
uint8_t no_player_stealing
void(* fatalHook)(enum fatal_error err)
int64_t pk_max_experience
uint8_t permanent_exp_ratio
uint8_t death_penalty_level
char who_wiz_format[MAX_BUF]
uint8_t starting_stat_points