fmt_ptr (trunk only)

fmt_ptr() is no longer dependant on WIZARD or MONITOR_HEAP,
so that it can be used in panic messages.
This commit is contained in:
nethack.allison
2006-07-02 18:43:35 +00:00
parent 13eeae9523
commit 3d164b6d02
6 changed files with 23 additions and 28 deletions

View File

@@ -190,11 +190,21 @@
#endif /* NHSTDC */
#ifndef genericptr_t
typedef genericptr genericptr_t; /* (void *) or (char *) */
#endif
#if defined(MICRO) || defined(WIN32)
/* we actually want to know which systems have an ANSI run-time library
* to know which support the new %p format for printing pointers.
* due to the presence of things like gcc, NHSTDC is not a good test.
* so we assume microcomputers have all converted to ANSI and bigger
* computers which may have older libraries give reasonable results with
* the cast.
*/
# define HAS_PTR_FMT
#endif
#define FMT_PTR_BUFSIZ 20 /* buffer size for ptr address as text */
/*
* According to ANSI, prototypes for old-style declarations must widen the