(at_minimum, blocksig, emp_bitinit, filelogerror, iceil, ifloor,
mapdsq, mask, signame, strscan, sys_siglist, typed_wire, unblocksig): Unused, remove. (add_airport, add_to_fired_queue, air_damage, anti_torp, best_path, bitinit2, blankrow, bmnxtsct, bp_init, build_mission_list, build_mission_list_type, buildeff, candchrg, canshoot, cantorp, cede_sect, cede_ship, checksect, client_cmd, coun_cmd, deity_build_land, divide, do_conv, do_defdam, do_demo, do_desi, do_mob_land, do_mob_plane, do_mob_sect, do_mob_ship, do_prod, docountry, doland, doplane, doship, dosupport, dotsprintf, dounit, empth_start, enlist, errcheck, filereport, find_airport, find_escorts, findcondition, fire_dchrg, fire_torp, fltp_to_list, get_minimum, getin, goodsect, grab_sect, grab_ship, grow_people, growfood, in_addr, infect_people, init_mchr, init_pchr, init_plchr, is_engineer, itemname, kill_cmd, landrepair, limit_level, list_cmd, lupgr, materials_charge, materials_cost, meltitems, mission_pln_arm, mission_pln_sel, move_map, nat_cap, num_units, outid, pass_cmd, perform_mission, pinflak_planedamage, play_cmd, pln_equip, prexpense, print_res, prplanes, prunits, pupgr, quiet_bigdef, quit_cmd, radmap2, retreat_land1, retreat_ship1, s_commod, sanc_cmd, sarg_getrange, scuttle_it, scuttle_land, set_target, share_incr, shiprepair, shp_check_mines, shp_check_nav, shp_check_one_mines, shp_hit_mine, shp_interdict, shp_mess, sort_lookup_list, starvation, supgr, swap, take_casualties, trunc_people, upd_buildeff, upd_land, upd_ship, use_ammo, user_cmd): Change linkage to static.
This commit is contained in:
parent
f883ed1620
commit
2fe312adac
58 changed files with 273 additions and 693 deletions
|
@ -56,20 +56,22 @@
|
|||
#include "commands.h"
|
||||
|
||||
#define END -1
|
||||
static void prnat(natid n);
|
||||
static void pr_plane(struct plnstr *plane);
|
||||
static void pr_land(struct lndstr *land);
|
||||
static void pr_ship(struct shpstr *ship);
|
||||
static void prsect(struct sctstr *sect);
|
||||
|
||||
static void benefit(natid who, int good);
|
||||
static int docountry(s_char op, int arg, s_char *p, float farg, natid nat,
|
||||
struct natstr *np);
|
||||
static int doland(s_char op, int arg, s_char *p, struct sctstr *sect);
|
||||
static int doplane(s_char op, int arg, s_char *p, struct plnstr *plane);
|
||||
static int doship(s_char op, int arg, s_char *p, struct shpstr *ship);
|
||||
static int dounit(s_char op, int arg, s_char *p, struct lndstr *land);
|
||||
static int getin(s_char **, s_char **, int *, s_char *);
|
||||
static void noise(struct sctstr *sptr, int public_amt, s_char *name,
|
||||
int old, int new);
|
||||
static void benefit(natid who, int good);
|
||||
int doland(s_char op, int arg, s_char *p, struct sctstr *sect);
|
||||
int docountry(s_char op, int arg, s_char *p, float farg, natid nat,
|
||||
struct natstr *np);
|
||||
int doship(s_char op, int arg, s_char *p, struct shpstr *ship);
|
||||
int dounit(s_char op, int arg, s_char *p, struct lndstr *land);
|
||||
int doplane(s_char op, int arg, s_char *p, struct plnstr *plane);
|
||||
static void pr_land(struct lndstr *land);
|
||||
static void pr_plane(struct plnstr *plane);
|
||||
static void pr_ship(struct shpstr *ship);
|
||||
static void prnat(natid n);
|
||||
static void prsect(struct sctstr *sect);
|
||||
|
||||
|
||||
int
|
||||
|
@ -449,7 +451,7 @@ pr_ship(struct shpstr *ship)
|
|||
pr("\n");
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
errcheck(int num, int min, int max)
|
||||
{
|
||||
if (num < min)
|
||||
|
@ -459,7 +461,7 @@ errcheck(int num, int min, int max)
|
|||
return (num);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
getin(s_char **what, s_char **p, int *arg, s_char *buf)
|
||||
{
|
||||
if (!(*what = getstarg(*p, "%c xxxxx -- thing value : ", buf))) {
|
||||
|
@ -482,7 +484,7 @@ getin(s_char **what, s_char **p, int *arg, s_char *buf)
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
static int
|
||||
doland(s_char op, int arg, s_char *p, struct sctstr *sect)
|
||||
{
|
||||
natid newown, oldown;
|
||||
|
@ -684,8 +686,7 @@ doland(s_char op, int arg, s_char *p, struct sctstr *sect)
|
|||
}
|
||||
|
||||
|
||||
|
||||
int
|
||||
static int
|
||||
docountry(s_char op, int arg, s_char *p, float farg, natid nat,
|
||||
struct natstr *np)
|
||||
{
|
||||
|
@ -785,7 +786,7 @@ docountry(s_char op, int arg, s_char *p, float farg, natid nat,
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
static int
|
||||
doship(s_char op, int arg, s_char *p, struct shpstr *ship)
|
||||
{
|
||||
coord newx, newy;
|
||||
|
@ -957,7 +958,7 @@ doship(s_char op, int arg, s_char *p, struct shpstr *ship)
|
|||
return RET_OK;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
dounit(s_char op, int arg, s_char *p, struct lndstr *land)
|
||||
{
|
||||
coord newx, newy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue