Source:NetHack 3.6.0/include/extern.h

From NetHackWiki
(Redirected from Source:Extern.h)
Jump to: navigation, search

Below is the full text to extern.h from the source code of NetHack 3.6.0. To link to a particular line, write [[Source:NetHack 3.6.0/include/extern.h#line123]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

  1.  /* NetHack 3.6	extern.h	$NHDT-Date: 1449051498 2015/12/02 10:18:18 $  $NHDT-Branch: master $:$NHDT-Revision: 1.520 $ */
  2.  /* Copyright (c) Steve Creps, 1988.				  */
  3.  /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5.  #ifndef EXTERN_H
  6.  #define EXTERN_H
  7.  
  8.  #define E extern
  9.  
  10.  /* ### alloc.c ### */
  11.  
  12.  #if 0
  13.  E long *FDECL(alloc, (unsigned int));
  14.  #endif
  15.  E char *FDECL(fmt_ptr, (const genericptr));
  16.  
  17.  /* This next pre-processor directive covers almost the entire file,
  18.   * interrupted only occasionally to pick up specific functions as needed. */
  19.  #if !defined(MAKEDEFS_C) && !defined(LEV_LEX_C)
  20.  
  21.  /* ### allmain.c ### */
  22.  
  23.  E void FDECL(moveloop, (BOOLEAN_P));
  24.  E void NDECL(stop_occupation);
  25.  E void NDECL(display_gamewindows);
  26.  E void NDECL(newgame);
  27.  E void FDECL(welcome, (BOOLEAN_P));
  28.  E time_t NDECL(get_realtime);
  29.  
  30.  /* ### apply.c ### */
  31.  
  32.  E int NDECL(doapply);
  33.  E int NDECL(dorub);
  34.  E int NDECL(dojump);
  35.  E int FDECL(jump, (int));
  36.  E int NDECL(number_leashed);
  37.  E void FDECL(o_unleash, (struct obj *));
  38.  E void FDECL(m_unleash, (struct monst *, BOOLEAN_P));
  39.  E void NDECL(unleash_all);
  40.  E boolean NDECL(next_to_u);
  41.  E struct obj *FDECL(get_mleash, (struct monst *));
  42.  E const char *NDECL(beautiful);
  43.  E void FDECL(check_leash, (XCHAR_P, XCHAR_P));
  44.  E boolean FDECL(um_dist, (XCHAR_P, XCHAR_P, XCHAR_P));
  45.  E boolean FDECL(snuff_candle, (struct obj *));
  46.  E boolean FDECL(snuff_lit, (struct obj *));
  47.  E boolean FDECL(catch_lit, (struct obj *));
  48.  E void FDECL(use_unicorn_horn, (struct obj *));
  49.  E boolean FDECL(tinnable, (struct obj *));
  50.  E void NDECL(reset_trapset);
  51.  E void FDECL(fig_transform, (ANY_P *, long));
  52.  E int FDECL(unfixable_trouble_count, (BOOLEAN_P));
  53.  
  54.  /* ### artifact.c ### */
  55.  
  56.  E void NDECL(init_artifacts);
  57.  E void FDECL(save_artifacts, (int));
  58.  E void FDECL(restore_artifacts, (int));
  59.  E const char *FDECL(artiname, (int));
  60.  E struct obj *FDECL(mk_artifact, (struct obj *, ALIGNTYP_P));
  61.  E const char *FDECL(artifact_name, (const char *, short *));
  62.  E boolean FDECL(exist_artifact, (int, const char *));
  63.  E void FDECL(artifact_exists, (struct obj *, const char *, BOOLEAN_P));
  64.  E int NDECL(nartifact_exist);
  65.  E boolean FDECL(arti_immune, (struct obj *, int));
  66.  E boolean FDECL(spec_ability, (struct obj *, unsigned long));
  67.  E boolean FDECL(confers_luck, (struct obj *));
  68.  E boolean FDECL(arti_reflects, (struct obj *));
  69.  E boolean FDECL(shade_glare, (struct obj *));
  70.  E boolean FDECL(restrict_name, (struct obj *, const char *));
  71.  E boolean FDECL(defends, (int, struct obj *));
  72.  E boolean FDECL(defends_when_carried, (int, struct obj *));
  73.  E boolean FDECL(protects, (struct obj *, BOOLEAN_P));
  74.  E void FDECL(set_artifact_intrinsic, (struct obj *, BOOLEAN_P, long));
  75.  E int FDECL(touch_artifact, (struct obj *, struct monst *));
  76.  E int FDECL(spec_abon, (struct obj *, struct monst *));
  77.  E int FDECL(spec_dbon, (struct obj *, struct monst *, int));
  78.  E void FDECL(discover_artifact, (XCHAR_P));
  79.  E boolean FDECL(undiscovered_artifact, (XCHAR_P));
  80.  E int FDECL(disp_artifact_discoveries, (winid));
  81.  E boolean FDECL(artifact_hit,
  82.                  (struct monst *, struct monst *, struct obj *, int *, int));
  83.  E int NDECL(doinvoke);
  84.  E boolean FDECL(finesse_ahriman, (struct obj *));
  85.  E void FDECL(arti_speak, (struct obj *));
  86.  E boolean FDECL(artifact_light, (struct obj *));
  87.  E long FDECL(spec_m2, (struct obj *));
  88.  E boolean FDECL(artifact_has_invprop, (struct obj *, UCHAR_P));
  89.  E long FDECL(arti_cost, (struct obj *));
  90.  E struct obj *FDECL(what_gives, (long *));
  91.  E const char *FDECL(glow_color, (int));
  92.  E void FDECL(Sting_effects, (int));
  93.  E int FDECL(retouch_object, (struct obj **, BOOLEAN_P));
  94.  E void FDECL(retouch_equipment, (int));
  95.  
  96.  /* ### attrib.c ### */
  97.  
  98.  E boolean FDECL(adjattrib, (int, int, int));
  99.  E void FDECL(gainstr, (struct obj *, int, BOOLEAN_P));
  100.  E void FDECL(losestr, (int));
  101.  E void FDECL(poisontell, (int, BOOLEAN_P));
  102.  E void FDECL(poisoned, (const char *, int, const char *, int, BOOLEAN_P));
  103.  E void FDECL(change_luck, (SCHAR_P));
  104.  E int FDECL(stone_luck, (BOOLEAN_P));
  105.  E void NDECL(set_moreluck);
  106.  E void NDECL(restore_attrib);
  107.  E void FDECL(exercise, (int, BOOLEAN_P));
  108.  E void NDECL(exerchk);
  109.  E void FDECL(init_attr, (int));
  110.  E void NDECL(redist_attr);
  111.  E void FDECL(adjabil, (int, int));
  112.  E int NDECL(newhp);
  113.  E schar FDECL(acurr, (int));
  114.  E schar NDECL(acurrstr);
  115.  E boolean FDECL(extremeattr, (int));
  116.  E void FDECL(adjalign, (int));
  117.  E int FDECL(is_innate, (int));
  118.  E char *FDECL(from_what, (int));
  119.  E void FDECL(uchangealign, (int, int));
  120.  
  121.  /* ### ball.c ### */
  122.  
  123.  E void FDECL(ballrelease, (BOOLEAN_P));
  124.  E void NDECL(ballfall);
  125.  E void NDECL(placebc);
  126.  E void NDECL(unplacebc);
  127.  E void FDECL(set_bc, (int));
  128.  E void FDECL(move_bc, (int, int, XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P));
  129.  E boolean FDECL(drag_ball, (XCHAR_P, XCHAR_P, int *, xchar *, xchar *,
  130.                              xchar *, xchar *, boolean *, BOOLEAN_P));
  131.  E void FDECL(drop_ball, (XCHAR_P, XCHAR_P));
  132.  E void NDECL(drag_down);
  133.  
  134.  /* ### bones.c ### */
  135.  
  136.  E void FDECL(sanitize_name, (char *));
  137.  E void FDECL(drop_upon_death, (struct monst *, struct obj *, int, int));
  138.  E boolean NDECL(can_make_bones);
  139.  E void FDECL(savebones, (int, time_t, struct obj *));
  140.  E int NDECL(getbones);
  141.  
  142.  /* ### botl.c ### */
  143.  
  144.  E int FDECL(xlev_to_rank, (int));
  145.  E int FDECL(title_to_mon, (const char *, int *, int *));
  146.  E void NDECL(max_rank_sz);
  147.  #ifdef SCORE_ON_BOTL
  148.  E long NDECL(botl_score);
  149.  #endif
  150.  E int FDECL(describe_level, (char *));
  151.  E const char *FDECL(rank_of, (int, SHORT_P, BOOLEAN_P));
  152.  E void NDECL(bot);
  153.  #ifdef STATUS_VIA_WINDOWPORT
  154.  E void FDECL(status_initialize, (BOOLEAN_P));
  155.  E void NDECL(status_finish);
  156.  E void FDECL(status_notify_windowport, (BOOLEAN_P));
  157.  #ifdef STATUS_HILITES
  158.  E boolean FDECL(set_status_hilites, (char *op, BOOLEAN_P));
  159.  E void FDECL(clear_status_hilites, (BOOLEAN_P));
  160.  E char *FDECL(get_status_hilites, (char *, int));
  161.  E boolean NDECL(status_hilite_menu);
  162.  #endif
  163.  #endif
  164.  
  165.  /* ### cmd.c ### */
  166.  
  167.  E boolean FDECL(redraw_cmd, (CHAR_P));
  168.  #ifdef USE_TRAMPOLI
  169.  E int NDECL(doextcmd);
  170.  E int NDECL(domonability);
  171.  E int NDECL(doprev_message);
  172.  E int NDECL(timed_occupation);
  173.  E int NDECL(doattributes);
  174.  E int NDECL(wiz_detect);
  175.  E int NDECL(wiz_genesis);
  176.  E int NDECL(wiz_identify);
  177.  E int NDECL(wiz_level_tele);
  178.  E int NDECL(wiz_map);
  179.  E int NDECL(wiz_where);
  180.  E int NDECL(wiz_wish);
  181.  #endif /* USE_TRAMPOLI */
  182.  E void NDECL(reset_occupations);
  183.  E void FDECL(set_occupation, (int (*)(void), const char *, int));
  184.  E char NDECL(pgetchar);
  185.  E void FDECL(pushch, (CHAR_P));
  186.  E void FDECL(savech, (CHAR_P));
  187.  E void NDECL(add_debug_extended_commands);
  188.  E void FDECL(reset_commands, (BOOLEAN_P));
  189.  E void FDECL(rhack, (char *));
  190.  E int NDECL(doextlist);
  191.  E int NDECL(extcmd_via_menu);
  192.  E int NDECL(enter_explore_mode);
  193.  E void FDECL(enlightenment, (int, int));
  194.  E void FDECL(youhiding, (BOOLEAN_P, int));
  195.  E void FDECL(show_conduct, (int));
  196.  E int FDECL(xytod, (SCHAR_P, SCHAR_P));
  197.  E void FDECL(dtoxy, (coord *, int));
  198.  E int FDECL(movecmd, (CHAR_P));
  199.  E int NDECL(dxdy_moveok);
  200.  E int FDECL(getdir, (const char *));
  201.  E void NDECL(confdir);
  202.  E const char *FDECL(directionname, (int));
  203.  E int FDECL(isok, (int, int));
  204.  E int FDECL(get_adjacent_loc,
  205.              (const char *, const char *, XCHAR_P, XCHAR_P, coord *));
  206.  E const char *FDECL(click_to_cmd, (int, int, int));
  207.  #ifdef HANGUPHANDLING
  208.  E void FDECL(hangup, (int));
  209.  E void NDECL(end_of_input);
  210.  #endif
  211.  E char NDECL(readchar);
  212.  E void NDECL(sanity_check);
  213.  E char FDECL(yn_function, (const char *, const char *, CHAR_P));
  214.  E boolean FDECL(paranoid_query, (BOOLEAN_P, const char *));
  215.  
  216.  /* ### dbridge.c ### */
  217.  
  218.  E boolean FDECL(is_pool, (int, int));
  219.  E boolean FDECL(is_lava, (int, int));
  220.  E boolean FDECL(is_pool_or_lava, (int, int));
  221.  E boolean FDECL(is_ice, (int, int));
  222.  E boolean FDECL(is_moat, (int, int));
  223.  E schar FDECL(db_under_typ, (int));
  224.  E int FDECL(is_drawbridge_wall, (int, int));
  225.  E boolean FDECL(is_db_wall, (int, int));
  226.  E boolean FDECL(find_drawbridge, (int *, int *));
  227.  E boolean FDECL(create_drawbridge, (int, int, int, BOOLEAN_P));
  228.  E void FDECL(open_drawbridge, (int, int));
  229.  E void FDECL(close_drawbridge, (int, int));
  230.  E void FDECL(destroy_drawbridge, (int, int));
  231.  
  232.  /* ### decl.c ### */
  233.  
  234.  E void NDECL(decl_init);
  235.  
  236.  /* ### detect.c ### */
  237.  
  238.  E struct obj *FDECL(o_in, (struct obj *, CHAR_P));
  239.  E struct obj *FDECL(o_material, (struct obj *, unsigned));
  240.  E int FDECL(gold_detect, (struct obj *));
  241.  E int FDECL(food_detect, (struct obj *));
  242.  E int FDECL(object_detect, (struct obj *, int));
  243.  E int FDECL(monster_detect, (struct obj *, int));
  244.  E int FDECL(trap_detect, (struct obj *));
  245.  E const char *FDECL(level_distance, (d_level *));
  246.  E void FDECL(use_crystal_ball, (struct obj **));
  247.  E void NDECL(do_mapping);
  248.  E void NDECL(do_vicinity_map);
  249.  E void FDECL(cvt_sdoor_to_door, (struct rm *));
  250.  #ifdef USE_TRAMPOLI
  251.  E void FDECL(findone, (int, int, genericptr_t));
  252.  E void FDECL(openone, (int, int, genericptr_t));
  253.  #endif
  254.  E int NDECL(findit);
  255.  E int NDECL(openit);
  256.  E boolean FDECL(detecting, (void (*)(int, int, genericptr)));
  257.  E void FDECL(find_trap, (struct trap *));
  258.  E int FDECL(dosearch0, (int));
  259.  E int NDECL(dosearch);
  260.  E void NDECL(sokoban_detect);
  261.  E void FDECL(reveal_terrain, (int, int));
  262.  
  263.  /* ### dig.c ### */
  264.  
  265.  E int FDECL(dig_typ, (struct obj *, XCHAR_P, XCHAR_P));
  266.  E boolean NDECL(is_digging);
  267.  #ifdef USE_TRAMPOLI
  268.  E int NDECL(dig);
  269.  #endif
  270.  E int NDECL(holetime);
  271.  E boolean FDECL(dig_check, (struct monst *, BOOLEAN_P, int, int));
  272.  E void FDECL(digactualhole, (int, int, struct monst *, int));
  273.  E boolean FDECL(dighole, (BOOLEAN_P, BOOLEAN_P, coord *));
  274.  E int FDECL(use_pick_axe, (struct obj *));
  275.  E int FDECL(use_pick_axe2, (struct obj *));
  276.  E boolean FDECL(mdig_tunnel, (struct monst *));
  277.  E void FDECL(draft_message, (BOOLEAN_P));
  278.  E void FDECL(watch_dig, (struct monst *, XCHAR_P, XCHAR_P, BOOLEAN_P));
  279.  E void NDECL(zap_dig);
  280.  E struct obj *FDECL(bury_an_obj, (struct obj *, boolean *));
  281.  E void FDECL(bury_objs, (int, int));
  282.  E void FDECL(unearth_objs, (int, int));
  283.  E void FDECL(rot_organic, (ANY_P *, long));
  284.  E void FDECL(rot_corpse, (ANY_P *, long));
  285.  E struct obj *FDECL(buried_ball, (coord *));
  286.  E void NDECL(buried_ball_to_punishment);
  287.  E void NDECL(buried_ball_to_freedom);
  288.  E schar FDECL(fillholetyp, (int, int, BOOLEAN_P));
  289.  E void FDECL(liquid_flow,
  290.               (XCHAR_P, XCHAR_P, SCHAR_P, struct trap *, const char *));
  291.  E boolean FDECL(conjoined_pits, (struct trap *, struct trap *, BOOLEAN_P));
  292.  #if 0
  293.  E void FDECL(bury_monst, (struct monst *));
  294.  E void NDECL(bury_you);
  295.  E void NDECL(unearth_you);
  296.  E void NDECL(escape_tomb);
  297.  E void FDECL(bury_obj, (struct obj *));
  298.  #endif
  299.  
  300.  /* ### display.c ### */
  301.  
  302.  E void FDECL(magic_map_background, (XCHAR_P, XCHAR_P, int));
  303.  E void FDECL(map_background, (XCHAR_P, XCHAR_P, int));
  304.  E void FDECL(map_trap, (struct trap *, int));
  305.  E void FDECL(map_object, (struct obj *, int));
  306.  E void FDECL(map_invisible, (XCHAR_P, XCHAR_P));
  307.  E void FDECL(unmap_object, (int, int));
  308.  E void FDECL(map_location, (int, int, int));
  309.  E void FDECL(feel_newsym, (XCHAR_P, XCHAR_P));
  310.  E void FDECL(feel_location, (XCHAR_P, XCHAR_P));
  311.  E void FDECL(newsym, (int, int));
  312.  E void FDECL(shieldeff, (XCHAR_P, XCHAR_P));
  313.  E void FDECL(tmp_at, (int, int));
  314.  E void FDECL(swallowed, (int));
  315.  E void FDECL(under_ground, (int));
  316.  E void FDECL(under_water, (int));
  317.  E void NDECL(see_monsters);
  318.  E void NDECL(set_mimic_blocking);
  319.  E void NDECL(see_objects);
  320.  E void NDECL(see_traps);
  321.  E void NDECL(curs_on_u);
  322.  E int NDECL(doredraw);
  323.  E void NDECL(docrt);
  324.  E void FDECL(show_glyph, (int, int, int));
  325.  E void NDECL(clear_glyph_buffer);
  326.  E void FDECL(row_refresh, (int, int, int));
  327.  E void NDECL(cls);
  328.  E void FDECL(flush_screen, (int));
  329.  E int FDECL(back_to_glyph, (XCHAR_P, XCHAR_P));
  330.  E int FDECL(zapdir_to_glyph, (int, int, int));
  331.  E int FDECL(glyph_at, (XCHAR_P, XCHAR_P));
  332.  E void NDECL(set_wall_state);
  333.  E void FDECL(unset_seenv, (struct rm *, int, int, int, int));
  334.  
  335.  /* ### do.c ### */
  336.  
  337.  #ifdef USE_TRAMPOLI
  338.  E int FDECL(drop, (struct obj *));
  339.  E int NDECL(wipeoff);
  340.  #endif
  341.  E int NDECL(dodrop);
  342.  E boolean FDECL(boulder_hits_pool, (struct obj *, int, int, BOOLEAN_P));
  343.  E boolean FDECL(flooreffects, (struct obj *, int, int, const char *));
  344.  E void FDECL(doaltarobj, (struct obj *));
  345.  E boolean FDECL(canletgo, (struct obj *, const char *));
  346.  E void FDECL(dropx, (struct obj *));
  347.  E void FDECL(dropy, (struct obj *));
  348.  E void FDECL(dropz, (struct obj *, BOOLEAN_P));
  349.  E void FDECL(obj_no_longer_held, (struct obj *));
  350.  E int NDECL(doddrop);
  351.  E int NDECL(dodown);
  352.  E int NDECL(doup);
  353.  #ifdef INSURANCE
  354.  E void NDECL(save_currentstate);
  355.  #endif
  356.  E void FDECL(goto_level, (d_level *, BOOLEAN_P, BOOLEAN_P, BOOLEAN_P));
  357.  E void FDECL(schedule_goto, (d_level *, BOOLEAN_P, BOOLEAN_P, int,
  358.                               const char *, const char *));
  359.  E void NDECL(deferred_goto);
  360.  E boolean FDECL(revive_corpse, (struct obj *));
  361.  E void FDECL(revive_mon, (ANY_P *, long));
  362.  E int NDECL(donull);
  363.  E int NDECL(dowipe);
  364.  E void FDECL(set_wounded_legs, (long, int));
  365.  E void NDECL(heal_legs);
  366.  
  367.  /* ### do_name.c ### */
  368.  
  369.  E int FDECL(getpos, (coord *, BOOLEAN_P, const char *));
  370.  E void FDECL(getpos_sethilite, (void (*f)(int)));
  371.  E void FDECL(new_mname, (struct monst *, int));
  372.  E void FDECL(free_mname, (struct monst *));
  373.  E void FDECL(new_oname, (struct obj *, int));
  374.  E void FDECL(free_oname, (struct obj *));
  375.  E const char *FDECL(safe_oname, (struct obj *));
  376.  E struct monst *FDECL(christen_monst, (struct monst *, const char *));
  377.  E struct obj *FDECL(oname, (struct obj *, const char *));
  378.  E boolean FDECL(objtyp_is_callable, (int));
  379.  E int NDECL(docallcmd);
  380.  E void FDECL(docall, (struct obj *));
  381.  E const char *NDECL(rndghostname);
  382.  E char *FDECL(x_monnam, (struct monst *, int, const char *, int, BOOLEAN_P));
  383.  E char *FDECL(l_monnam, (struct monst *));
  384.  E char *FDECL(mon_nam, (struct monst *));
  385.  E char *FDECL(noit_mon_nam, (struct monst *));
  386.  E char *FDECL(Monnam, (struct monst *));
  387.  E char *FDECL(noit_Monnam, (struct monst *));
  388.  E char *FDECL(m_monnam, (struct monst *));
  389.  E char *FDECL(y_monnam, (struct monst *));
  390.  E char *FDECL(Adjmonnam, (struct monst *, const char *));
  391.  E char *FDECL(Amonnam, (struct monst *));
  392.  E char *FDECL(a_monnam, (struct monst *));
  393.  E char *FDECL(distant_monnam, (struct monst *, int, char *));
  394.  E char *FDECL(rndmonnam, (char *));
  395.  E const char *FDECL(hcolor, (const char *));
  396.  E const char *NDECL(rndcolor);
  397.  E const char *NDECL(roguename);
  398.  E struct obj *FDECL(realloc_obj,
  399.                      (struct obj *, int, genericptr_t, int, const char *));
  400.  E char *FDECL(coyotename, (struct monst *, char *));
  401.  E const char *FDECL(noveltitle, (int *));
  402.  E const char *FDECL(lookup_novel, (const char *, int *));
  403.  
  404.  /* ### do_wear.c ### */
  405.  
  406.  #ifdef USE_TRAMPOLI
  407.  E int NDECL(Armor_on);
  408.  E int NDECL(Boots_on);
  409.  E int NDECL(Gloves_on);
  410.  E int NDECL(Helmet_on);
  411.  E int FDECL(select_off, (struct obj *));
  412.  E int NDECL(take_off);
  413.  #endif
  414.  E void FDECL(off_msg, (struct obj *));
  415.  E void FDECL(set_wear, (struct obj *));
  416.  E boolean FDECL(donning, (struct obj *));
  417.  E boolean FDECL(doffing, (struct obj *));
  418.  E void NDECL(cancel_don);
  419.  E int FDECL(stop_donning, (struct obj *));
  420.  E int NDECL(Armor_off);
  421.  E int NDECL(Armor_gone);
  422.  E int NDECL(Helmet_off);
  423.  E int NDECL(Gloves_off);
  424.  E int NDECL(Boots_off);
  425.  E int NDECL(Cloak_off);
  426.  E int NDECL(Shield_off);
  427.  E int NDECL(Shirt_off);
  428.  E void NDECL(Amulet_off);
  429.  E void FDECL(Ring_on, (struct obj *));
  430.  E void FDECL(Ring_off, (struct obj *));
  431.  E void FDECL(Ring_gone, (struct obj *));
  432.  E void FDECL(Blindf_on, (struct obj *));
  433.  E void FDECL(Blindf_off, (struct obj *));
  434.  E int NDECL(dotakeoff);
  435.  E int NDECL(doremring);
  436.  E int FDECL(cursed, (struct obj *));
  437.  E int FDECL(armoroff, (struct obj *));
  438.  E int FDECL(canwearobj, (struct obj *, long *, BOOLEAN_P));
  439.  E int NDECL(dowear);
  440.  E int NDECL(doputon);
  441.  E void NDECL(find_ac);
  442.  E void NDECL(glibr);
  443.  E struct obj *FDECL(some_armor, (struct monst *));
  444.  E struct obj *FDECL(stuck_ring, (struct obj *, int));
  445.  E struct obj *NDECL(unchanger);
  446.  E void NDECL(reset_remarm);
  447.  E int NDECL(doddoremarm);
  448.  E int FDECL(destroy_arm, (struct obj *));
  449.  E void FDECL(adj_abon, (struct obj *, SCHAR_P));
  450.  E boolean
  451.  FDECL(inaccessible_equipment, (struct obj *, const char *, BOOLEAN_P));
  452.  
  453.  /* ### dog.c ### */
  454.  
  455.  E void FDECL(newedog, (struct monst *));
  456.  E void FDECL(free_edog, (struct monst *));
  457.  E void FDECL(initedog, (struct monst *));
  458.  E struct monst *FDECL(make_familiar,
  459.                        (struct obj *, XCHAR_P, XCHAR_P, BOOLEAN_P));
  460.  E struct monst *NDECL(makedog);
  461.  E void NDECL(update_mlstmv);
  462.  E void NDECL(losedogs);
  463.  E void FDECL(mon_arrive, (struct monst *, BOOLEAN_P));
  464.  E void FDECL(mon_catchup_elapsed_time, (struct monst *, long));
  465.  E void FDECL(keepdogs, (BOOLEAN_P));
  466.  E void FDECL(migrate_to_level, (struct monst *, XCHAR_P, XCHAR_P, coord *));
  467.  E int FDECL(dogfood, (struct monst *, struct obj *));
  468.  E boolean FDECL(tamedog, (struct monst *, struct obj *));
  469.  E void FDECL(abuse_dog, (struct monst *));
  470.  E void FDECL(wary_dog, (struct monst *, BOOLEAN_P));
  471.  
  472.  /* ### dogmove.c ### */
  473.  
  474.  E struct obj *FDECL(droppables, (struct monst *));
  475.  E int FDECL(dog_nutrition, (struct monst *, struct obj *));
  476.  E int FDECL(dog_eat, (struct monst *, struct obj *, int, int, BOOLEAN_P));
  477.  E int FDECL(dog_move, (struct monst *, int));
  478.  #ifdef USE_TRAMPOLI
  479.  E void FDECL(wantdoor, (int, int, genericptr_t));
  480.  #endif
  481.  E void FDECL(finish_meating, (struct monst *));
  482.  
  483.  /* ### dokick.c ### */
  484.  
  485.  E boolean FDECL(ghitm, (struct monst *, struct obj *));
  486.  E void FDECL(container_impact_dmg, (struct obj *, XCHAR_P, XCHAR_P));
  487.  E int NDECL(dokick);
  488.  E boolean FDECL(ship_object, (struct obj *, XCHAR_P, XCHAR_P, BOOLEAN_P));
  489.  E void FDECL(obj_delivery, (BOOLEAN_P));
  490.  E schar FDECL(down_gate, (XCHAR_P, XCHAR_P));
  491.  E void FDECL(impact_drop, (struct obj *, XCHAR_P, XCHAR_P, XCHAR_P));
  492.  
  493.  /* ### dothrow.c ### */
  494.  
  495.  E int NDECL(dothrow);
  496.  E int NDECL(dofire);
  497.  E void FDECL(endmultishot, (BOOLEAN_P));
  498.  E void FDECL(hitfloor, (struct obj *));
  499.  E void FDECL(hurtle, (int, int, int, BOOLEAN_P));
  500.  E void FDECL(mhurtle, (struct monst *, int, int, int));
  501.  E void FDECL(throwit, (struct obj *, long, BOOLEAN_P));
  502.  E int FDECL(omon_adj, (struct monst *, struct obj *, BOOLEAN_P));
  503.  E int FDECL(thitmonst, (struct monst *, struct obj *));
  504.  E int FDECL(hero_breaks, (struct obj *, XCHAR_P, XCHAR_P, BOOLEAN_P));
  505.  E int FDECL(breaks, (struct obj *, XCHAR_P, XCHAR_P));
  506.  E void FDECL(release_camera_demon, (struct obj *, XCHAR_P, XCHAR_P));
  507.  E void FDECL(breakobj,
  508.               (struct obj *, XCHAR_P, XCHAR_P, BOOLEAN_P, BOOLEAN_P));
  509.  E boolean FDECL(breaktest, (struct obj *));
  510.  E boolean FDECL(walk_path, (coord *, coord *,
  511.                              boolean (*)(genericptr, int, int), genericptr_t));
  512.  E boolean FDECL(hurtle_step, (genericptr_t, int, int));
  513.  
  514.  /* ### drawing.c ### */
  515.  #endif /* !MAKEDEFS_C && !LEV_LEX_C */
  516.  E int FDECL(def_char_to_objclass, (CHAR_P));
  517.  E int FDECL(def_char_to_monclass, (CHAR_P));
  518.  #if !defined(MAKEDEFS_C) && !defined(LEV_LEX_C)
  519.  E void FDECL(switch_symbols, (int));
  520.  E void FDECL(assign_graphics, (int));
  521.  E void NDECL(init_r_symbols);
  522.  E void NDECL(init_symbols);
  523.  E void NDECL(update_bouldersym);
  524.  E void NDECL(init_showsyms);
  525.  E void NDECL(init_l_symbols);
  526.  E void FDECL(clear_symsetentry, (int, BOOLEAN_P));
  527.  E void FDECL(update_l_symset, (struct symparse *, int));
  528.  E void FDECL(update_r_symset, (struct symparse *, int));
  529.  E boolean FDECL(cursed_object_at, (int, int));
  530.  
  531.  /* ### dungeon.c ### */
  532.  
  533.  E void FDECL(save_dungeon, (int, BOOLEAN_P, BOOLEAN_P));
  534.  E void FDECL(restore_dungeon, (int));
  535.  E void FDECL(insert_branch, (branch *, BOOLEAN_P));
  536.  E void NDECL(init_dungeons);
  537.  E s_level *FDECL(find_level, (const char *));
  538.  E s_level *FDECL(Is_special, (d_level *));
  539.  E branch *FDECL(Is_branchlev, (d_level *));
  540.  E boolean FDECL(builds_up, (d_level *));
  541.  E xchar FDECL(ledger_no, (d_level *));
  542.  E xchar NDECL(maxledgerno);
  543.  E schar FDECL(depth, (d_level *));
  544.  E xchar FDECL(dunlev, (d_level *));
  545.  E xchar FDECL(dunlevs_in_dungeon, (d_level *));
  546.  E xchar FDECL(ledger_to_dnum, (XCHAR_P));
  547.  E xchar FDECL(ledger_to_dlev, (XCHAR_P));
  548.  E xchar FDECL(deepest_lev_reached, (BOOLEAN_P));
  549.  E boolean FDECL(on_level, (d_level *, d_level *));
  550.  E void FDECL(next_level, (BOOLEAN_P));
  551.  E void FDECL(prev_level, (BOOLEAN_P));
  552.  E void FDECL(u_on_newpos, (int, int));
  553.  E void FDECL(u_on_rndspot, (int));
  554.  E void FDECL(u_on_sstairs, (int));
  555.  E void NDECL(u_on_upstairs);
  556.  E void NDECL(u_on_dnstairs);
  557.  E boolean FDECL(On_stairs, (XCHAR_P, XCHAR_P));
  558.  E void FDECL(get_level, (d_level *, int));
  559.  E boolean FDECL(Is_botlevel, (d_level *));
  560.  E boolean FDECL(Can_fall_thru, (d_level *));
  561.  E boolean FDECL(Can_dig_down, (d_level *));
  562.  E boolean FDECL(Can_rise_up, (int, int, d_level *));
  563.  E boolean FDECL(has_ceiling, (d_level *));
  564.  E boolean FDECL(In_quest, (d_level *));
  565.  E boolean FDECL(In_mines, (d_level *));
  566.  E branch *FDECL(dungeon_branch, (const char *));
  567.  E boolean FDECL(at_dgn_entrance, (const char *));
  568.  E boolean FDECL(In_hell, (d_level *));
  569.  E boolean FDECL(In_V_tower, (d_level *));
  570.  E boolean FDECL(On_W_tower_level, (d_level *));
  571.  E boolean FDECL(In_W_tower, (int, int, d_level *));
  572.  E void FDECL(find_hell, (d_level *));
  573.  E void FDECL(goto_hell, (BOOLEAN_P, BOOLEAN_P));
  574.  E void FDECL(assign_level, (d_level *, d_level *));
  575.  E void FDECL(assign_rnd_level, (d_level *, d_level *, int));
  576.  E int FDECL(induced_align, (int));
  577.  E boolean FDECL(Invocation_lev, (d_level *));
  578.  E xchar NDECL(level_difficulty);
  579.  E schar FDECL(lev_by_name, (const char *));
  580.  E schar FDECL(print_dungeon, (BOOLEAN_P, schar *, xchar *));
  581.  E char *FDECL(get_annotation, (d_level *));
  582.  E int NDECL(donamelevel);
  583.  E int NDECL(dooverview);
  584.  E void FDECL(show_overview, (int, int));
  585.  E void FDECL(forget_mapseen, (int));
  586.  E void FDECL(init_mapseen, (d_level *));
  587.  E void NDECL(recalc_mapseen);
  588.  E void FDECL(mapseen_temple, (struct monst *));
  589.  E void FDECL(room_discovered, (int));
  590.  E void FDECL(recbranch_mapseen, (d_level *, d_level *));
  591.  E void FDECL(remdun_mapseen, (int));
  592.  
  593.  /* ### eat.c ### */
  594.  
  595.  #ifdef USE_TRAMPOLI
  596.  E int NDECL(eatmdone);
  597.  E int NDECL(eatfood);
  598.  E int NDECL(opentin);
  599.  E int NDECL(unfaint);
  600.  #endif
  601.  E void NDECL(eatmupdate);
  602.  E boolean FDECL(is_edible, (struct obj *));
  603.  E void NDECL(init_uhunger);
  604.  E int NDECL(Hear_again);
  605.  E void NDECL(reset_eat);
  606.  E int NDECL(doeat);
  607.  E void NDECL(gethungry);
  608.  E void FDECL(morehungry, (int));
  609.  E void FDECL(lesshungry, (int));
  610.  E boolean NDECL(is_fainted);
  611.  E void NDECL(reset_faint);
  612.  E void NDECL(violated_vegetarian);
  613.  E void FDECL(newuhs, (BOOLEAN_P));
  614.  E struct obj *FDECL(floorfood, (const char *, int));
  615.  E void NDECL(vomit);
  616.  E int FDECL(eaten_stat, (int, struct obj *));
  617.  E void FDECL(food_disappears, (struct obj *));
  618.  E void FDECL(food_substitution, (struct obj *, struct obj *));
  619.  E void FDECL(eating_conducts, (struct permonst *));
  620.  E int FDECL(eat_brains, (struct monst *, struct monst *, BOOLEAN_P, int *));
  621.  E void NDECL(fix_petrification);
  622.  E void FDECL(consume_oeaten, (struct obj *, int));
  623.  E boolean FDECL(maybe_finished_meal, (BOOLEAN_P));
  624.  E void FDECL(set_tin_variety, (struct obj *, int));
  625.  E int FDECL(tin_variety_txt, (char *, int *));
  626.  E void FDECL(tin_details, (struct obj *, int, char *));
  627.  E boolean FDECL(Popeye, (int));
  628.  
  629.  /* ### end.c ### */
  630.  
  631.  E void FDECL(done1, (int));
  632.  E int NDECL(done2);
  633.  #ifdef USE_TRAMPOLI
  634.  E void FDECL(done_intr, (int));
  635.  #endif
  636.  E void FDECL(done_in_by, (struct monst *, int));
  637.  #endif /* !MAKEDEFS_C && !LEV_LEX_C */
  638.  E void VDECL(panic, (const char *, ...)) PRINTF_F(1, 2) NORETURN;
  639.  #if !defined(MAKEDEFS_C) && !defined(LEV_LEX_C)
  640.  E void FDECL(done, (int));
  641.  E void FDECL(container_contents, (struct obj *, BOOLEAN_P,
  642.                                    BOOLEAN_P, BOOLEAN_P));
  643.  E void FDECL(terminate, (int)) NORETURN;
  644.  E int NDECL(dovanquished);
  645.  E int NDECL(num_genocides);
  646.  E void FDECL(delayed_killer, (int, int, const char *));
  647.  E struct kinfo *FDECL(find_delayed_killer, (int));
  648.  E void FDECL(dealloc_killer, (struct kinfo *));
  649.  E void FDECL(save_killers, (int, int));
  650.  E void FDECL(restore_killers, (int));
  651.  E char *FDECL(build_english_list, (char *));
  652.  #if defined(PANICTRACE) && !defined(NO_SIGNAL)
  653.  E void FDECL(panictrace_setsignals, (BOOLEAN_P));
  654.  #endif
  655.  
  656.  /* ### engrave.c ### */
  657.  
  658.  E char *FDECL(random_engraving, (char *));
  659.  E void FDECL(wipeout_text, (char *, int, unsigned));
  660.  E boolean FDECL(can_reach_floor, (BOOLEAN_P));
  661.  E void FDECL(cant_reach_floor, (int, int, BOOLEAN_P, BOOLEAN_P));
  662.  E const char *FDECL(surface, (int, int));
  663.  E const char *FDECL(ceiling, (int, int));
  664.  E struct engr *FDECL(engr_at, (XCHAR_P, XCHAR_P));
  665.  E int FDECL(sengr_at, (const char *, XCHAR_P, XCHAR_P, BOOLEAN_P));
  666.  E void FDECL(u_wipe_engr, (int));
  667.  E void FDECL(wipe_engr_at, (XCHAR_P, XCHAR_P, XCHAR_P, BOOLEAN_P));
  668.  E void FDECL(read_engr_at, (int, int));
  669.  E void FDECL(make_engr_at, (int, int, const char *, long, XCHAR_P));
  670.  E void FDECL(del_engr_at, (int, int));
  671.  E int NDECL(freehand);
  672.  E int NDECL(doengrave);
  673.  E void NDECL(sanitize_engravings);
  674.  E void FDECL(save_engravings, (int, int));
  675.  E void FDECL(rest_engravings, (int));
  676.  E void FDECL(del_engr, (struct engr *));
  677.  E void FDECL(rloc_engr, (struct engr *));
  678.  E void FDECL(make_grave, (int, int, const char *));
  679.  
  680.  /* ### exper.c ### */
  681.  
  682.  E int NDECL(newpw);
  683.  E int FDECL(experience, (struct monst *, int));
  684.  E void FDECL(more_experienced, (int, int));
  685.  E void FDECL(losexp, (const char *));
  686.  E void NDECL(newexplevel);
  687.  E void FDECL(pluslvl, (BOOLEAN_P));
  688.  E long FDECL(rndexp, (BOOLEAN_P));
  689.  
  690.  /* ### explode.c ### */
  691.  
  692.  E void FDECL(explode, (int, int, int, int, CHAR_P, int));
  693.  E long FDECL(scatter, (int, int, int, unsigned int, struct obj *));
  694.  E void FDECL(splatter_burning_oil, (int, int));
  695.  E void FDECL(explode_oil, (struct obj *, int, int));
  696.  
  697.  /* ### extralev.c ### */
  698.  
  699.  E void NDECL(makeroguerooms);
  700.  E void FDECL(corr, (int, int));
  701.  E void NDECL(makerogueghost);
  702.  
  703.  /* ### files.c ### */
  704.  
  705.  E char *FDECL(fname_encode, (const char *, CHAR_P, char *, char *, int));
  706.  E char *FDECL(fname_decode, (CHAR_P, char *, char *, int));
  707.  E const char *FDECL(fqname, (const char *, int, int));
  708.  E FILE *FDECL(fopen_datafile, (const char *, const char *, int));
  709.  #ifdef MFLOPPY
  710.  E void NDECL(set_lock_and_bones);
  711.  #endif
  712.  E void FDECL(set_levelfile_name, (char *, int));
  713.  E int FDECL(create_levelfile, (int, char *));
  714.  E int FDECL(open_levelfile, (int, char *));
  715.  E void FDECL(delete_levelfile, (int));
  716.  E void NDECL(clearlocks);
  717.  E int FDECL(create_bonesfile, (d_level *, char **, char *));
  718.  #ifdef MFLOPPY
  719.  E void NDECL(cancel_bonesfile);
  720.  #endif
  721.  E void FDECL(commit_bonesfile, (d_level *));
  722.  E int FDECL(open_bonesfile, (d_level *, char **));
  723.  E int FDECL(delete_bonesfile, (d_level *));
  724.  E void NDECL(compress_bonesfile);
  725.  E void FDECL(set_savefile_name, (BOOLEAN_P));
  726.  #ifdef INSURANCE
  727.  E void FDECL(save_savefile_name, (int));
  728.  #endif
  729.  #ifndef MICRO
  730.  E void NDECL(set_error_savefile);
  731.  #endif
  732.  E int NDECL(create_savefile);
  733.  E int NDECL(open_savefile);
  734.  E int NDECL(delete_savefile);
  735.  E int NDECL(restore_saved_game);
  736.  E void FDECL(nh_compress, (const char *));
  737.  E void FDECL(nh_uncompress, (const char *));
  738.  E boolean FDECL(lock_file, (const char *, int, int));
  739.  E void FDECL(unlock_file, (const char *));
  740.  #ifdef USER_SOUNDS
  741.  E boolean FDECL(can_read_file, (const char *));
  742.  #endif
  743.  E boolean FDECL(read_config_file, (const char *, int));
  744.  E void FDECL(check_recordfile, (const char *));
  745.  E void NDECL(read_wizkit);
  746.  E int FDECL(read_sym_file, (int));
  747.  E int FDECL(parse_sym_line, (char *, int));
  748.  E void FDECL(paniclog, (const char *, const char *));
  749.  E int FDECL(validate_prefix_locations, (char *));
  750.  #ifdef SELECTSAVED
  751.  E char *FDECL(plname_from_file, (const char *));
  752.  #endif
  753.  E char **NDECL(get_saved_games);
  754.  E void FDECL(free_saved_games, (char **));
  755.  #ifdef SELF_RECOVER
  756.  E boolean NDECL(recover_savefile);
  757.  #endif
  758.  #ifdef SYSCF_FILE
  759.  E void NDECL(assure_syscf_file);
  760.  #endif
  761.  E int FDECL(nhclose, (int));
  762.  #ifdef HOLD_LOCKFILE_OPEN
  763.  E void NDECL(really_close);
  764.  #endif
  765.  #ifdef DEBUG
  766.  E boolean FDECL(debugcore, (const char *, BOOLEAN_P));
  767.  #endif
  768.  E boolean FDECL(read_tribute, (const char *, const char *, int,
  769.                                 char *, int, unsigned));
  770.  E boolean FDECL(Death_quote, (char *, int));
  771.  
  772.  /* ### fountain.c ### */
  773.  
  774.  E void FDECL(floating_above, (const char *));
  775.  E void FDECL(dogushforth, (int));
  776.  #ifdef USE_TRAMPOLI
  777.  E void FDECL(gush, (int, int, genericptr_t));
  778.  #endif
  779.  E void FDECL(dryup, (XCHAR_P, XCHAR_P, BOOLEAN_P));
  780.  E void NDECL(drinkfountain);
  781.  E void FDECL(dipfountain, (struct obj *));
  782.  E void FDECL(breaksink, (int, int));
  783.  E void NDECL(drinksink);
  784.  
  785.  /* ### hack.c ### */
  786.  
  787.  E anything *FDECL(uint_to_any, (unsigned));
  788.  E anything *FDECL(long_to_any, (long));
  789.  E anything *FDECL(monst_to_any, (struct monst *));
  790.  E anything *FDECL(obj_to_any, (struct obj *));
  791.  E boolean FDECL(revive_nasty, (int, int, const char *));
  792.  E void FDECL(movobj, (struct obj *, XCHAR_P, XCHAR_P));
  793.  E boolean FDECL(may_dig, (XCHAR_P, XCHAR_P));
  794.  E boolean FDECL(may_passwall, (XCHAR_P, XCHAR_P));
  795.  E boolean FDECL(bad_rock, (struct permonst *, XCHAR_P, XCHAR_P));
  796.  E int FDECL(cant_squeeze_thru, (struct monst *));
  797.  E boolean FDECL(invocation_pos, (XCHAR_P, XCHAR_P));
  798.  E boolean FDECL(test_move, (int, int, int, int, int));
  799.  #ifdef DEBUG
  800.  E int NDECL(wiz_debug_cmd_traveldisplay);
  801.  #endif
  802.  E boolean NDECL(u_rooted);
  803.  E void NDECL(domove);
  804.  E boolean NDECL(overexertion);
  805.  E void NDECL(invocation_message);
  806.  E boolean FDECL(pooleffects, (BOOLEAN_P));
  807.  E void FDECL(spoteffects, (BOOLEAN_P));
  808.  E char *FDECL(in_rooms, (XCHAR_P, XCHAR_P, int));
  809.  E boolean FDECL(in_town, (int, int));
  810.  E void FDECL(check_special_room, (BOOLEAN_P));
  811.  E int NDECL(dopickup);
  812.  E void NDECL(lookaround);
  813.  E boolean FDECL(crawl_destination, (int, int));
  814.  E int NDECL(monster_nearby);
  815.  E void FDECL(nomul, (int));
  816.  E void FDECL(unmul, (const char *));
  817.  E void FDECL(losehp, (int, const char *, BOOLEAN_P));
  818.  E int NDECL(weight_cap);
  819.  E int NDECL(inv_weight);
  820.  E int NDECL(near_capacity);
  821.  E int FDECL(calc_capacity, (int));
  822.  E int NDECL(max_capacity);
  823.  E boolean FDECL(check_capacity, (const char *));
  824.  E int FDECL(inv_cnt, (BOOLEAN_P));
  825.  E long FDECL(money_cnt, (struct obj *));
  826.  
  827.  /* ### hacklib.c ### */
  828.  
  829.  E boolean FDECL(digit, (CHAR_P));
  830.  E boolean FDECL(letter, (CHAR_P));
  831.  E char FDECL(highc, (CHAR_P));
  832.  E char FDECL(lowc, (CHAR_P));
  833.  E char *FDECL(lcase, (char *));
  834.  E char *FDECL(ucase, (char *));
  835.  E char *FDECL(upstart, (char *));
  836.  E char *FDECL(mungspaces, (char *));
  837.  E char *FDECL(eos, (char *));
  838.  E boolean FDECL(str_end_is, (const char *, const char *));
  839.  E char *FDECL(strkitten, (char *, CHAR_P));
  840.  E void FDECL(copynchars, (char *, const char *, int));
  841.  E char FDECL(chrcasecpy, (int, int));
  842.  E char *FDECL(strcasecpy, (char *, const char *));
  843.  E char *FDECL(s_suffix, (const char *));
  844.  E char *FDECL(ing_suffix, (const char *));
  845.  E char *FDECL(xcrypt, (const char *, char *));
  846.  E boolean FDECL(onlyspace, (const char *));
  847.  E char *FDECL(tabexpand, (char *));
  848.  E char *FDECL(visctrl, (CHAR_P));
  849.  E char *FDECL(strsubst, (char *, const char *, const char *));
  850.  E const char *FDECL(ordin, (int));
  851.  E char *FDECL(sitoa, (int));
  852.  E int FDECL(sgn, (int));
  853.  E int FDECL(rounddiv, (long, int));
  854.  E int FDECL(dist2, (int, int, int, int));
  855.  E int FDECL(isqrt, (int));
  856.  E int FDECL(distmin, (int, int, int, int));
  857.  E boolean FDECL(online2, (int, int, int, int));
  858.  E boolean FDECL(pmatch, (const char *, const char *));
  859.  E boolean FDECL(pmatchi, (const char *, const char *));
  860.  E boolean FDECL(pmatchz, (const char *, const char *));
  861.  #ifndef STRNCMPI
  862.  E int FDECL(strncmpi, (const char *, const char *, int));
  863.  #endif
  864.  #ifndef STRSTRI
  865.  E char *FDECL(strstri, (const char *, const char *));
  866.  #endif
  867.  E boolean
  868.  FDECL(fuzzymatch, (const char *, const char *, const char *, BOOLEAN_P));
  869.  E void NDECL(setrandom);
  870.  E time_t NDECL(getnow);
  871.  E int NDECL(getyear);
  872.  #if 0
  873.  E char *FDECL(yymmdd, (time_t));
  874.  #endif
  875.  E long FDECL(yyyymmdd, (time_t));
  876.  E long FDECL(hhmmss, (time_t));
  877.  E char *FDECL(yyyymmddhhmmss, (time_t));
  878.  E time_t FDECL(time_from_yyyymmddhhmmss, (char *));
  879.  E int NDECL(phase_of_the_moon);
  880.  E boolean NDECL(friday_13th);
  881.  E int NDECL(night);
  882.  E int NDECL(midnight);
  883.  
  884.  /* ### invent.c ### */
  885.  
  886.  E struct obj **FDECL(objarr_init, (int));
  887.  E void FDECL(objarr_set, (struct obj *, int, struct obj **, BOOLEAN_P));
  888.  E void FDECL(assigninvlet, (struct obj *));
  889.  E struct obj *FDECL(merge_choice, (struct obj *, struct obj *));
  890.  E int FDECL(merged, (struct obj **, struct obj **));
  891.  #ifdef USE_TRAMPOLI
  892.  E int FDECL(ckunpaid, (struct obj *));
  893.  #endif
  894.  E void FDECL(addinv_core1, (struct obj *));
  895.  E void FDECL(addinv_core2, (struct obj *));
  896.  E struct obj *FDECL(addinv, (struct obj *));
  897.  E struct obj *FDECL(hold_another_object,
  898.                      (struct obj *, const char *, const char *, const char *));
  899.  E void FDECL(useupall, (struct obj *));
  900.  E void FDECL(useup, (struct obj *));
  901.  E void FDECL(consume_obj_charge, (struct obj *, BOOLEAN_P));
  902.  E void FDECL(freeinv_core, (struct obj *));
  903.  E void FDECL(freeinv, (struct obj *));
  904.  E void FDECL(delallobj, (int, int));
  905.  E void FDECL(delobj, (struct obj *));
  906.  E struct obj *FDECL(sobj_at, (int, int, int));
  907.  E struct obj *FDECL(nxtobj, (struct obj *, int, BOOLEAN_P));
  908.  E struct obj *FDECL(carrying, (int));
  909.  E boolean NDECL(have_lizard);
  910.  E struct obj *NDECL(u_have_novel);
  911.  E struct obj *FDECL(o_on, (unsigned int, struct obj *));
  912.  E boolean FDECL(obj_here, (struct obj *, int, int));
  913.  E boolean NDECL(wearing_armor);
  914.  E boolean FDECL(is_worn, (struct obj *));
  915.  E struct obj *FDECL(g_at, (int, int));
  916.  E struct obj *FDECL(getobj, (const char *, const char *));
  917.  E int FDECL(ggetobj, (const char *, int (*)(OBJ_P), int,
  918.                        BOOLEAN_P, unsigned *));
  919.  E int FDECL(askchain, (struct obj **, const char *, int, int (*)(OBJ_P),
  920.                         int (*)(OBJ_P), int, const char *));
  921.  E void FDECL(fully_identify_obj, (struct obj *));
  922.  E int FDECL(identify, (struct obj *));
  923.  E void FDECL(identify_pack, (int, BOOLEAN_P));
  924.  E void NDECL(learn_unseen_invent);
  925.  E void FDECL(prinv, (const char *, struct obj *, long));
  926.  E char *FDECL(xprname,
  927.                (struct obj *, const char *, CHAR_P, BOOLEAN_P, long, long));
  928.  E int NDECL(ddoinv);
  929.  E char FDECL(display_inventory, (const char *, BOOLEAN_P));
  930.  E int FDECL(display_binventory, (int, int, BOOLEAN_P));
  931.  E struct obj *FDECL(display_cinventory, (struct obj *));
  932.  E struct obj *FDECL(display_minventory, (struct monst *, int, char *));
  933.  E int NDECL(dotypeinv);
  934.  E const char *FDECL(dfeature_at, (int, int, char *));
  935.  E int FDECL(look_here, (int, BOOLEAN_P));
  936.  E int NDECL(dolook);
  937.  E boolean FDECL(will_feel_cockatrice, (struct obj *, BOOLEAN_P));
  938.  E void FDECL(feel_cockatrice, (struct obj *, BOOLEAN_P));
  939.  E void FDECL(stackobj, (struct obj *));
  940.  E int NDECL(doprgold);
  941.  E int NDECL(doprwep);
  942.  E int NDECL(doprarm);
  943.  E int NDECL(doprring);
  944.  E int NDECL(dopramulet);
  945.  E int NDECL(doprtool);
  946.  E int NDECL(doprinuse);
  947.  E void FDECL(useupf, (struct obj *, long));
  948.  E char *FDECL(let_to_name, (CHAR_P, BOOLEAN_P, BOOLEAN_P));
  949.  E void NDECL(free_invbuf);
  950.  E void NDECL(reassign);
  951.  E int NDECL(doorganize);
  952.  E void NDECL(free_pickinv_cache);
  953.  E int FDECL(count_unpaid, (struct obj *));
  954.  E int FDECL(count_buc, (struct obj *, int));
  955.  E long FDECL(count_contents, (struct obj *, BOOLEAN_P, BOOLEAN_P, BOOLEAN_P));
  956.  E void FDECL(carry_obj_effects, (struct obj *));
  957.  E const char *FDECL(currency, (long));
  958.  E void FDECL(silly_thing, (const char *, struct obj *));
  959.  
  960.  /* ### ioctl.c ### */
  961.  
  962.  #if defined(UNIX) || defined(__BEOS__)
  963.  E void NDECL(getwindowsz);
  964.  E void NDECL(getioctls);
  965.  E void NDECL(setioctls);
  966.  #ifdef SUSPEND
  967.  E int NDECL(dosuspend);
  968.  #endif /* SUSPEND */
  969.  #endif /* UNIX || __BEOS__ */
  970.  
  971.  /* ### light.c ### */
  972.  
  973.  E void FDECL(new_light_source, (XCHAR_P, XCHAR_P, int, int, ANY_P *));
  974.  E void FDECL(del_light_source, (int, ANY_P *));
  975.  E void FDECL(do_light_sources, (char **));
  976.  E struct monst *FDECL(find_mid, (unsigned, unsigned));
  977.  E void FDECL(save_light_sources, (int, int, int));
  978.  E void FDECL(restore_light_sources, (int));
  979.  E void FDECL(relink_light_sources, (BOOLEAN_P));
  980.  E void NDECL(light_sources_sanity_check);
  981.  E void FDECL(obj_move_light_source, (struct obj *, struct obj *));
  982.  E boolean NDECL(any_light_source);
  983.  E void FDECL(snuff_light_source, (int, int));
  984.  E boolean FDECL(obj_sheds_light, (struct obj *));
  985.  E boolean FDECL(obj_is_burning, (struct obj *));
  986.  E void FDECL(obj_split_light_source, (struct obj *, struct obj *));
  987.  E void FDECL(obj_merge_light_sources, (struct obj *, struct obj *));
  988.  E void FDECL(obj_adjust_light_radius, (struct obj *, int));
  989.  E int FDECL(candle_light_range, (struct obj *));
  990.  E int FDECL(arti_light_radius, (struct obj *));
  991.  E const char *FDECL(arti_light_description, (struct obj *));
  992.  E int NDECL(wiz_light_sources);
  993.  
  994.  /* ### lock.c ### */
  995.  
  996.  #ifdef USE_TRAMPOLI
  997.  E int NDECL(forcelock);
  998.  E int NDECL(picklock);
  999.  #endif
  1000.  E boolean FDECL(picking_lock, (int *, int *));
  1001.  E boolean FDECL(picking_at, (int, int));
  1002.  E void FDECL(breakchestlock, (struct obj *, BOOLEAN_P));
  1003.  E void NDECL(reset_pick);
  1004.  E int FDECL(pick_lock, (struct obj *));
  1005.  E int NDECL(doforce);
  1006.  E boolean FDECL(boxlock, (struct obj *, struct obj *));
  1007.  E boolean FDECL(doorlock, (struct obj *, int, int));
  1008.  E int NDECL(doopen);
  1009.  E boolean FDECL(stumble_on_door_mimic, (int, int));
  1010.  E int FDECL(doopen_indir, (int, int));
  1011.  E int NDECL(doclose);
  1012.  
  1013.  #ifdef MAC
  1014.  /* These declarations are here because the main code calls them. */
  1015.  
  1016.  /* ### macfile.c ### */
  1017.  
  1018.  E int FDECL(maccreat, (const char *, long));
  1019.  E int FDECL(macopen, (const char *, int, long));
  1020.  E int FDECL(macclose, (int));
  1021.  E int FDECL(macread, (int, void *, unsigned));
  1022.  E int FDECL(macwrite, (int, void *, unsigned));
  1023.  E long FDECL(macseek, (int, long, short));
  1024.  E int FDECL(macunlink, (const char *));
  1025.  
  1026.  /* ### macmain.c ### */
  1027.  
  1028.  E boolean NDECL(authorize_wizard_mode);
  1029.  
  1030.  /* ### macsnd.c ### */
  1031.  
  1032.  E void FDECL(mac_speaker, (struct obj *, char *));
  1033.  
  1034.  /* ### macunix.c ### */
  1035.  
  1036.  E void FDECL(regularize, (char *));
  1037.  E void NDECL(getlock);
  1038.  
  1039.  /* ### macwin.c ### */
  1040.  
  1041.  E void FDECL(lock_mouse_cursor, (Boolean));
  1042.  E int NDECL(SanePositions);
  1043.  
  1044.  /* ### mttymain.c ### */
  1045.  
  1046.  E void FDECL(getreturn, (char *));
  1047.  E void VDECL(msmsg, (const char *, ...));
  1048.  E void NDECL(gettty);
  1049.  E void NDECL(setftty);
  1050.  E void FDECL(settty, (const char *));
  1051.  E int NDECL(tgetch);
  1052.  E void FDECL(cmov, (int x, int y));
  1053.  E void FDECL(nocmov, (int x, int y));
  1054.  
  1055.  #endif /* MAC */
  1056.  
  1057.  /* ### mail.c ### */
  1058.  
  1059.  #ifdef MAIL
  1060.  #ifdef UNIX
  1061.  E void NDECL(getmailstatus);
  1062.  #endif
  1063.  E void NDECL(ckmailstatus);
  1064.  E void FDECL(readmail, (struct obj *));
  1065.  #endif /* MAIL */
  1066.  
  1067.  /* ### makemon.c ### */
  1068.  
  1069.  E void FDECL(dealloc_monst, (struct monst *));
  1070.  E boolean FDECL(is_home_elemental, (struct permonst *));
  1071.  E struct monst *FDECL(clone_mon, (struct monst *, XCHAR_P, XCHAR_P));
  1072.  E int FDECL(monhp_per_lvl, (struct monst *));
  1073.  E void FDECL(newmonhp, (struct monst *, int));
  1074.  E struct mextra *NDECL(newmextra);
  1075.  E void FDECL(copy_mextra, (struct monst *, struct monst *));
  1076.  E void FDECL(dealloc_mextra, (struct monst *));
  1077.  E struct monst *FDECL(makemon, (struct permonst *, int, int, int));
  1078.  E boolean FDECL(create_critters, (int, struct permonst *, BOOLEAN_P));
  1079.  E struct permonst *NDECL(rndmonst);
  1080.  E void FDECL(reset_rndmonst, (int));
  1081.  E struct permonst *FDECL(mkclass, (CHAR_P, int));
  1082.  E int FDECL(mkclass_poly, (int));
  1083.  E int FDECL(adj_lev, (struct permonst *));
  1084.  E struct permonst *FDECL(grow_up, (struct monst *, struct monst *));
  1085.  E int FDECL(mongets, (struct monst *, int));
  1086.  E int FDECL(golemhp, (int));
  1087.  E boolean FDECL(peace_minded, (struct permonst *));
  1088.  E void FDECL(set_malign, (struct monst *));
  1089.  E void FDECL(newmcorpsenm, (struct monst *));
  1090.  E void FDECL(freemcorpsenm, (struct monst *));
  1091.  E void FDECL(set_mimic_sym, (struct monst *));
  1092.  E int FDECL(mbirth_limit, (int));
  1093.  E void FDECL(mimic_hit_msg, (struct monst *, SHORT_P));
  1094.  E void FDECL(mkmonmoney, (struct monst *, long));
  1095.  E int FDECL(bagotricks, (struct obj *, BOOLEAN_P, int *));
  1096.  E boolean FDECL(propagate, (int, BOOLEAN_P, BOOLEAN_P));
  1097.  E boolean FDECL(usmellmon, (struct permonst *));
  1098.  
  1099.  /* ### mapglyph.c ### */
  1100.  
  1101.  E int FDECL(mapglyph, (int, int *, int *, unsigned *, int, int));
  1102.  E char *FDECL(encglyph, (int));
  1103.  E void FDECL(genl_putmixed, (winid, int, const char *));
  1104.  
  1105.  /* ### mcastu.c ### */
  1106.  
  1107.  E int FDECL(castmu, (struct monst *, struct attack *, BOOLEAN_P, BOOLEAN_P));
  1108.  E int FDECL(buzzmu, (struct monst *, struct attack *));
  1109.  
  1110.  /* ### mhitm.c ### */
  1111.  
  1112.  E int FDECL(fightm, (struct monst *));
  1113.  E int FDECL(mattackm, (struct monst *, struct monst *));
  1114.  E boolean FDECL(engulf_target, (struct monst *, struct monst *));
  1115.  E int FDECL(mdisplacem, (struct monst *, struct monst *, BOOLEAN_P));
  1116.  E void FDECL(paralyze_monst, (struct monst *, int));
  1117.  E int FDECL(sleep_monst, (struct monst *, int, int));
  1118.  E void FDECL(slept_monst, (struct monst *));
  1119.  E void FDECL(xdrainenergym, (struct monst *, BOOLEAN_P));
  1120.  E long FDECL(attk_protection, (int));
  1121.  E void FDECL(rustm, (struct monst *, struct obj *));
  1122.  
  1123.  /* ### mhitu.c ### */
  1124.  
  1125.  E const char *FDECL(mpoisons_subj, (struct monst *, struct attack *));
  1126.  E void NDECL(u_slow_down);
  1127.  E struct monst *NDECL(cloneu);
  1128.  E void FDECL(expels, (struct monst *, struct permonst *, BOOLEAN_P));
  1129.  E struct attack *FDECL(getmattk,
  1130.                         (struct permonst *, int, int *, struct attack *));
  1131.  E int FDECL(mattacku, (struct monst *));
  1132.  E int FDECL(magic_negation, (struct monst *));
  1133.  E boolean NDECL(gulp_blnd_check);
  1134.  E int FDECL(gazemu, (struct monst *, struct attack *));
  1135.  E void FDECL(mdamageu, (struct monst *, int));
  1136.  E int FDECL(could_seduce, (struct monst *, struct monst *, struct attack *));
  1137.  E int FDECL(doseduce, (struct monst *));
  1138.  
  1139.  /* ### minion.c ### */
  1140.  
  1141.  E void FDECL(newemin, (struct monst *));
  1142.  E void FDECL(free_emin, (struct monst *));
  1143.  E int FDECL(monster_census, (BOOLEAN_P));
  1144.  E int FDECL(msummon, (struct monst *));
  1145.  E void FDECL(summon_minion, (ALIGNTYP_P, BOOLEAN_P));
  1146.  E int FDECL(demon_talk, (struct monst *));
  1147.  E long FDECL(bribe, (struct monst *));
  1148.  E int FDECL(dprince, (ALIGNTYP_P));
  1149.  E int FDECL(dlord, (ALIGNTYP_P));
  1150.  E int NDECL(llord);
  1151.  E int FDECL(ndemon, (ALIGNTYP_P));
  1152.  E int NDECL(lminion);
  1153.  E void FDECL(lose_guardian_angel, (struct monst *));
  1154.  E void NDECL(gain_guardian_angel);
  1155.  
  1156.  /* ### mklev.c ### */
  1157.  
  1158.  #ifdef USE_TRAMPOLI
  1159.  E int FDECL(do_comp, (genericptr_t, genericptr_t));
  1160.  #endif
  1161.  E void NDECL(sort_rooms);
  1162.  E void FDECL(add_room, (int, int, int, int, BOOLEAN_P, SCHAR_P, BOOLEAN_P));
  1163.  E void FDECL(add_subroom, (struct mkroom *, int, int, int, int, BOOLEAN_P,
  1164.                             SCHAR_P, BOOLEAN_P));
  1165.  E void NDECL(makecorridors);
  1166.  E void FDECL(add_door, (int, int, struct mkroom *));
  1167.  E void NDECL(mklev);
  1168.  #ifdef SPECIALIZATION
  1169.  E void FDECL(topologize, (struct mkroom *, BOOLEAN_P));
  1170.  #else
  1171.  E void FDECL(topologize, (struct mkroom *));
  1172.  #endif
  1173.  E void FDECL(place_branch, (branch *, XCHAR_P, XCHAR_P));
  1174.  E boolean FDECL(occupied, (XCHAR_P, XCHAR_P));
  1175.  E int FDECL(okdoor, (XCHAR_P, XCHAR_P));
  1176.  E void FDECL(dodoor, (int, int, struct mkroom *));
  1177.  E void FDECL(mktrap, (int, int, struct mkroom *, coord *));
  1178.  E void FDECL(mkstairs, (XCHAR_P, XCHAR_P, CHAR_P, struct mkroom *));
  1179.  E void NDECL(mkinvokearea);
  1180.  E void FDECL(mineralize, (int, int, int, int, BOOLEAN_P));
  1181.  
  1182.  /* ### mkmap.c ### */
  1183.  
  1184.  E void FDECL(flood_fill_rm, (int, int, int, BOOLEAN_P, BOOLEAN_P));
  1185.  E void FDECL(remove_rooms, (int, int, int, int));
  1186.  /* E void FDECL(mkmap, (lev_init *)); -- need sp_lev.h for lev_init */
  1187.  
  1188.  /* ### mkmaze.c ### */
  1189.  
  1190.  E void FDECL(wallification, (int, int, int, int));
  1191.  E void FDECL(walkfrom, (int, int, SCHAR_P));
  1192.  E void FDECL(makemaz, (const char *));
  1193.  E void FDECL(mazexy, (coord *));
  1194.  E void NDECL(bound_digging);
  1195.  E void FDECL(mkportal, (XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P));
  1196.  E boolean FDECL(bad_location, (XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P,
  1197.                                 XCHAR_P, XCHAR_P));
  1198.  E void FDECL(place_lregion, (XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P,
  1199.                               XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P, d_level *));
  1200.  E void NDECL(fumaroles);
  1201.  E void NDECL(movebubbles);
  1202.  E void NDECL(water_friction);
  1203.  E void FDECL(save_waterlevel, (int, int));
  1204.  E void FDECL(restore_waterlevel, (int));
  1205.  E const char *FDECL(waterbody_name, (XCHAR_P, XCHAR_P));
  1206.  
  1207.  /* ### mkobj.c ### */
  1208.  
  1209.  E struct oextra *NDECL(newoextra);
  1210.  E void FDECL(copy_oextra, (struct obj *, struct obj *));
  1211.  E void FDECL(dealloc_oextra, (struct obj *));
  1212.  E void FDECL(newomonst, (struct obj *));
  1213.  E void FDECL(free_omonst, (struct obj *));
  1214.  E void FDECL(newomid, (struct obj *));
  1215.  E void FDECL(free_omid, (struct obj *));
  1216.  E void FDECL(newolong, (struct obj *));
  1217.  E void FDECL(free_olong, (struct obj *));
  1218.  E void FDECL(new_omailcmd, (struct obj *, const char *));
  1219.  E void FDECL(free_omailcmd, (struct obj *));
  1220.  E struct obj *FDECL(mkobj_at, (CHAR_P, int, int, BOOLEAN_P));
  1221.  E struct obj *FDECL(mksobj_at, (int, int, int, BOOLEAN_P, BOOLEAN_P));
  1222.  E struct obj *FDECL(mkobj, (CHAR_P, BOOLEAN_P));
  1223.  E int NDECL(rndmonnum);
  1224.  E boolean FDECL(bogon_is_pname, (CHAR_P));
  1225.  E struct obj *FDECL(splitobj, (struct obj *, long));
  1226.  E struct obj *FDECL(unsplitobj, (struct obj *));
  1227.  E void NDECL(clear_splitobjs);
  1228.  E void FDECL(replace_object, (struct obj *, struct obj *));
  1229.  E void FDECL(bill_dummy_object, (struct obj *));
  1230.  E void FDECL(costly_alteration, (struct obj *, int));
  1231.  E struct obj *FDECL(mksobj, (int, BOOLEAN_P, BOOLEAN_P));
  1232.  E int FDECL(bcsign, (struct obj *));
  1233.  E int FDECL(weight, (struct obj *));
  1234.  E struct obj *FDECL(mkgold, (long, int, int));
  1235.  E struct obj *FDECL(mkcorpstat, (int, struct monst *, struct permonst *, int,
  1236.                                   int, unsigned));
  1237.  E int FDECL(corpse_revive_type, (struct obj *));
  1238.  E struct obj *FDECL(obj_attach_mid, (struct obj *, unsigned));
  1239.  E struct monst *FDECL(get_mtraits, (struct obj *, BOOLEAN_P));
  1240.  E struct obj *FDECL(mk_tt_object, (int, int, int));
  1241.  E struct obj *FDECL(mk_named_object,
  1242.                      (int, struct permonst *, int, int, const char *));
  1243.  E struct obj *FDECL(rnd_treefruit_at, (int, int));
  1244.  E void FDECL(set_corpsenm, (struct obj *, int));
  1245.  E void FDECL(start_corpse_timeout, (struct obj *));
  1246.  E void FDECL(bless, (struct obj *));
  1247.  E void FDECL(unbless, (struct obj *));
  1248.  E void FDECL(curse, (struct obj *));
  1249.  E void FDECL(uncurse, (struct obj *));
  1250.  E void FDECL(blessorcurse, (struct obj *, int));
  1251.  E boolean FDECL(is_flammable, (struct obj *));
  1252.  E boolean FDECL(is_rottable, (struct obj *));
  1253.  E void FDECL(place_object, (struct obj *, int, int));
  1254.  E void FDECL(remove_object, (struct obj *));
  1255.  E void FDECL(discard_minvent, (struct monst *));
  1256.  E void FDECL(obj_extract_self, (struct obj *));
  1257.  E void FDECL(extract_nobj, (struct obj *, struct obj **));
  1258.  E void FDECL(extract_nexthere, (struct obj *, struct obj **));
  1259.  E int FDECL(add_to_minv, (struct monst *, struct obj *));
  1260.  E struct obj *FDECL(add_to_container, (struct obj *, struct obj *));
  1261.  E void FDECL(add_to_migration, (struct obj *));
  1262.  E void FDECL(add_to_buried, (struct obj *));
  1263.  E void FDECL(dealloc_obj, (struct obj *));
  1264.  E void FDECL(obj_ice_effects, (int, int, BOOLEAN_P));
  1265.  E long FDECL(peek_at_iced_corpse_age, (struct obj *));
  1266.  E int FDECL(hornoplenty, (struct obj *, BOOLEAN_P));
  1267.  E void NDECL(obj_sanity_check);
  1268.  E struct obj *FDECL(obj_nexto, (struct obj *));
  1269.  E struct obj *FDECL(obj_nexto_xy, (int, int, int, unsigned));
  1270.  E struct obj *FDECL(obj_absorb, (struct obj **, struct obj **));
  1271.  E struct obj *FDECL(obj_meld, (struct obj **, struct obj **));
  1272.  
  1273.  /* ### mkroom.c ### */
  1274.  
  1275.  E void FDECL(mkroom, (int));
  1276.  E void FDECL(fill_zoo, (struct mkroom *));
  1277.  E struct permonst *NDECL(antholemon);
  1278.  E boolean FDECL(nexttodoor, (int, int));
  1279.  E boolean FDECL(has_dnstairs, (struct mkroom *));
  1280.  E boolean FDECL(has_upstairs, (struct mkroom *));
  1281.  E int FDECL(somex, (struct mkroom *));
  1282.  E int FDECL(somey, (struct mkroom *));
  1283.  E boolean FDECL(inside_room, (struct mkroom *, XCHAR_P, XCHAR_P));
  1284.  E boolean FDECL(somexy, (struct mkroom *, coord *));
  1285.  E void FDECL(mkundead, (coord *, BOOLEAN_P, int));
  1286.  E struct permonst *NDECL(courtmon);
  1287.  E void FDECL(save_rooms, (int));
  1288.  E void FDECL(rest_rooms, (int));
  1289.  E struct mkroom *FDECL(search_special, (SCHAR_P));
  1290.  E int FDECL(cmap_to_type, (int));
  1291.  
  1292.  /* ### mon.c ### */
  1293.  
  1294.  E void NDECL(mon_sanity_check);
  1295.  E int FDECL(undead_to_corpse, (int));
  1296.  E int FDECL(genus, (int, int));
  1297.  E int FDECL(pm_to_cham, (int));
  1298.  E int FDECL(minliquid, (struct monst *));
  1299.  E int NDECL(movemon);
  1300.  E int FDECL(meatmetal, (struct monst *));
  1301.  E int FDECL(meatobj, (struct monst *));
  1302.  E void FDECL(mpickgold, (struct monst *));
  1303.  E boolean FDECL(mpickstuff, (struct monst *, const char *));
  1304.  E int FDECL(curr_mon_load, (struct monst *));
  1305.  E int FDECL(max_mon_load, (struct monst *));
  1306.  E int FDECL(can_carry, (struct monst *, struct obj *));
  1307.  E int FDECL(mfndpos, (struct monst *, coord *, long *, long));
  1308.  E boolean FDECL(monnear, (struct monst *, int, int));
  1309.  E void NDECL(dmonsfree);
  1310.  E int FDECL(mcalcmove, (struct monst *));
  1311.  E void NDECL(mcalcdistress);
  1312.  E void FDECL(replmon, (struct monst *, struct monst *));
  1313.  E void FDECL(relmon, (struct monst *, struct monst **));
  1314.  E struct obj *FDECL(mlifesaver, (struct monst *));
  1315.  E boolean FDECL(corpse_chance, (struct monst *, struct monst *, BOOLEAN_P));
  1316.  E void FDECL(mondead, (struct monst *));
  1317.  E void FDECL(mondied, (struct monst *));
  1318.  E void FDECL(mongone, (struct monst *));
  1319.  E void FDECL(monstone, (struct monst *));
  1320.  E void FDECL(monkilled, (struct monst *, const char *, int));
  1321.  E void FDECL(unstuck, (struct monst *));
  1322.  E void FDECL(killed, (struct monst *));
  1323.  E void FDECL(xkilled, (struct monst *, int));
  1324.  E void FDECL(mon_to_stone, (struct monst *));
  1325.  E void FDECL(mnexto, (struct monst *));
  1326.  E void FDECL(maybe_mnexto, (struct monst *));
  1327.  E boolean FDECL(mnearto, (struct monst *, XCHAR_P, XCHAR_P, BOOLEAN_P));
  1328.  E void FDECL(m_respond, (struct monst *));
  1329.  E void FDECL(setmangry, (struct monst *));
  1330.  E void FDECL(wakeup, (struct monst *));
  1331.  E void NDECL(wake_nearby);
  1332.  E void FDECL(wake_nearto, (int, int, int));
  1333.  E void FDECL(seemimic, (struct monst *));
  1334.  E void NDECL(rescham);
  1335.  E void NDECL(restartcham);
  1336.  E void FDECL(restore_cham, (struct monst *));
  1337.  E boolean FDECL(hideunder, (struct monst *));
  1338.  E void FDECL(hide_monst, (struct monst *));
  1339.  E void FDECL(mon_animal_list, (BOOLEAN_P));
  1340.  E int FDECL(select_newcham_form, (struct monst *));
  1341.  E void FDECL(mgender_from_permonst, (struct monst *, struct permonst *));
  1342.  E int FDECL(newcham,
  1343.              (struct monst *, struct permonst *, BOOLEAN_P, BOOLEAN_P));
  1344.  E int FDECL(can_be_hatched, (int));
  1345.  E int FDECL(egg_type_from_parent, (int, BOOLEAN_P));
  1346.  E boolean FDECL(dead_species, (int, BOOLEAN_P));
  1347.  E void NDECL(kill_genocided_monsters);
  1348.  E void FDECL(golemeffects, (struct monst *, int, int));
  1349.  E boolean FDECL(angry_guards, (BOOLEAN_P));
  1350.  E void NDECL(pacify_guards);
  1351.  E void FDECL(decide_to_shapeshift, (struct monst *, int));
  1352.  
  1353.  /* ### mondata.c ### */
  1354.  
  1355.  E void FDECL(set_mon_data, (struct monst *, struct permonst *, int));
  1356.  E struct attack *FDECL(attacktype_fordmg, (struct permonst *, int, int));
  1357.  E boolean FDECL(attacktype, (struct permonst *, int));
  1358.  E boolean FDECL(noattacks, (struct permonst *));
  1359.  E boolean FDECL(poly_when_stoned, (struct permonst *));
  1360.  E boolean FDECL(resists_drli, (struct monst *));
  1361.  E boolean FDECL(resists_magm, (struct monst *));
  1362.  E boolean FDECL(resists_blnd, (struct monst *));
  1363.  E boolean
  1364.  FDECL(can_blnd, (struct monst *, struct monst *, UCHAR_P, struct obj *));
  1365.  E boolean FDECL(ranged_attk, (struct permonst *));
  1366.  E boolean FDECL(hates_silver, (struct permonst *));
  1367.  E boolean FDECL(mon_hates_silver, (struct monst *));
  1368.  E boolean FDECL(passes_bars, (struct permonst *));
  1369.  E boolean FDECL(can_blow, (struct monst *));
  1370.  E boolean FDECL(can_be_strangled, (struct monst *));
  1371.  E boolean FDECL(can_track, (struct permonst *));
  1372.  E boolean FDECL(breakarm, (struct permonst *));
  1373.  E boolean FDECL(sliparm, (struct permonst *));
  1374.  E boolean FDECL(sticks, (struct permonst *));
  1375.  E boolean FDECL(cantvomit, (struct permonst *));
  1376.  E int FDECL(num_horns, (struct permonst *));
  1377.  /* E boolean FDECL(canseemon, (struct monst *)); */
  1378.  E struct attack *FDECL(dmgtype_fromattack, (struct permonst *, int, int));
  1379.  E boolean FDECL(dmgtype, (struct permonst *, int));
  1380.  E int FDECL(max_passive_dmg, (struct monst *, struct monst *));
  1381.  E boolean FDECL(same_race, (struct permonst *, struct permonst *));
  1382.  E int FDECL(monsndx, (struct permonst *));
  1383.  E int FDECL(name_to_mon, (const char *));
  1384.  E int FDECL(name_to_monclass, (const char *, int *));
  1385.  E int FDECL(gender, (struct monst *));
  1386.  E int FDECL(pronoun_gender, (struct monst *));
  1387.  E boolean FDECL(levl_follower, (struct monst *));
  1388.  E int FDECL(little_to_big, (int));
  1389.  E int FDECL(big_to_little, (int));
  1390.  E const char *FDECL(locomotion, (const struct permonst *, const char *));
  1391.  E const char *FDECL(stagger, (const struct permonst *, const char *));
  1392.  E const char *FDECL(on_fire, (struct permonst *, struct attack *));
  1393.  E const struct permonst *FDECL(raceptr, (struct monst *));
  1394.  E boolean FDECL(olfaction, (struct permonst *));
  1395.  
  1396.  /* ### monmove.c ### */
  1397.  
  1398.  E boolean FDECL(itsstuck, (struct monst *));
  1399.  E boolean FDECL(mb_trapped, (struct monst *));
  1400.  E boolean FDECL(monhaskey, (struct monst *, BOOLEAN_P));
  1401.  E void FDECL(mon_regen, (struct monst *, BOOLEAN_P));
  1402.  E int FDECL(dochugw, (struct monst *));
  1403.  E boolean FDECL(onscary, (int, int, struct monst *));
  1404.  E void FDECL(monflee, (struct monst *, int, BOOLEAN_P, BOOLEAN_P));
  1405.  E void FDECL(mon_yells, (struct monst *, const char *));
  1406.  E int FDECL(dochug, (struct monst *));
  1407.  E int FDECL(m_move, (struct monst *, int));
  1408.  E void FDECL(dissolve_bars, (int, int));
  1409.  E boolean FDECL(closed_door, (int, int));
  1410.  E boolean FDECL(accessible, (int, int));
  1411.  E void FDECL(set_apparxy, (struct monst *));
  1412.  E boolean FDECL(can_ooze, (struct monst *));
  1413.  E boolean FDECL(can_fog, (struct monst *));
  1414.  E boolean FDECL(should_displace,
  1415.                  (struct monst *, coord *, long *, int, XCHAR_P, XCHAR_P));
  1416.  E boolean FDECL(undesirable_disp, (struct monst *, XCHAR_P, XCHAR_P));
  1417.  
  1418.  /* ### monst.c ### */
  1419.  
  1420.  E void NDECL(monst_init);
  1421.  
  1422.  /* ### monstr.c ### */
  1423.  
  1424.  E void NDECL(monstr_init);
  1425.  
  1426.  /* ### mplayer.c ### */
  1427.  
  1428.  E struct monst *FDECL(mk_mplayer,
  1429.                        (struct permonst *, XCHAR_P, XCHAR_P, BOOLEAN_P));
  1430.  E void FDECL(create_mplayers, (int, BOOLEAN_P));
  1431.  E void FDECL(mplayer_talk, (struct monst *));
  1432.  
  1433.  #if defined(MICRO) || defined(WIN32)
  1434.  
  1435.  /* ### msdos.c,os2.c,tos.c,winnt.c ### */
  1436.  
  1437.  #ifndef WIN32
  1438.  E int NDECL(tgetch);
  1439.  #endif
  1440.  #ifndef TOS
  1441.  E char NDECL(switchar);
  1442.  #endif
  1443.  #ifndef __GO32__
  1444.  E long FDECL(freediskspace, (char *));
  1445.  #ifdef MSDOS
  1446.  E int FDECL(findfirst_file, (char *));
  1447.  E int NDECL(findnext_file);
  1448.  E long FDECL(filesize_nh, (char *));
  1449.  #else
  1450.  E int FDECL(findfirst, (char *));
  1451.  E int NDECL(findnext);
  1452.  E long FDECL(filesize, (char *));
  1453.  #endif /* MSDOS */
  1454.  E char *NDECL(foundfile_buffer);
  1455.  #endif /* __GO32__ */
  1456.  E void FDECL(chdrive, (char *));
  1457.  #ifndef TOS
  1458.  E void NDECL(disable_ctrlP);
  1459.  E void NDECL(enable_ctrlP);
  1460.  #endif
  1461.  #if defined(MICRO) && !defined(WINNT)
  1462.  E void NDECL(get_scr_size);
  1463.  #ifndef TOS
  1464.  E void FDECL(gotoxy, (int, int));
  1465.  #endif
  1466.  #endif
  1467.  #ifdef TOS
  1468.  E int FDECL(_copyfile, (char *, char *));
  1469.  E int NDECL(kbhit);
  1470.  E void NDECL(set_colors);
  1471.  E void NDECL(restore_colors);
  1472.  #ifdef SUSPEND
  1473.  E int NDECL(dosuspend);
  1474.  #endif
  1475.  #endif /* TOS */
  1476.  #ifdef WIN32
  1477.  E char *FDECL(get_username, (int *));
  1478.  E void FDECL(nt_regularize, (char *));
  1479.  E int NDECL((*nt_kbhit));
  1480.  E void FDECL(Delay, (int));
  1481.  #endif /* WIN32 */
  1482.  #endif /* MICRO || WIN32 */
  1483.  
  1484.  /* ### mthrowu.c ### */
  1485.  
  1486.  E int FDECL(thitu, (int, int, struct obj *, const char *));
  1487.  E int FDECL(ohitmon, (struct monst *, struct obj *, int, BOOLEAN_P));
  1488.  E void FDECL(thrwmu, (struct monst *));
  1489.  E int FDECL(spitmu, (struct monst *, struct attack *));
  1490.  E int FDECL(breamu, (struct monst *, struct attack *));
  1491.  E boolean FDECL(linedup, (XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P, int));
  1492.  E boolean FDECL(lined_up, (struct monst *));
  1493.  E struct obj *FDECL(m_carrying, (struct monst *, int));
  1494.  E void FDECL(m_useupall, (struct monst *, struct obj *));
  1495.  E void FDECL(m_useup, (struct monst *, struct obj *));
  1496.  E void FDECL(m_throw,
  1497.               (struct monst *, int, int, int, int, int, struct obj *));
  1498.  E boolean FDECL(hits_bars, (struct obj **, int, int, int, int));
  1499.  
  1500.  /* ### muse.c ### */
  1501.  
  1502.  E boolean FDECL(find_defensive, (struct monst *));
  1503.  E int FDECL(use_defensive, (struct monst *));
  1504.  E int FDECL(rnd_defensive_item, (struct monst *));
  1505.  E boolean FDECL(find_offensive, (struct monst *));
  1506.  #ifdef USE_TRAMPOLI
  1507.  E int FDECL(mbhitm, (struct monst *, struct obj *));
  1508.  #endif
  1509.  E int FDECL(use_offensive, (struct monst *));
  1510.  E int FDECL(rnd_offensive_item, (struct monst *));
  1511.  E boolean FDECL(find_misc, (struct monst *));
  1512.  E int FDECL(use_misc, (struct monst *));
  1513.  E int FDECL(rnd_misc_item, (struct monst *));
  1514.  E boolean FDECL(searches_for_item, (struct monst *, struct obj *));
  1515.  E boolean FDECL(mon_reflects, (struct monst *, const char *));
  1516.  E boolean FDECL(ureflects, (const char *, const char *));
  1517.  E boolean FDECL(munstone, (struct monst *, BOOLEAN_P));
  1518.  E boolean FDECL(munslime, (struct monst *, BOOLEAN_P));
  1519.  
  1520.  /* ### music.c ### */
  1521.  
  1522.  E void FDECL(awaken_soldiers, (struct monst *));
  1523.  E int FDECL(do_play_instrument, (struct obj *));
  1524.  
  1525.  /* ### nhlan.c ### */
  1526.  #ifdef LAN_FEATURES
  1527.  E void NDECL(init_lan_features);
  1528.  E char *NDECL(lan_username);
  1529.  #endif
  1530.  
  1531.  /* ### nhregex.c ### */
  1532.  E struct nhregex *NDECL(regex_init);
  1533.  E boolean FDECL(regex_compile, (const char *, struct nhregex *));
  1534.  E const char *FDECL(regex_error_desc, (struct nhregex *));
  1535.  E boolean FDECL(regex_match, (const char *, struct nhregex *));
  1536.  E void FDECL(regex_free, (struct nhregex *));
  1537.  
  1538.  /* ### nttty.c ### */
  1539.  
  1540.  #ifdef WIN32
  1541.  E void NDECL(get_scr_size);
  1542.  E int NDECL(nttty_kbhit);
  1543.  E void FDECL(nttty_open, (int));
  1544.  E void NDECL(nttty_rubout);
  1545.  E int NDECL(tgetch);
  1546.  E int FDECL(ntposkey, (int *, int *, int *));
  1547.  E void FDECL(set_output_mode, (int));
  1548.  E void NDECL(synch_cursor);
  1549.  #endif
  1550.  
  1551.  /* ### o_init.c ### */
  1552.  
  1553.  E void NDECL(init_objects);
  1554.  E void FDECL(obj_shuffle_range, (int, int *, int *));
  1555.  E int NDECL(find_skates);
  1556.  E void NDECL(oinit);
  1557.  E void FDECL(savenames, (int, int));
  1558.  E void FDECL(restnames, (int));
  1559.  E void FDECL(discover_object, (int, BOOLEAN_P, BOOLEAN_P));
  1560.  E void FDECL(undiscover_object, (int));
  1561.  E int NDECL(dodiscovered);
  1562.  E int NDECL(doclassdisco);
  1563.  E void NDECL(rename_disco);
  1564.  
  1565.  /* ### objects.c ### */
  1566.  
  1567.  E void NDECL(objects_init);
  1568.  
  1569.  /* ### objnam.c ### */
  1570.  
  1571.  E char *FDECL(obj_typename, (int));
  1572.  E char *FDECL(simple_typename, (int));
  1573.  E boolean FDECL(obj_is_pname, (struct obj *));
  1574.  E char *FDECL(distant_name, (struct obj *, char *(*)(OBJ_P)));
  1575.  E char *FDECL(fruitname, (BOOLEAN_P));
  1576.  E char *FDECL(xname, (struct obj *));
  1577.  E char *FDECL(mshot_xname, (struct obj *));
  1578.  E boolean FDECL(the_unique_obj, (struct obj *));
  1579.  E boolean FDECL(the_unique_pm, (struct permonst *));
  1580.  E char *FDECL(doname, (struct obj *));
  1581.  E char *FDECL(doname_with_price, (struct obj *));
  1582.  E boolean FDECL(not_fully_identified, (struct obj *));
  1583.  E char *FDECL(corpse_xname, (struct obj *, const char *, unsigned));
  1584.  E char *FDECL(cxname, (struct obj *));
  1585.  E char *FDECL(cxname_singular, (struct obj *));
  1586.  E char *FDECL(killer_xname, (struct obj *));
  1587.  E char *FDECL(short_oname,
  1588.                (struct obj *, char *(*)(OBJ_P), char *(*)(OBJ_P), unsigned));
  1589.  E const char *FDECL(singular, (struct obj *, char *(*)(OBJ_P)));
  1590.  E char *FDECL(an, (const char *));
  1591.  E char *FDECL(An, (const char *));
  1592.  E char *FDECL(The, (const char *));
  1593.  E char *FDECL(the, (const char *));
  1594.  E char *FDECL(aobjnam, (struct obj *, const char *));
  1595.  E char *FDECL(yobjnam, (struct obj *, const char *));
  1596.  E char *FDECL(Yobjnam2, (struct obj *, const char *));
  1597.  E char *FDECL(Tobjnam, (struct obj *, const char *));
  1598.  E char *FDECL(otense, (struct obj *, const char *));
  1599.  E char *FDECL(vtense, (const char *, const char *));
  1600.  E char *FDECL(Doname2, (struct obj *));
  1601.  E char *FDECL(yname, (struct obj *));
  1602.  E char *FDECL(Yname2, (struct obj *));
  1603.  E char *FDECL(ysimple_name, (struct obj *));
  1604.  E char *FDECL(Ysimple_name2, (struct obj *));
  1605.  E char *FDECL(simpleonames, (struct obj *));
  1606.  E char *FDECL(ansimpleoname, (struct obj *));
  1607.  E char *FDECL(thesimpleoname, (struct obj *));
  1608.  E char *FDECL(bare_artifactname, (struct obj *));
  1609.  E char *FDECL(makeplural, (const char *));
  1610.  E char *FDECL(makesingular, (const char *));
  1611.  E struct obj *FDECL(readobjnam, (char *, struct obj *));
  1612.  E int FDECL(rnd_class, (int, int));
  1613.  E const char *FDECL(suit_simple_name, (struct obj *));
  1614.  E const char *FDECL(cloak_simple_name, (struct obj *));
  1615.  E const char *FDECL(helm_simple_name, (struct obj *));
  1616.  E const char *FDECL(mimic_obj_name, (struct monst *));
  1617.  E char *FDECL(safe_qbuf, (char *, const char *, const char *, struct obj *,
  1618.                            char *(*)(OBJ_P), char *(*)(OBJ_P), const char *));
  1619.  
  1620.  /* ### options.c ### */
  1621.  
  1622.  E void NDECL(reglyph_darkroom);
  1623.  E boolean FDECL(match_optname, (const char *, const char *, int, BOOLEAN_P));
  1624.  E void NDECL(initoptions);
  1625.  E void NDECL(initoptions_init);
  1626.  E void NDECL(initoptions_finish);
  1627.  E void FDECL(parseoptions, (char *, BOOLEAN_P, BOOLEAN_P));
  1628.  E int NDECL(doset);
  1629.  E int NDECL(dotogglepickup);
  1630.  E void NDECL(option_help);
  1631.  E void FDECL(next_opt, (winid, const char *));
  1632.  E int FDECL(fruitadd, (char *, struct fruit *));
  1633.  E int FDECL(choose_classes_menu,
  1634.              (const char *, int, BOOLEAN_P, char *, char *));
  1635.  E void FDECL(add_menu_cmd_alias, (CHAR_P, CHAR_P));
  1636.  E char FDECL(map_menu_cmd, (CHAR_P));
  1637.  E void FDECL(assign_warnings, (uchar *));
  1638.  E char *FDECL(nh_getenv, (const char *));
  1639.  E void FDECL(set_duplicate_opt_detection, (int));
  1640.  E void FDECL(set_wc_option_mod_status, (unsigned long, int));
  1641.  E void FDECL(set_wc2_option_mod_status, (unsigned long, int));
  1642.  E void FDECL(set_option_mod_status, (const char *, int));
  1643.  E int FDECL(add_autopickup_exception, (const char *));
  1644.  E void NDECL(free_autopickup_exceptions);
  1645.  E int FDECL(load_symset, (const char *, int));
  1646.  E void NDECL(free_symsets);
  1647.  E void FDECL(parsesymbols, (char *));
  1648.  E struct symparse *FDECL(match_sym, (char *));
  1649.  E void NDECL(set_playmode);
  1650.  E int FDECL(sym_val, (char *));
  1651.  E const char *FDECL(clr2colorname, (int));
  1652.  E boolean FDECL(add_menu_coloring, (char *));
  1653.  E boolean FDECL(get_menu_coloring, (char *, int *, int *));
  1654.  E void NDECL(free_menu_coloring);
  1655.  E boolean FDECL(msgtype_parse_add, (char *));
  1656.  E int FDECL(msgtype_type, (const char *));
  1657.  E void NDECL(msgtype_free);
  1658.  
  1659.  /* ### pager.c ### */
  1660.  
  1661.  E char *FDECL(self_lookat, (char *));
  1662.  E boolean FDECL(object_from_map, (int,int,int,struct obj **));
  1663.  E int NDECL(dowhatis);
  1664.  E int NDECL(doquickwhatis);
  1665.  E int NDECL(doidtrap);
  1666.  E int NDECL(dowhatdoes);
  1667.  E char *FDECL(dowhatdoes_core, (CHAR_P, char *));
  1668.  E int NDECL(dohelp);
  1669.  E int NDECL(dohistory);
  1670.  E int FDECL(do_screen_description,
  1671.              (coord, BOOLEAN_P, int, char *, const char **));
  1672.  E int FDECL(do_look, (int, coord *));
  1673.  
  1674.  /* ### pcmain.c ### */
  1675.  
  1676.  #if defined(MICRO) || defined(WIN32)
  1677.  #ifdef CHDIR
  1678.  E void FDECL(chdirx, (char *, BOOLEAN_P));
  1679.  #endif /* CHDIR */
  1680.  E boolean NDECL(authorize_wizard_mode);
  1681.  #endif /* MICRO || WIN32 */
  1682.  
  1683.  /* ### pcsys.c ### */
  1684.  
  1685.  #if defined(MICRO) || defined(WIN32)
  1686.  E void NDECL(flushout);
  1687.  E int NDECL(dosh);
  1688.  #ifdef MFLOPPY
  1689.  E void FDECL(eraseall, (const char *, const char *));
  1690.  E void FDECL(copybones, (int));
  1691.  E void NDECL(playwoRAMdisk);
  1692.  E int FDECL(saveDiskPrompt, (int));
  1693.  E void NDECL(gameDiskPrompt);
  1694.  #endif
  1695.  E void FDECL(append_slash, (char *));
  1696.  E void FDECL(getreturn, (const char *));
  1697.  #ifndef AMIGA
  1698.  E void VDECL(msmsg, (const char *, ...));
  1699.  #endif
  1700.  E FILE *FDECL(fopenp, (const char *, const char *));
  1701.  #endif /* MICRO || WIN32 */
  1702.  
  1703.  /* ### pctty.c ### */
  1704.  
  1705.  #if defined(MICRO) || defined(WIN32)
  1706.  E void NDECL(gettty);
  1707.  E void FDECL(settty, (const char *));
  1708.  E void NDECL(setftty);
  1709.  E void VDECL(error, (const char *, ...));
  1710.  #if defined(TIMED_DELAY) && defined(_MSC_VER)
  1711.  E void FDECL(msleep, (unsigned));
  1712.  #endif
  1713.  #endif /* MICRO || WIN32 */
  1714.  
  1715.  /* ### pcunix.c ### */
  1716.  
  1717.  #if defined(MICRO)
  1718.  E void FDECL(regularize, (char *));
  1719.  #endif /* MICRO */
  1720.  #if defined(PC_LOCKING)
  1721.  E void NDECL(getlock);
  1722.  #endif
  1723.  
  1724.  /* ### pickup.c ### */
  1725.  
  1726.  E int FDECL(collect_obj_classes, (char *, struct obj *, BOOLEAN_P,
  1727.                                    boolean FDECL((*), (OBJ_P)), int *));
  1728.  E boolean FDECL(rider_corpse_revival, (struct obj *, BOOLEAN_P));
  1729.  E void FDECL(add_valid_menu_class, (int));
  1730.  E boolean FDECL(allow_all, (struct obj *));
  1731.  E boolean FDECL(allow_category, (struct obj *));
  1732.  E boolean FDECL(is_worn_by_type, (struct obj *));
  1733.  E int FDECL(ck_bag, (struct obj *));
  1734.  #ifdef USE_TRAMPOLI
  1735.  E int FDECL(in_container, (struct obj *));
  1736.  E int FDECL(out_container, (struct obj *));
  1737.  #endif
  1738.  E int FDECL(pickup, (int));
  1739.  E int FDECL(pickup_object, (struct obj *, long, BOOLEAN_P));
  1740.  E int FDECL(query_category,
  1741.              (const char *, struct obj *, int, menu_item **, int));
  1742.  E int FDECL(query_objlist, (const char *, struct obj *, int, menu_item **,
  1743.                              int, boolean (*)(OBJ_P)));
  1744.  E struct obj *FDECL(pick_obj, (struct obj *));
  1745.  E int NDECL(encumber_msg);
  1746.  E int NDECL(doloot);
  1747.  E boolean FDECL(container_gone, (int (*)(OBJ_P)));
  1748.  E boolean NDECL(u_handsy);
  1749.  E int FDECL(use_container, (struct obj **, int));
  1750.  E int FDECL(loot_mon, (struct monst *, int *, boolean *));
  1751.  E int NDECL(dotip);
  1752.  E boolean FDECL(is_autopickup_exception, (struct obj *, BOOLEAN_P));
  1753.  
  1754.  /* ### pline.c ### */
  1755.  
  1756.  E void VDECL(pline, (const char *, ...)) PRINTF_F(1, 2);
  1757.  E void VDECL(Norep, (const char *, ...)) PRINTF_F(1, 2);
  1758.  E void NDECL(free_youbuf);
  1759.  E void VDECL(You, (const char *, ...)) PRINTF_F(1, 2);
  1760.  E void VDECL(Your, (const char *, ...)) PRINTF_F(1, 2);
  1761.  E void VDECL(You_feel, (const char *, ...)) PRINTF_F(1, 2);
  1762.  E void VDECL(You_cant, (const char *, ...)) PRINTF_F(1, 2);
  1763.  E void VDECL(You_hear, (const char *, ...)) PRINTF_F(1, 2);
  1764.  E void VDECL(You_see, (const char *, ...)) PRINTF_F(1, 2);
  1765.  E void VDECL(pline_The, (const char *, ...)) PRINTF_F(1, 2);
  1766.  E void VDECL(There, (const char *, ...)) PRINTF_F(1, 2);
  1767.  E void VDECL(verbalize, (const char *, ...)) PRINTF_F(1, 2);
  1768.  E void VDECL(raw_printf, (const char *, ...)) PRINTF_F(1, 2);
  1769.  E void VDECL(impossible, (const char *, ...)) PRINTF_F(1, 2);
  1770.  E const char *FDECL(align_str, (ALIGNTYP_P));
  1771.  E void FDECL(mstatusline, (struct monst *));
  1772.  E void NDECL(ustatusline);
  1773.  E void NDECL(self_invis_message);
  1774.  E void FDECL(pudding_merge_message, (struct obj *, struct obj *));
  1775.  
  1776.  /* ### polyself.c ### */
  1777.  
  1778.  E void NDECL(set_uasmon);
  1779.  E void NDECL(float_vs_flight);
  1780.  E void NDECL(change_sex);
  1781.  E void FDECL(polyself, (int));
  1782.  E int FDECL(polymon, (int));
  1783.  E void NDECL(rehumanize);
  1784.  E int NDECL(dobreathe);
  1785.  E int NDECL(dospit);
  1786.  E int NDECL(doremove);
  1787.  E int NDECL(dospinweb);
  1788.  E int NDECL(dosummon);
  1789.  E int NDECL(dogaze);
  1790.  E int NDECL(dohide);
  1791.  E int NDECL(dopoly);
  1792.  E int NDECL(domindblast);
  1793.  E void FDECL(skinback, (BOOLEAN_P));
  1794.  E const char *FDECL(mbodypart, (struct monst *, int));
  1795.  E const char *FDECL(body_part, (int));
  1796.  E int NDECL(poly_gender);
  1797.  E void FDECL(ugolemeffects, (int, int));
  1798.  
  1799.  /* ### potion.c ### */
  1800.  
  1801.  E void FDECL(set_itimeout, (long *, long));
  1802.  E void FDECL(incr_itimeout, (long *, int));
  1803.  E void FDECL(make_confused, (long, BOOLEAN_P));
  1804.  E void FDECL(make_stunned, (long, BOOLEAN_P));
  1805.  E void FDECL(make_blinded, (long, BOOLEAN_P));
  1806.  E void FDECL(make_sick, (long, const char *, BOOLEAN_P, int));
  1807.  E void FDECL(make_slimed, (long, const char *));
  1808.  E void FDECL(make_stoned, (long, const char *, int, const char *));
  1809.  E void FDECL(make_vomiting, (long, BOOLEAN_P));
  1810.  E boolean FDECL(make_hallucinated, (long, BOOLEAN_P, long));
  1811.  E void FDECL(make_deaf, (long, BOOLEAN_P));
  1812.  E int NDECL(dodrink);
  1813.  E int FDECL(dopotion, (struct obj *));
  1814.  E int FDECL(peffects, (struct obj *));
  1815.  E void FDECL(healup, (int, int, BOOLEAN_P, BOOLEAN_P));
  1816.  E void FDECL(strange_feeling, (struct obj *, const char *));
  1817.  E void FDECL(potionhit, (struct monst *, struct obj *, BOOLEAN_P));
  1818.  E void FDECL(potionbreathe, (struct obj *));
  1819.  E int NDECL(dodip);
  1820.  E void FDECL(mongrantswish, (struct monst **));
  1821.  E void FDECL(djinni_from_bottle, (struct obj *));
  1822.  E struct monst *FDECL(split_mon, (struct monst *, struct monst *));
  1823.  E const char *NDECL(bottlename);
  1824.  
  1825.  /* ### pray.c ### */
  1826.  
  1827.  E boolean FDECL(critically_low_hp, (BOOLEAN_P));
  1828.  #ifdef USE_TRAMPOLI
  1829.  E int NDECL(prayer_done);
  1830.  #endif
  1831.  E int NDECL(dosacrifice);
  1832.  E boolean FDECL(can_pray, (BOOLEAN_P));
  1833.  E int NDECL(dopray);
  1834.  E const char *NDECL(u_gname);
  1835.  E int NDECL(doturn);
  1836.  E const char *NDECL(a_gname);
  1837.  E const char *FDECL(a_gname_at, (XCHAR_P x, XCHAR_P y));
  1838.  E const char *FDECL(align_gname, (ALIGNTYP_P));
  1839.  E const char *FDECL(halu_gname, (ALIGNTYP_P));
  1840.  E const char *FDECL(align_gtitle, (ALIGNTYP_P));
  1841.  E void FDECL(altar_wrath, (int, int));
  1842.  
  1843.  /* ### priest.c ### */
  1844.  
  1845.  E int FDECL(move_special, (struct monst *, BOOLEAN_P, SCHAR_P, BOOLEAN_P,
  1846.                             BOOLEAN_P, XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P));
  1847.  E char FDECL(temple_occupied, (char *));
  1848.  E boolean FDECL(inhistemple, (struct monst *));
  1849.  E int FDECL(pri_move, (struct monst *));
  1850.  E void FDECL(priestini, (d_level *, struct mkroom *, int, int, BOOLEAN_P));
  1851.  E aligntyp FDECL(mon_aligntyp, (struct monst *));
  1852.  E char *FDECL(priestname, (struct monst *, char *));
  1853.  E boolean FDECL(p_coaligned, (struct monst *));
  1854.  E struct monst *FDECL(findpriest, (CHAR_P));
  1855.  E void FDECL(intemple, (int));
  1856.  E void FDECL(forget_temple_entry, (struct monst *));
  1857.  E void FDECL(priest_talk, (struct monst *));
  1858.  E struct monst *FDECL(mk_roamer, (struct permonst *, ALIGNTYP_P, XCHAR_P,
  1859.                                    XCHAR_P, BOOLEAN_P));
  1860.  E void FDECL(reset_hostility, (struct monst *));
  1861.  E boolean FDECL(in_your_sanctuary, (struct monst *, XCHAR_P, XCHAR_P));
  1862.  E void FDECL(ghod_hitsu, (struct monst *));
  1863.  E void NDECL(angry_priest);
  1864.  E void NDECL(clearpriests);
  1865.  E void FDECL(restpriest, (struct monst *, BOOLEAN_P));
  1866.  E void FDECL(newepri, (struct monst *));
  1867.  E void FDECL(free_epri, (struct monst *));
  1868.  
  1869.  /* ### quest.c ### */
  1870.  
  1871.  E void NDECL(onquest);
  1872.  E void NDECL(nemdead);
  1873.  E void FDECL(artitouch, (struct obj *));
  1874.  E boolean NDECL(ok_to_quest);
  1875.  E void FDECL(leader_speaks, (struct monst *));
  1876.  E void NDECL(nemesis_speaks);
  1877.  E void FDECL(quest_chat, (struct monst *));
  1878.  E void FDECL(quest_talk, (struct monst *));
  1879.  E void FDECL(quest_stat_check, (struct monst *));
  1880.  E void FDECL(finish_quest, (struct obj *));
  1881.  
  1882.  /* ### questpgr.c ### */
  1883.  
  1884.  E void NDECL(load_qtlist);
  1885.  E void NDECL(unload_qtlist);
  1886.  E short FDECL(quest_info, (int));
  1887.  E const char *NDECL(ldrname);
  1888.  E boolean FDECL(is_quest_artifact, (struct obj *));
  1889.  E void FDECL(com_pager, (int));
  1890.  E void FDECL(qt_pager, (int));
  1891.  E struct permonst *NDECL(qt_montype);
  1892.  E void NDECL(deliver_splev_message);
  1893.  
  1894.  /* ### random.c ### */
  1895.  
  1896.  #if defined(RANDOM) && !defined(__GO32__) /* djgpp has its own random */
  1897.  E void FDECL(srandom, (unsigned));
  1898.  E char *FDECL(initstate, (unsigned, char *, int));
  1899.  E char *FDECL(setstate, (char *));
  1900.  E long NDECL(random);
  1901.  #endif /* RANDOM */
  1902.  
  1903.  /* ### read.c ### */
  1904.  
  1905.  E void FDECL(learnscroll, (struct obj *));
  1906.  E char *FDECL(tshirt_text, (struct obj *, char *));
  1907.  E int NDECL(doread);
  1908.  E boolean FDECL(is_chargeable, (struct obj *));
  1909.  E void FDECL(recharge, (struct obj *, int));
  1910.  E void FDECL(forget_objects, (int));
  1911.  E void FDECL(forget_levels, (int));
  1912.  E void NDECL(forget_traps);
  1913.  E void FDECL(forget_map, (int));
  1914.  E int FDECL(seffects, (struct obj *));
  1915.  E void FDECL(drop_boulder_on_player,
  1916.               (BOOLEAN_P, BOOLEAN_P, BOOLEAN_P, BOOLEAN_P));
  1917.  E boolean FDECL(drop_boulder_on_monster, (int, int, BOOLEAN_P, BOOLEAN_P));
  1918.  E void FDECL(wand_explode, (struct obj *, int));
  1919.  #ifdef USE_TRAMPOLI
  1920.  E void FDECL(set_lit, (int, int, genericptr_t));
  1921.  #endif
  1922.  E void FDECL(litroom, (BOOLEAN_P, struct obj *));
  1923.  E void FDECL(do_genocide, (int));
  1924.  E void FDECL(punish, (struct obj *));
  1925.  E void NDECL(unpunish);
  1926.  E boolean FDECL(cant_revive, (int *, BOOLEAN_P, struct obj *));
  1927.  E boolean NDECL(create_particular);
  1928.  
  1929.  /* ### rect.c ### */
  1930.  
  1931.  E void NDECL(init_rect);
  1932.  E NhRect *FDECL(get_rect, (NhRect *));
  1933.  E NhRect *NDECL(rnd_rect);
  1934.  E void FDECL(remove_rect, (NhRect *));
  1935.  E void FDECL(add_rect, (NhRect *));
  1936.  E void FDECL(split_rects, (NhRect *, NhRect *));
  1937.  
  1938.  /* ## region.c ### */
  1939.  E void NDECL(clear_regions);
  1940.  E void NDECL(run_regions);
  1941.  E boolean FDECL(in_out_region, (XCHAR_P, XCHAR_P));
  1942.  E boolean FDECL(m_in_out_region, (struct monst *, XCHAR_P, XCHAR_P));
  1943.  E void NDECL(update_player_regions);
  1944.  E void FDECL(update_monster_region, (struct monst *));
  1945.  E NhRegion *FDECL(visible_region_at, (XCHAR_P, XCHAR_P));
  1946.  E void FDECL(show_region, (NhRegion *, XCHAR_P, XCHAR_P));
  1947.  E void FDECL(save_regions, (int, int));
  1948.  E void FDECL(rest_regions, (int, BOOLEAN_P));
  1949.  E NhRegion *FDECL(create_gas_cloud, (XCHAR_P, XCHAR_P, int, int));
  1950.  E boolean NDECL(region_danger);
  1951.  E void NDECL(region_safety);
  1952.  
  1953.  /* ### restore.c ### */
  1954.  
  1955.  E void FDECL(inven_inuse, (BOOLEAN_P));
  1956.  E int FDECL(dorecover, (int));
  1957.  E void FDECL(restcemetery, (int, struct cemetery **));
  1958.  E void FDECL(trickery, (char *));
  1959.  E void FDECL(getlev, (int, int, XCHAR_P, BOOLEAN_P));
  1960.  E void FDECL(get_plname_from_file, (int, char *));
  1961.  #ifdef SELECTSAVED
  1962.  E int FDECL(restore_menu, (winid));
  1963.  #endif
  1964.  E void NDECL(minit);
  1965.  E boolean FDECL(lookup_id_mapping, (unsigned, unsigned *));
  1966.  E void FDECL(mread, (int, genericptr_t, unsigned int));
  1967.  E int FDECL(validate, (int, const char *));
  1968.  E void NDECL(reset_restpref);
  1969.  E void FDECL(set_restpref, (const char *));
  1970.  E void FDECL(set_savepref, (const char *));
  1971.  
  1972.  /* ### rip.c ### */
  1973.  
  1974.  E void FDECL(genl_outrip, (winid, int, time_t));
  1975.  
  1976.  /* ### rnd.c ### */
  1977.  
  1978.  E int FDECL(rn2, (int));
  1979.  E int FDECL(rnl, (int));
  1980.  E int FDECL(rnd, (int));
  1981.  E int FDECL(d, (int, int));
  1982.  E int FDECL(rne, (int));
  1983.  E int FDECL(rnz, (int));
  1984.  
  1985.  /* ### role.c ### */
  1986.  
  1987.  E boolean FDECL(validrole, (int));
  1988.  E boolean FDECL(validrace, (int, int));
  1989.  E boolean FDECL(validgend, (int, int, int));
  1990.  E boolean FDECL(validalign, (int, int, int));
  1991.  E int NDECL(randrole);
  1992.  E int FDECL(randrace, (int));
  1993.  E int FDECL(randgend, (int, int));
  1994.  E int FDECL(randalign, (int, int));
  1995.  E int FDECL(str2role, (const char *));
  1996.  E int FDECL(str2race, (const char *));
  1997.  E int FDECL(str2gend, (const char *));
  1998.  E int FDECL(str2align, (const char *));
  1999.  E boolean FDECL(ok_role, (int, int, int, int));
  2000.  E int FDECL(pick_role, (int, int, int, int));
  2001.  E boolean FDECL(ok_race, (int, int, int, int));
  2002.  E int FDECL(pick_race, (int, int, int, int));
  2003.  E boolean FDECL(ok_gend, (int, int, int, int));
  2004.  E int FDECL(pick_gend, (int, int, int, int));
  2005.  E boolean FDECL(ok_align, (int, int, int, int));
  2006.  E int FDECL(pick_align, (int, int, int, int));
  2007.  E void NDECL(rigid_role_checks);
  2008.  E boolean FDECL(setrolefilter, (const char *));
  2009.  E boolean NDECL(gotrolefilter);
  2010.  E void NDECL(clearrolefilter);
  2011.  E char *FDECL(build_plselection_prompt, (char *, int, int, int, int, int));
  2012.  E char *FDECL(root_plselection_prompt, (char *, int, int, int, int, int));
  2013.  E void NDECL(plnamesuffix);
  2014.  E void FDECL(role_selection_prolog, (int, winid));
  2015.  E void FDECL(role_menu_extra, (int, winid));
  2016.  E void NDECL(role_init);
  2017.  E const char *FDECL(Hello, (struct monst *));
  2018.  E const char *NDECL(Goodbye);
  2019.  
  2020.  /* ### rumors.c ### */
  2021.  
  2022.  E char *FDECL(getrumor, (int, char *, BOOLEAN_P));
  2023.  E char *FDECL(get_rnd_text, (const char *, char *));
  2024.  E void FDECL(outrumor, (int, int));
  2025.  E void FDECL(outoracle, (BOOLEAN_P, BOOLEAN_P));
  2026.  E void FDECL(save_oracles, (int, int));
  2027.  E void FDECL(restore_oracles, (int));
  2028.  E int FDECL(doconsult, (struct monst *));
  2029.  E void NDECL(rumor_check);
  2030.  
  2031.  /* ### save.c ### */
  2032.  
  2033.  E int NDECL(dosave);
  2034.  E int NDECL(dosave0);
  2035.  E boolean FDECL(tricked_fileremoved, (int, char *));
  2036.  #ifdef INSURANCE
  2037.  E void NDECL(savestateinlock);
  2038.  #endif
  2039.  #ifdef MFLOPPY
  2040.  E boolean FDECL(savelev, (int, XCHAR_P, int));
  2041.  E boolean FDECL(swapin_file, (int));
  2042.  E void NDECL(co_false);
  2043.  #else
  2044.  E void FDECL(savelev, (int, XCHAR_P, int));
  2045.  #endif
  2046.  E genericptr_t FDECL(mon_to_buffer, (struct monst *, int *));
  2047.  E void FDECL(bufon, (int));
  2048.  E void FDECL(bufoff, (int));
  2049.  E void FDECL(bflush, (int));
  2050.  E void FDECL(bwrite, (int, genericptr_t, unsigned int));
  2051.  E void FDECL(bclose, (int));
  2052.  E void FDECL(def_bclose, (int));
  2053.  #if defined(ZEROCOMP)
  2054.  E void FDECL(zerocomp_bclose, (int));
  2055.  #endif
  2056.  E void FDECL(savecemetery, (int, int, struct cemetery **));
  2057.  E void FDECL(savefruitchn, (int, int));
  2058.  E void FDECL(store_plname_in_file, (int));
  2059.  E void NDECL(free_dungeons);
  2060.  E void NDECL(freedynamicdata);
  2061.  E void FDECL(store_savefileinfo, (int));
  2062.  
  2063.  /* ### shk.c ### */
  2064.  
  2065.  E long FDECL(money2mon, (struct monst *, long));
  2066.  E void FDECL(money2u, (struct monst *, long));
  2067.  E void FDECL(shkgone, (struct monst *));
  2068.  E void FDECL(set_residency, (struct monst *, BOOLEAN_P));
  2069.  E void FDECL(replshk, (struct monst *, struct monst *));
  2070.  E void FDECL(restshk, (struct monst *, BOOLEAN_P));
  2071.  E char FDECL(inside_shop, (XCHAR_P, XCHAR_P));
  2072.  E void FDECL(u_left_shop, (char *, BOOLEAN_P));
  2073.  E void FDECL(remote_burglary, (XCHAR_P, XCHAR_P));
  2074.  E void FDECL(u_entered_shop, (char *));
  2075.  E void FDECL(pick_pick, (struct obj *));
  2076.  E boolean FDECL(same_price, (struct obj *, struct obj *));
  2077.  E void NDECL(shopper_financial_report);
  2078.  E int FDECL(inhishop, (struct monst *));
  2079.  E struct monst *FDECL(shop_keeper, (CHAR_P));
  2080.  E boolean FDECL(tended_shop, (struct mkroom *));
  2081.  E boolean FDECL(is_unpaid, (struct obj *));
  2082.  E void FDECL(delete_contents, (struct obj *));
  2083.  E void FDECL(obfree, (struct obj *, struct obj *));
  2084.  E void FDECL(home_shk, (struct monst *, BOOLEAN_P));
  2085.  E void FDECL(make_happy_shk, (struct monst *, BOOLEAN_P));
  2086.  E void FDECL(make_happy_shoppers, (BOOLEAN_P));
  2087.  E void FDECL(hot_pursuit, (struct monst *));
  2088.  E void FDECL(make_angry_shk, (struct monst *, XCHAR_P, XCHAR_P));
  2089.  E int NDECL(dopay);
  2090.  E boolean FDECL(paybill, (int));
  2091.  E void NDECL(finish_paybill);
  2092.  E struct obj *FDECL(find_oid, (unsigned));
  2093.  E long FDECL(contained_cost,
  2094.               (struct obj *, struct monst *, long, BOOLEAN_P, BOOLEAN_P));
  2095.  E long FDECL(contained_gold, (struct obj *));
  2096.  E void FDECL(picked_container, (struct obj *));
  2097.  E void FDECL(alter_cost, (struct obj *, long));
  2098.  E long FDECL(unpaid_cost, (struct obj *, BOOLEAN_P));
  2099.  E boolean FDECL(billable, (struct monst **, struct obj *, CHAR_P, BOOLEAN_P));
  2100.  E void FDECL(addtobill, (struct obj *, BOOLEAN_P, BOOLEAN_P, BOOLEAN_P));
  2101.  E void FDECL(splitbill, (struct obj *, struct obj *));
  2102.  E void FDECL(subfrombill, (struct obj *, struct monst *));
  2103.  E long FDECL(stolen_value,
  2104.               (struct obj *, XCHAR_P, XCHAR_P, BOOLEAN_P, BOOLEAN_P));
  2105.  E void FDECL(sellobj_state, (int));
  2106.  E void FDECL(sellobj, (struct obj *, XCHAR_P, XCHAR_P));
  2107.  E int FDECL(doinvbill, (int));
  2108.  E struct monst *FDECL(shkcatch, (struct obj *, XCHAR_P, XCHAR_P));
  2109.  E void FDECL(add_damage, (XCHAR_P, XCHAR_P, long));
  2110.  E int FDECL(repair_damage, (struct monst *, struct damage *, BOOLEAN_P));
  2111.  E int FDECL(shk_move, (struct monst *));
  2112.  E void FDECL(after_shk_move, (struct monst *));
  2113.  E boolean FDECL(is_fshk, (struct monst *));
  2114.  E void FDECL(shopdig, (int));
  2115.  E void FDECL(pay_for_damage, (const char *, BOOLEAN_P));
  2116.  E boolean FDECL(costly_spot, (XCHAR_P, XCHAR_P));
  2117.  E struct obj *FDECL(shop_object, (XCHAR_P, XCHAR_P));
  2118.  E void FDECL(price_quote, (struct obj *));
  2119.  E void FDECL(shk_chat, (struct monst *));
  2120.  E void FDECL(check_unpaid_usage, (struct obj *, BOOLEAN_P));
  2121.  E void FDECL(check_unpaid, (struct obj *));
  2122.  E void FDECL(costly_gold, (XCHAR_P, XCHAR_P, long));
  2123.  E long FDECL(get_cost_of_shop_item, (struct obj *));
  2124.  E boolean FDECL(block_door, (XCHAR_P, XCHAR_P));
  2125.  E boolean FDECL(block_entry, (XCHAR_P, XCHAR_P));
  2126.  E char *FDECL(shk_your, (char *, struct obj *));
  2127.  E char *FDECL(Shk_Your, (char *, struct obj *));
  2128.  
  2129.  /* ### shknam.c ### */
  2130.  
  2131.  E void FDECL(neweshk, (struct monst *));
  2132.  E void FDECL(free_eshk, (struct monst *));
  2133.  E void FDECL(stock_room, (int, struct mkroom *));
  2134.  E boolean FDECL(saleable, (struct monst *, struct obj *));
  2135.  E int FDECL(get_shop_item, (int));
  2136.  E const char *FDECL(shkname, (struct monst *));
  2137.  E boolean FDECL(shkname_is_pname, (struct monst *));
  2138.  E boolean FDECL(is_izchak, (struct monst *, BOOLEAN_P));
  2139.  
  2140.  /* ### sit.c ### */
  2141.  
  2142.  E void NDECL(take_gold);
  2143.  E int NDECL(dosit);
  2144.  E void NDECL(rndcurse);
  2145.  E void NDECL(attrcurse);
  2146.  
  2147.  /* ### sounds.c ### */
  2148.  
  2149.  E void NDECL(dosounds);
  2150.  E const char *FDECL(growl_sound, (struct monst *));
  2151.  E void FDECL(growl, (struct monst *));
  2152.  E void FDECL(yelp, (struct monst *));
  2153.  E void FDECL(whimper, (struct monst *));
  2154.  E void FDECL(beg, (struct monst *));
  2155.  E int NDECL(dotalk);
  2156.  #ifdef USER_SOUNDS
  2157.  E int FDECL(add_sound_mapping, (const char *));
  2158.  E void FDECL(play_sound_for_message, (const char *));
  2159.  #endif
  2160.  
  2161.  /* ### sys.c ### */
  2162.  
  2163.  E void NDECL(sys_early_init);
  2164.  E void NDECL(sysopt_release);
  2165.  E void FDECL(sysopt_seduce_set, (int));
  2166.  
  2167.  /* ### sys/msdos/sound.c ### */
  2168.  
  2169.  #ifdef MSDOS
  2170.  E int FDECL(assign_soundcard, (char *));
  2171.  #endif
  2172.  
  2173.  /* ### sp_lev.c ### */
  2174.  
  2175.  E boolean FDECL(check_room, (xchar *, xchar *, xchar *, xchar *, BOOLEAN_P));
  2176.  E boolean FDECL(create_room, (XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P, XCHAR_P,
  2177.                                XCHAR_P, XCHAR_P, XCHAR_P));
  2178.  E void FDECL(create_secret_door, (struct mkroom *, XCHAR_P));
  2179.  E boolean
  2180.  FDECL(dig_corridor, (coord *, coord *, BOOLEAN_P, SCHAR_P, SCHAR_P));
  2181.  E void FDECL(fill_room, (struct mkroom *, BOOLEAN_P));
  2182.  E boolean FDECL(load_special, (const char *));
  2183.  
  2184.  /* ### spell.c ### */
  2185.  
  2186.  #ifdef USE_TRAMPOLI
  2187.  E int NDECL(learn);
  2188.  #endif
  2189.  E int FDECL(study_book, (struct obj *));
  2190.  E void FDECL(book_disappears, (struct obj *));
  2191.  E void FDECL(book_substitution, (struct obj *, struct obj *));
  2192.  E void NDECL(age_spells);
  2193.  E int NDECL(docast);
  2194.  E int FDECL(spell_skilltype, (int));
  2195.  E int FDECL(spelleffects, (int, BOOLEAN_P));
  2196.  E void NDECL(losespells);
  2197.  E int NDECL(dovspell);
  2198.  E void FDECL(initialspell, (struct obj *));
  2199.  
  2200.  /* ### steal.c ### */
  2201.  
  2202.  #ifdef USE_TRAMPOLI
  2203.  E int NDECL(stealarm);
  2204.  #endif
  2205.  E long FDECL(somegold, (long));
  2206.  E void FDECL(stealgold, (struct monst *));
  2207.  E void FDECL(remove_worn_item, (struct obj *, BOOLEAN_P));
  2208.  E int FDECL(steal, (struct monst *, char *));
  2209.  E int FDECL(mpickobj, (struct monst *, struct obj *));
  2210.  E void FDECL(stealamulet, (struct monst *));
  2211.  E void FDECL(maybe_absorb_item, (struct monst *, struct obj *, int, int));
  2212.  E void FDECL(mdrop_obj, (struct monst *, struct obj *, BOOLEAN_P));
  2213.  E void FDECL(mdrop_special_objs, (struct monst *));
  2214.  E void FDECL(relobj, (struct monst *, int, BOOLEAN_P));
  2215.  E struct obj *FDECL(findgold, (struct obj *));
  2216.  
  2217.  /* ### steed.c ### */
  2218.  
  2219.  E void NDECL(rider_cant_reach);
  2220.  E boolean FDECL(can_saddle, (struct monst *));
  2221.  E int FDECL(use_saddle, (struct obj *));
  2222.  E boolean FDECL(can_ride, (struct monst *));
  2223.  E int NDECL(doride);
  2224.  E boolean FDECL(mount_steed, (struct monst *, BOOLEAN_P));
  2225.  E void NDECL(exercise_steed);
  2226.  E void NDECL(kick_steed);
  2227.  E void FDECL(dismount_steed, (int));
  2228.  E void FDECL(place_monster, (struct monst *, int, int));
  2229.  E boolean FDECL(stucksteed, (BOOLEAN_P));
  2230.  
  2231.  /* ### teleport.c ### */
  2232.  
  2233.  E boolean FDECL(goodpos, (int, int, struct monst *, unsigned));
  2234.  E boolean FDECL(enexto, (coord *, XCHAR_P, XCHAR_P, struct permonst *));
  2235.  E boolean
  2236.  FDECL(enexto_core, (coord *, XCHAR_P, XCHAR_P, struct permonst *, unsigned));
  2237.  E void FDECL(teleds, (int, int, BOOLEAN_P));
  2238.  E boolean FDECL(safe_teleds, (BOOLEAN_P));
  2239.  E boolean FDECL(teleport_pet, (struct monst *, BOOLEAN_P));
  2240.  E void NDECL(tele);
  2241.  E boolean FDECL(scrolltele, (struct obj *));
  2242.  E int NDECL(dotele);
  2243.  E void NDECL(level_tele);
  2244.  E void FDECL(domagicportal, (struct trap *));
  2245.  E void FDECL(tele_trap, (struct trap *));
  2246.  E void FDECL(level_tele_trap, (struct trap *));
  2247.  E void FDECL(rloc_to, (struct monst *, int, int));
  2248.  E boolean FDECL(rloc, (struct monst *, BOOLEAN_P));
  2249.  E boolean FDECL(tele_restrict, (struct monst *));
  2250.  E void FDECL(mtele_trap, (struct monst *, struct trap *, int));
  2251.  E int FDECL(mlevel_tele_trap,
  2252.              (struct monst *, struct trap *, BOOLEAN_P, int));
  2253.  E boolean FDECL(rloco, (struct obj *));
  2254.  E int NDECL(random_teleport_level);
  2255.  E boolean FDECL(u_teleport_mon, (struct monst *, BOOLEAN_P));
  2256.  
  2257.  /* ### tile.c ### */
  2258.  #ifdef USE_TILES
  2259.  E void FDECL(substitute_tiles, (d_level *));
  2260.  #endif
  2261.  
  2262.  /* ### timeout.c ### */
  2263.  
  2264.  E void NDECL(burn_away_slime);
  2265.  E void NDECL(nh_timeout);
  2266.  E void FDECL(fall_asleep, (int, BOOLEAN_P));
  2267.  E void FDECL(attach_egg_hatch_timeout, (struct obj *, long));
  2268.  E void FDECL(attach_fig_transform_timeout, (struct obj *));
  2269.  E void FDECL(kill_egg, (struct obj *));
  2270.  E void FDECL(hatch_egg, (ANY_P *, long));
  2271.  E void FDECL(learn_egg_type, (int));
  2272.  E void FDECL(burn_object, (ANY_P *, long));
  2273.  E void FDECL(begin_burn, (struct obj *, BOOLEAN_P));
  2274.  E void FDECL(end_burn, (struct obj *, BOOLEAN_P));
  2275.  E void NDECL(do_storms);
  2276.  E boolean FDECL(start_timer, (long, SHORT_P, SHORT_P, ANY_P *));
  2277.  E long FDECL(stop_timer, (SHORT_P, ANY_P *));
  2278.  E long FDECL(peek_timer, (SHORT_P, ANY_P *));
  2279.  E void NDECL(run_timers);
  2280.  E void FDECL(obj_move_timers, (struct obj *, struct obj *));
  2281.  E void FDECL(obj_split_timers, (struct obj *, struct obj *));
  2282.  E void FDECL(obj_stop_timers, (struct obj *));
  2283.  E boolean FDECL(obj_has_timer, (struct obj *, SHORT_P));
  2284.  E void FDECL(spot_stop_timers, (XCHAR_P, XCHAR_P, SHORT_P));
  2285.  E long FDECL(spot_time_expires, (XCHAR_P, XCHAR_P, SHORT_P));
  2286.  E long FDECL(spot_time_left, (XCHAR_P, XCHAR_P, SHORT_P));
  2287.  E boolean FDECL(obj_is_local, (struct obj *));
  2288.  E void FDECL(save_timers, (int, int, int));
  2289.  E void FDECL(restore_timers, (int, int, BOOLEAN_P, long));
  2290.  E void FDECL(relink_timers, (BOOLEAN_P));
  2291.  E int NDECL(wiz_timeout_queue);
  2292.  E void NDECL(timer_sanity_check);
  2293.  
  2294.  /* ### topten.c ### */
  2295.  
  2296.  E void FDECL(formatkiller, (char *, unsigned, int));
  2297.  E void FDECL(topten, (int, time_t));
  2298.  E void FDECL(prscore, (int, char **));
  2299.  E struct obj *FDECL(tt_oname, (struct obj *));
  2300.  
  2301.  /* ### track.c ### */
  2302.  
  2303.  E void NDECL(initrack);
  2304.  E void NDECL(settrack);
  2305.  E coord *FDECL(gettrack, (int, int));
  2306.  
  2307.  /* ### trap.c ### */
  2308.  
  2309.  E boolean FDECL(burnarmor, (struct monst *));
  2310.  E int FDECL(erode_obj, (struct obj *, const char *, int, int));
  2311.  E boolean FDECL(grease_protect, (struct obj *, const char *, struct monst *));
  2312.  E struct trap *FDECL(maketrap, (int, int, int));
  2313.  E void FDECL(fall_through, (BOOLEAN_P));
  2314.  E struct monst *FDECL(animate_statue,
  2315.                        (struct obj *, XCHAR_P, XCHAR_P, int, int *));
  2316.  E struct monst *FDECL(activate_statue_trap,
  2317.                        (struct trap *, XCHAR_P, XCHAR_P, BOOLEAN_P));
  2318.  E void FDECL(dotrap, (struct trap *, unsigned));
  2319.  E void FDECL(seetrap, (struct trap *));
  2320.  E void FDECL(feeltrap, (struct trap *));
  2321.  E int FDECL(mintrap, (struct monst *));
  2322.  E void FDECL(instapetrify, (const char *));
  2323.  E void FDECL(minstapetrify, (struct monst *, BOOLEAN_P));
  2324.  E void FDECL(selftouch, (const char *));
  2325.  E void FDECL(mselftouch, (struct monst *, const char *, BOOLEAN_P));
  2326.  E void NDECL(float_up);
  2327.  E void FDECL(fill_pit, (int, int));
  2328.  E int FDECL(float_down, (long, long));
  2329.  E void NDECL(climb_pit);
  2330.  E boolean FDECL(fire_damage, (struct obj *, BOOLEAN_P, XCHAR_P, XCHAR_P));
  2331.  E int FDECL(fire_damage_chain,
  2332.              (struct obj *, BOOLEAN_P, BOOLEAN_P, XCHAR_P, XCHAR_P));
  2333.  E void acid_damage(struct obj *);
  2334.  E int FDECL(water_damage, (struct obj *, const char *, BOOLEAN_P));
  2335.  E void FDECL(water_damage_chain, (struct obj *, BOOLEAN_P));
  2336.  E boolean NDECL(drown);
  2337.  E void FDECL(drain_en, (int));
  2338.  E int NDECL(dountrap);
  2339.  E void FDECL(cnv_trap_obj, (int, int, struct trap *, BOOLEAN_P));
  2340.  E int FDECL(untrap, (BOOLEAN_P));
  2341.  E boolean FDECL(openholdingtrap, (struct monst *, boolean *));
  2342.  E boolean FDECL(closeholdingtrap, (struct monst *, boolean *));
  2343.  E boolean FDECL(openfallingtrap, (struct monst *, BOOLEAN_P, boolean *));
  2344.  E boolean FDECL(chest_trap, (struct obj *, int, BOOLEAN_P));
  2345.  E void FDECL(deltrap, (struct trap *));
  2346.  E boolean FDECL(delfloortrap, (struct trap *));
  2347.  E struct trap *FDECL(t_at, (int, int));
  2348.  E void FDECL(b_trapped, (const char *, int));
  2349.  E boolean NDECL(unconscious);
  2350.  E void FDECL(blow_up_landmine, (struct trap *));
  2351.  E int FDECL(launch_obj, (SHORT_P, int, int, int, int, int));
  2352.  E boolean NDECL(launch_in_progress);
  2353.  E void NDECL(force_launch_placement);
  2354.  E boolean FDECL(uteetering_at_seen_pit, (struct trap *));
  2355.  E boolean NDECL(lava_effects);
  2356.  E void NDECL(sink_into_lava);
  2357.  E void NDECL(sokoban_guilt);
  2358.  
  2359.  /* ### u_init.c ### */
  2360.  
  2361.  E void NDECL(u_init);
  2362.  
  2363.  /* ### uhitm.c ### */
  2364.  
  2365.  E void FDECL(erode_armor, (struct monst *, int));
  2366.  E boolean FDECL(attack_checks, (struct monst *, struct obj *));
  2367.  E void FDECL(check_caitiff, (struct monst *));
  2368.  E int FDECL(find_roll_to_hit,
  2369.              (struct monst *, UCHAR_P, struct obj *, int *, int *));
  2370.  E boolean FDECL(attack, (struct monst *));
  2371.  E boolean FDECL(hmon, (struct monst *, struct obj *, int));
  2372.  E int FDECL(damageum, (struct monst *, struct attack *));
  2373.  E void FDECL(missum, (struct monst *, struct attack *, BOOLEAN_P));
  2374.  E int FDECL(passive, (struct monst *, BOOLEAN_P, int, UCHAR_P, BOOLEAN_P));
  2375.  E void FDECL(passive_obj, (struct monst *, struct obj *, struct attack *));
  2376.  E void FDECL(stumble_onto_mimic, (struct monst *));
  2377.  E int FDECL(flash_hits_mon, (struct monst *, struct obj *));
  2378.  E void FDECL(light_hits_gremlin, (struct monst *, int));
  2379.  
  2380.  /* ### unixmain.c ### */
  2381.  
  2382.  #ifdef UNIX
  2383.  #ifdef PORT_HELP
  2384.  E void NDECL(port_help);
  2385.  #endif
  2386.  E void FDECL(sethanguphandler, (void (*)(int)));
  2387.  E boolean NDECL(authorize_wizard_mode);
  2388.  E boolean FDECL(check_user_string, (char *));
  2389.  #endif /* UNIX */
  2390.  
  2391.  /* ### unixtty.c ### */
  2392.  
  2393.  #if defined(UNIX) || defined(__BEOS__)
  2394.  E void NDECL(gettty);
  2395.  E void FDECL(settty, (const char *));
  2396.  E void NDECL(setftty);
  2397.  E void NDECL(intron);
  2398.  E void NDECL(introff);
  2399.  E void VDECL(error, (const char *, ...)) PRINTF_F(1, 2);
  2400.  #endif /* UNIX || __BEOS__ */
  2401.  
  2402.  /* ### unixunix.c ### */
  2403.  
  2404.  #ifdef UNIX
  2405.  E void NDECL(getlock);
  2406.  E void FDECL(regularize, (char *));
  2407.  #if defined(TIMED_DELAY) && !defined(msleep) && defined(SYSV)
  2408.  E void FDECL(msleep, (unsigned));
  2409.  #endif
  2410.  #ifdef SHELL
  2411.  E int NDECL(dosh);
  2412.  #endif /* SHELL */
  2413.  #if defined(SHELL) || defined(DEF_PAGER) || defined(DEF_MAILREADER)
  2414.  E int FDECL(child, (int));
  2415.  #endif
  2416.  #ifdef PANICTRACE
  2417.  E boolean FDECL(file_exists, (const char *));
  2418.  #endif
  2419.  #endif /* UNIX */
  2420.  
  2421.  /* ### unixres.c ### */
  2422.  
  2423.  #ifdef UNIX
  2424.  #ifdef GNOME_GRAPHICS
  2425.  E int FDECL(hide_privileges, (BOOLEAN_P));
  2426.  #endif
  2427.  #endif /* UNIX */
  2428.  
  2429.  /* ### vault.c ### */
  2430.  
  2431.  E void FDECL(newegd, (struct monst *));
  2432.  E void FDECL(free_egd, (struct monst *));
  2433.  E boolean FDECL(grddead, (struct monst *));
  2434.  E char FDECL(vault_occupied, (char *));
  2435.  E void NDECL(invault);
  2436.  E int FDECL(gd_move, (struct monst *));
  2437.  E void NDECL(paygd);
  2438.  E long NDECL(hidden_gold);
  2439.  E boolean NDECL(gd_sound);
  2440.  E void FDECL(vault_gd_watching, (unsigned int));
  2441.  
  2442.  /* ### version.c ### */
  2443.  
  2444.  E char *FDECL(version_string, (char *));
  2445.  E char *FDECL(getversionstring, (char *));
  2446.  E int NDECL(doversion);
  2447.  E int NDECL(doextversion);
  2448.  #ifdef MICRO
  2449.  E boolean FDECL(comp_times, (long));
  2450.  #endif
  2451.  E boolean
  2452.  FDECL(check_version, (struct version_info *, const char *, BOOLEAN_P));
  2453.  E boolean FDECL(uptodate, (int, const char *));
  2454.  E void FDECL(store_version, (int));
  2455.  E unsigned long FDECL(get_feature_notice_ver, (char *));
  2456.  E unsigned long NDECL(get_current_feature_ver);
  2457.  E const char *FDECL(copyright_banner_line, (int));
  2458.  
  2459.  #ifdef RUNTIME_PORT_ID
  2460.  E void FDECL(append_port_id, (char *));
  2461.  #endif
  2462.  
  2463.  /* ### video.c ### */
  2464.  
  2465.  #ifdef MSDOS
  2466.  E int FDECL(assign_video, (char *));
  2467.  #ifdef NO_TERMS
  2468.  E void NDECL(gr_init);
  2469.  E void NDECL(gr_finish);
  2470.  #endif
  2471.  E void FDECL(tileview, (BOOLEAN_P));
  2472.  #endif
  2473.  #ifdef VIDEOSHADES
  2474.  E int FDECL(assign_videoshades, (char *));
  2475.  E int FDECL(assign_videocolors, (char *));
  2476.  #endif
  2477.  
  2478.  /* ### vis_tab.c ### */
  2479.  
  2480.  #ifdef VISION_TABLES
  2481.  E void NDECL(vis_tab_init);
  2482.  #endif
  2483.  
  2484.  /* ### vision.c ### */
  2485.  
  2486.  E void NDECL(vision_init);
  2487.  E int FDECL(does_block, (int, int, struct rm *));
  2488.  E void NDECL(vision_reset);
  2489.  E void FDECL(vision_recalc, (int));
  2490.  E void FDECL(block_point, (int, int));
  2491.  E void FDECL(unblock_point, (int, int));
  2492.  E boolean FDECL(clear_path, (int, int, int, int));
  2493.  E void FDECL(do_clear_area, (int, int, int,
  2494.                               void (*)(int, int, genericptr), genericptr_t));
  2495.  E unsigned FDECL(howmonseen, (struct monst *));
  2496.  
  2497.  #ifdef VMS
  2498.  
  2499.  /* ### vmsfiles.c ### */
  2500.  
  2501.  E int FDECL(vms_link, (const char *, const char *));
  2502.  E int FDECL(vms_unlink, (const char *));
  2503.  E int FDECL(vms_creat, (const char *, unsigned int));
  2504.  E int FDECL(vms_open, (const char *, int, unsigned int));
  2505.  E boolean FDECL(same_dir, (const char *, const char *));
  2506.  E int FDECL(c__translate, (int));
  2507.  E char *FDECL(vms_basename, (const char *));
  2508.  
  2509.  /* ### vmsmail.c ### */
  2510.  
  2511.  E unsigned long NDECL(init_broadcast_trapping);
  2512.  E unsigned long NDECL(enable_broadcast_trapping);
  2513.  E unsigned long NDECL(disable_broadcast_trapping);
  2514.  #if 0
  2515.  E struct mail_info *NDECL(parse_next_broadcast);
  2516.  #endif /*0*/
  2517.  
  2518.  /* ### vmsmain.c ### */
  2519.  
  2520.  E int FDECL(main, (int, char **));
  2521.  #ifdef CHDIR
  2522.  E void FDECL(chdirx, (const char *, BOOLEAN_P));
  2523.  #endif /* CHDIR */
  2524.  E void FDECL(sethanguphandler, (void (*)(int)));
  2525.  E boolean NDECL(authorize_wizard_mode);
  2526.  
  2527.  /* ### vmsmisc.c ### */
  2528.  
  2529.  E void NDECL(vms_abort) NORETURN;
  2530.  E void FDECL(vms_exit, (int)) NORETURN;
  2531.  #ifdef PANICTRACE
  2532.  E void FDECL(vms_traceback, (int));
  2533.  #endif
  2534.  
  2535.  /* ### vmstty.c ### */
  2536.  
  2537.  E int NDECL(vms_getchar);
  2538.  E void NDECL(gettty);
  2539.  E void FDECL(settty, (const char *));
  2540.  E void FDECL(shuttty, (const char *));
  2541.  E void NDECL(setftty);
  2542.  E void NDECL(intron);
  2543.  E void NDECL(introff);
  2544.  E void VDECL(error, (const char *, ...)) PRINTF_F(1, 2);
  2545.  #ifdef TIMED_DELAY
  2546.  E void FDECL(msleep, (unsigned));
  2547.  #endif
  2548.  
  2549.  /* ### vmsunix.c ### */
  2550.  
  2551.  E void NDECL(getlock);
  2552.  E void FDECL(regularize, (char *));
  2553.  E int NDECL(vms_getuid);
  2554.  E boolean FDECL(file_is_stmlf, (int));
  2555.  E int FDECL(vms_define, (const char *, const char *, int));
  2556.  E int FDECL(vms_putenv, (const char *));
  2557.  E char *NDECL(verify_termcap);
  2558.  #if defined(CHDIR) || defined(SHELL) || defined(SECURE)
  2559.  E void NDECL(privoff);
  2560.  E void NDECL(privon);
  2561.  #endif
  2562.  #ifdef SHELL
  2563.  E int NDECL(dosh);
  2564.  #endif
  2565.  #if defined(SHELL) || defined(MAIL)
  2566.  E int FDECL(vms_doshell, (const char *, BOOLEAN_P));
  2567.  #endif
  2568.  #ifdef SUSPEND
  2569.  E int NDECL(dosuspend);
  2570.  #endif
  2571.  #ifdef SELECTSAVED
  2572.  E int FDECL(vms_get_saved_games, (const char *, char ***));
  2573.  #endif
  2574.  
  2575.  #endif /* VMS */
  2576.  
  2577.  /* ### weapon.c ### */
  2578.  
  2579.  E const char *FDECL(weapon_descr, (struct obj *));
  2580.  E int FDECL(hitval, (struct obj *, struct monst *));
  2581.  E int FDECL(dmgval, (struct obj *, struct monst *));
  2582.  E struct obj *FDECL(select_rwep, (struct monst *));
  2583.  E struct obj *FDECL(select_hwep, (struct monst *));
  2584.  E void FDECL(possibly_unwield, (struct monst *, BOOLEAN_P));
  2585.  E void FDECL(mwepgone, (struct monst *));
  2586.  E int FDECL(mon_wield_item, (struct monst *));
  2587.  E int NDECL(abon);
  2588.  E int NDECL(dbon);
  2589.  E void FDECL(wet_a_towel, (struct obj *, int, BOOLEAN_P));
  2590.  E void FDECL(dry_a_towel, (struct obj *, int, BOOLEAN_P));
  2591.  E int NDECL(enhance_weapon_skill);
  2592.  E void FDECL(unrestrict_weapon_skill, (int));
  2593.  E void FDECL(use_skill, (int, int));
  2594.  E void FDECL(add_weapon_skill, (int));
  2595.  E void FDECL(lose_weapon_skill, (int));
  2596.  E int FDECL(weapon_type, (struct obj *));
  2597.  E int NDECL(uwep_skill_type);
  2598.  E int FDECL(weapon_hit_bonus, (struct obj *));
  2599.  E int FDECL(weapon_dam_bonus, (struct obj *));
  2600.  E void FDECL(skill_init, (const struct def_skill *));
  2601.  
  2602.  /* ### were.c ### */
  2603.  
  2604.  E void FDECL(were_change, (struct monst *));
  2605.  E int FDECL(counter_were, (int));
  2606.  E int FDECL(were_beastie, (int));
  2607.  E void FDECL(new_were, (struct monst *));
  2608.  E int FDECL(were_summon, (struct permonst *, BOOLEAN_P, int *, char *));
  2609.  E void NDECL(you_were);
  2610.  E void FDECL(you_unwere, (BOOLEAN_P));
  2611.  
  2612.  /* ### wield.c ### */
  2613.  
  2614.  E void FDECL(setuwep, (struct obj *));
  2615.  E void FDECL(setuqwep, (struct obj *));
  2616.  E void FDECL(setuswapwep, (struct obj *));
  2617.  E int NDECL(dowield);
  2618.  E int NDECL(doswapweapon);
  2619.  E int NDECL(dowieldquiver);
  2620.  E boolean FDECL(wield_tool, (struct obj *, const char *));
  2621.  E int NDECL(can_twoweapon);
  2622.  E void NDECL(drop_uswapwep);
  2623.  E int NDECL(dotwoweapon);
  2624.  E void NDECL(uwepgone);
  2625.  E void NDECL(uswapwepgone);
  2626.  E void NDECL(uqwepgone);
  2627.  E void NDECL(untwoweapon);
  2628.  E int FDECL(chwepon, (struct obj *, int));
  2629.  E int FDECL(welded, (struct obj *));
  2630.  E void FDECL(weldmsg, (struct obj *));
  2631.  E void FDECL(setmnotwielded, (struct monst *, struct obj *));
  2632.  E boolean FDECL(mwelded, (struct obj *));
  2633.  
  2634.  /* ### windows.c ### */
  2635.  
  2636.  E void FDECL(choose_windows, (const char *));
  2637.  #ifdef WINCHAIN
  2638.  void FDECL(addto_windowchain, (const char *s));
  2639.  void NDECL(commit_windowchain);
  2640.  #endif
  2641.  E boolean NDECL(genl_can_suspend_no);
  2642.  E boolean NDECL(genl_can_suspend_yes);
  2643.  E char FDECL(genl_message_menu, (CHAR_P, int, const char *));
  2644.  E void FDECL(genl_preference_update, (const char *));
  2645.  E char *FDECL(genl_getmsghistory, (BOOLEAN_P));
  2646.  E void FDECL(genl_putmsghistory, (const char *, BOOLEAN_P));
  2647.  #ifdef HANGUPHANDLING
  2648.  E void NDECL(nhwindows_hangup);
  2649.  #endif
  2650.  #ifdef STATUS_VIA_WINDOWPORT
  2651.  E void NDECL(genl_status_init);
  2652.  E void NDECL(genl_status_finish);
  2653.  E void FDECL(genl_status_enablefield,
  2654.               (int, const char *, const char *, BOOLEAN_P));
  2655.  E void FDECL(genl_status_update, (int, genericptr_t, int, int));
  2656.  #ifdef STATUS_HILITES
  2657.  E void FDECL(genl_status_threshold, (int, int, anything, int, int, int));
  2658.  #endif
  2659.  #endif
  2660.  
  2661.  /* ### wizard.c ### */
  2662.  
  2663.  E void NDECL(amulet);
  2664.  E int FDECL(mon_has_amulet, (struct monst *));
  2665.  E int FDECL(mon_has_special, (struct monst *));
  2666.  E int FDECL(tactics, (struct monst *));
  2667.  E void NDECL(aggravate);
  2668.  E void NDECL(clonewiz);
  2669.  E int NDECL(pick_nasty);
  2670.  E int FDECL(nasty, (struct monst *));
  2671.  E void NDECL(resurrect);
  2672.  E void NDECL(intervene);
  2673.  E void NDECL(wizdead);
  2674.  E void FDECL(cuss, (struct monst *));
  2675.  
  2676.  /* ### worm.c ### */
  2677.  
  2678.  E int NDECL(get_wormno);
  2679.  E void FDECL(initworm, (struct monst *, int));
  2680.  E void FDECL(worm_move, (struct monst *));
  2681.  E void FDECL(worm_nomove, (struct monst *));
  2682.  E void FDECL(wormgone, (struct monst *));
  2683.  E void FDECL(wormhitu, (struct monst *));
  2684.  E void FDECL(cutworm, (struct monst *, XCHAR_P, XCHAR_P, struct obj *));
  2685.  E void FDECL(see_wsegs, (struct monst *));
  2686.  E void FDECL(detect_wsegs, (struct monst *, BOOLEAN_P));
  2687.  E void FDECL(save_worm, (int, int));
  2688.  E void FDECL(rest_worm, (int));
  2689.  E void FDECL(place_wsegs, (struct monst *));
  2690.  E void FDECL(remove_worm, (struct monst *));
  2691.  E void FDECL(place_worm_tail_randomly, (struct monst *, XCHAR_P, XCHAR_P));
  2692.  E int FDECL(count_wsegs, (struct monst *));
  2693.  E boolean FDECL(worm_known, (struct monst *));
  2694.  E boolean FDECL(worm_cross, (int, int, int, int));
  2695.  
  2696.  /* ### worn.c ### */
  2697.  
  2698.  E void FDECL(setworn, (struct obj *, long));
  2699.  E void FDECL(setnotworn, (struct obj *));
  2700.  E long FDECL(wearslot, (struct obj *));
  2701.  E void FDECL(mon_set_minvis, (struct monst *));
  2702.  E void FDECL(mon_adjust_speed, (struct monst *, int, struct obj *));
  2703.  E void FDECL(update_mon_intrinsics,
  2704.               (struct monst *, struct obj *, BOOLEAN_P, BOOLEAN_P));
  2705.  E int FDECL(find_mac, (struct monst *));
  2706.  E void FDECL(m_dowear, (struct monst *, BOOLEAN_P));
  2707.  E struct obj *FDECL(which_armor, (struct monst *, long));
  2708.  E void FDECL(mon_break_armor, (struct monst *, BOOLEAN_P));
  2709.  E void FDECL(bypass_obj, (struct obj *));
  2710.  E void NDECL(clear_bypasses);
  2711.  E void FDECL(bypass_objlist, (struct obj *, BOOLEAN_P));
  2712.  E struct obj *FDECL(nxt_unbypassed_obj, (struct obj *));
  2713.  E int FDECL(racial_exception, (struct monst *, struct obj *));
  2714.  
  2715.  /* ### write.c ### */
  2716.  
  2717.  E int FDECL(dowrite, (struct obj *));
  2718.  
  2719.  /* ### zap.c ### */
  2720.  
  2721.  E void FDECL(learnwand, (struct obj *));
  2722.  E int FDECL(bhitm, (struct monst *, struct obj *));
  2723.  E void FDECL(probe_monster, (struct monst *));
  2724.  E boolean FDECL(get_obj_location, (struct obj *, xchar *, xchar *, int));
  2725.  E boolean FDECL(get_mon_location, (struct monst *, xchar *, xchar *, int));
  2726.  E struct monst *FDECL(get_container_location,
  2727.                        (struct obj * obj, int *, int *));
  2728.  E struct monst *FDECL(montraits, (struct obj *, coord *));
  2729.  E struct monst *FDECL(revive, (struct obj *, BOOLEAN_P));
  2730.  E int FDECL(unturn_dead, (struct monst *));
  2731.  E void FDECL(cancel_item, (struct obj *));
  2732.  E boolean FDECL(drain_item, (struct obj *));
  2733.  E struct obj *FDECL(poly_obj, (struct obj *, int));
  2734.  E boolean FDECL(obj_resists, (struct obj *, int, int));
  2735.  E boolean FDECL(obj_shudders, (struct obj *));
  2736.  E void FDECL(do_osshock, (struct obj *));
  2737.  E int FDECL(bhito, (struct obj *, struct obj *));
  2738.  E int FDECL(bhitpile,
  2739.              (struct obj *, int (*)(OBJ_P, OBJ_P), int, int, SCHAR_P));
  2740.  E int FDECL(zappable, (struct obj *));
  2741.  E void FDECL(zapnodir, (struct obj *));
  2742.  E int NDECL(dozap);
  2743.  E int FDECL(zapyourself, (struct obj *, BOOLEAN_P));
  2744.  E void FDECL(ubreatheu, (struct attack *));
  2745.  E int FDECL(lightdamage, (struct obj *, BOOLEAN_P, int));
  2746.  E boolean FDECL(flashburn, (long));
  2747.  E boolean FDECL(cancel_monst, (struct monst *, struct obj *, BOOLEAN_P,
  2748.                                 BOOLEAN_P, BOOLEAN_P));
  2749.  E void NDECL(zapsetup);
  2750.  E void NDECL(zapwrapup);
  2751.  E void FDECL(weffects, (struct obj *));
  2752.  E int FDECL(spell_damage_bonus, (int));
  2753.  E const char *FDECL(exclam, (int force));
  2754.  E void FDECL(hit, (const char *, struct monst *, const char *));
  2755.  E void FDECL(miss, (const char *, struct monst *));
  2756.  E struct monst *FDECL(bhit, (int, int, int, int, int (*)(MONST_P, OBJ_P),
  2757.                               int (*)(OBJ_P, OBJ_P), struct obj **));
  2758.  E struct monst *FDECL(boomhit, (struct obj *, int, int));
  2759.  E int FDECL(zhitm, (struct monst *, int, int, struct obj **));
  2760.  E int FDECL(burn_floor_objects, (int, int, BOOLEAN_P, BOOLEAN_P));
  2761.  E void FDECL(buzz, (int, int, XCHAR_P, XCHAR_P, int, int));
  2762.  E void FDECL(melt_ice, (XCHAR_P, XCHAR_P, const char *));
  2763.  E void FDECL(start_melt_ice_timeout, (XCHAR_P, XCHAR_P, long));
  2764.  E void FDECL(melt_ice_away, (ANY_P *, long));
  2765.  E int FDECL(zap_over_floor, (XCHAR_P, XCHAR_P, int, boolean *, SHORT_P));
  2766.  E void FDECL(fracture_rock, (struct obj *));
  2767.  E boolean FDECL(break_statue, (struct obj *));
  2768.  E void FDECL(destroy_item, (int, int));
  2769.  E int FDECL(destroy_mitem, (struct monst *, int, int));
  2770.  E int FDECL(resist, (struct monst *, CHAR_P, int, int));
  2771.  E void NDECL(makewish);
  2772.  
  2773.  #endif /* !MAKEDEFS_C && !LEV_LEX_C */
  2774.  
  2775.  #undef E
  2776.  
  2777.  #endif /* EXTERN_H */