E char *FDECL(dowhatdoes_core,(CHAR_P, char *));
E int NDECL(dohelp);
E int NDECL(dohistory);
+E int FDECL(do_screen_description, (coord, BOOLEAN_P, int, char *, const char **));
E int FDECL(do_look, (int, coord *));
/* ### pcmain.c ### */
coord cc;
int sym = 0;
char tmpbuf[BUFSZ];
- char *firstmatch = NULL;
+ const char *firstmatch = NULL;
cc.x = cx;
cc.y = cy;
if (do_screen_description(cc, TRUE, sym, tmpbuf, &firstmatch)) {
boolean hit_trap;
const char *x_str;
static const char *mon_interior = "the interior of a monster";
- struct permonst *pm = NULL;
if (looked) {
- int oc, so;
+ int oc;
unsigned os;
glyph = glyph_at(cc.x,cc.y);
/* Convert the glyph at the selected position to a symbol. */
- so = mapglyph(glyph, &sym, &oc, &os, cc.x, cc.y);
+ (void) mapglyph(glyph, &sym, &oc, &os, cc.x, cc.y);
}
if (looked)
char monbuf[BUFSZ];
char temp_buf[BUFSZ];
- pm = lookat(cc.x, cc.y, look_buf, monbuf);
+ (void) lookat(cc.x, cc.y, look_buf, monbuf);
*firstmatch = look_buf;
if (*(*firstmatch)) {
Sprintf(temp_buf, " (%s)", *firstmatch);
coord cc; /* screen pos of unknown glyph */
boolean save_verbose; /* saved value of flags.verbose */
boolean from_screen; /* question from the screen */
- static const char *mon_interior = "the interior of a monster";
if (!clicklook) {
if (quick) {
out_str[0] = '\0';
if (from_screen || clicklook) {
- int oc, so;
- unsigned os;
if (from_screen) {
if (flags.verbose)
pline("Please move the cursor to %s.",