* in that environment.
*/
#if defined(WIN_CE)
-#define CFDECLSPEC __cdecl
+#define QSORTCALLBACK __cdecl
#else
-#define CFDECLSPEC
+#define QSORTCALLBACK
#endif
#define DEVTEAM_EMAIL "devteam@nethack.org"
static char *anything_to_s(char *, anything *, int);
static int percentage(struct istat_s *, struct istat_s *);
static int exp_percentage(void);
-static int CFDECLSPEC cond_cmp(const genericptr, const genericptr);
-static int CFDECLSPEC menualpha_cmp(const genericptr, const genericptr);
+static int QSORTCALLBACK cond_cmp(const genericptr, const genericptr);
+static int QSORTCALLBACK menualpha_cmp(const genericptr, const genericptr);
#ifdef STATUS_HILITES
static void s_to_anything(anything *, char *, int);
}
/* qsort callback routine for sorting the condition index */
-static int CFDECLSPEC
+static int QSORTCALLBACK
cond_cmp(const genericptr vptr1, const genericptr vptr2)
{
int indx1 = *(int *) vptr1, indx2 = *(int *) vptr2,
}
/* qsort callback routine for alphabetical sorting of index */
-static int CFDECLSPEC
+static int QSORTCALLBACK
menualpha_cmp(const genericptr vptr1, const genericptr vptr2)
{
int indx1 = *(int *) vptr1, indx2 = *(int *) vptr2;
static char *nextmbuf(void);
static void getpos_help_keyxhelp(winid, const char *, const char *, int);
static void getpos_help(boolean, const char *);
-static int CFDECLSPEC cmp_coord_distu(const void *, const void *);
+static int cmp_coord_distu(const void *, const void *);
static int gloc_filter_classify_glyph(int);
static int gloc_filter_floodfill_matcharea(int, int);
static void gloc_filter_floodfill(int, int);
static NHFILE *new_nhfile(void);
static void free_nhfile(NHFILE *);
#ifdef SELECTSAVED
-static int CFDECLSPEC strcmp_wrap(const void *, const void *);
+static int QSORTCALLBACK strcmp_wrap(const void *, const void *);
#endif
static char *set_bonesfile_name(char *, d_level *);
static char *set_bonestemp_name(void);
#if defined(SELECTSAVED)
/* qsort comparison routine */
-static int CFDECLSPEC
+static int QSORTCALLBACK
strcmp_wrap(const void *p, const void *q)
{
#if defined(UNIX) && defined(QT_GRAPHICS)
static void weapon_insight(int);
static void attributes_enlightenment(int, int);
static void show_achievements(int);
-static int CFDECLSPEC vanqsort_cmp(const genericptr, const genericptr);
+static int QSORTCALLBACK vanqsort_cmp(const genericptr, const genericptr);
static int set_vanq_order(void);
static int num_extinct(void);
"by count, low to high, by internal index within tied count",
};
-static int CFDECLSPEC
+static int QSORTCALLBACK
vanqsort_cmp(const genericptr vptr1, const genericptr vptr2)
{
int indx1 = *(short *) vptr1, indx2 = *(short *) vptr2,
static char *loot_xname(struct obj *);
static int invletter_value(char);
-static int CFDECLSPEC sortloot_cmp(const genericptr, const genericptr);
+static int QSORTCALLBACK sortloot_cmp(const genericptr, const genericptr);
static void reorder_invent(void);
static struct obj *addinv_core0(struct obj *, struct obj *, boolean);
static void noarmor(boolean);
}
/* qsort comparison routine for sortloot() */
-static int CFDECLSPEC
+static int QSORTCALLBACK
sortloot_cmp(const genericptr vptr1, const genericptr vptr2)
{
struct sortloot_item *sli1 = (struct sortloot_item *) vptr1,
static boolean place_niche(struct mkroom *, int *, int *, int *);
static void makeniche(int);
static void make_niches(void);
-static int CFDECLSPEC do_comp(const genericptr, const genericptr);
+static int QSORTCALLBACK do_comp(const genericptr, const genericptr);
static void dosdoor(xchar, xchar, struct mkroom *, int);
static void join(int, int, boolean);
static void do_room_or_subroom(struct mkroom *, int, int, int, int, boolean,
/* Args must be (const genericptr) so that qsort will always be happy. */
-static int CFDECLSPEC
+static int QSORTCALLBACK
do_comp(const genericptr vx, const genericptr vy)
{
#ifdef LINT
static void shuffle(int, int, boolean);
static void shuffle_all(void);
static boolean interesting_to_discover(int);
-static int CFDECLSPEC discovered_cmp(const genericptr, const genericptr);
+static int QSORTCALLBACK discovered_cmp(const genericptr, const genericptr);
static char *oclass_to_name(char, char *);
#ifdef USE_TILES
};
/* discoveries qsort comparison function */
-static int CFDECLSPEC
+static int QSORTCALLBACK
discovered_cmp(const genericptr v1, const genericptr v2)
{
const char *s1 = *(const char **) v1;
static int learn(void);
static boolean rejectcasting(void);
static boolean getspell(int *);
-static int CFDECLSPEC spell_cmp(const genericptr, const genericptr);
+static int QSORTCALLBACK spell_cmp(const genericptr, const genericptr);
static void sortspells(void);
static boolean spellsortmenu(void);
static boolean dospellmenu(const char *, int, int *);
};
/* qsort callback routine */
-static int CFDECLSPEC
+static int QSORTCALLBACK
spell_cmp(const genericptr vptr1, const genericptr vptr2)
{
/*