Redesign s_commod()
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 14 Feb 2009 22:30:15 +0000 (23:30 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 17 Feb 2009 18:32:14 +0000 (19:32 +0100)
commit98f24d5cf98ba5f5f4b64f9128edae1bd22beb4b
tree891cbe02b2470be55858f7140b6c8c9bb4c57d18
parent322f96ecb78e55cc285536a0bff380c48c59e2ec
Redesign s_commod()

To implement the supply from self avoidance described in the previous
commit's message, s_commod() needs to be redesigned along the same
principles: take the sink as argument, update and put it.  Also take
an item limit argument, and return whether supply request was fully
met.

Update sct_supply(), shp_supply(), lnd_supply() and
lnd_could_be_supplied().  The former three become straighforward
wrappers.

supply_commod() and try_supply_commod() are now unused, remove them.
src/lib/subs/supply.c