dfhack/library
Stephen Baynham 74f5df99db Add job remove method
Job remove eliminates a job's worker & holder references, if any, puts
the worker on cd, if appropriate, removes the job's postings, eliminates
the job from the global linked list, and then finally deletes it.  This
code was tested by incorporating it into autochop and it does make the
plugin work.  However, chop jobs don't have holder building references,
and anyway, with DF being 90% edge case by volume, this could use a heck
of a lot more testing.

I saw elsewhere code that prevented worker removal if the job was a
special job, and that made me feel funny so I made the job remove method
not work if the job is a special job.
2016-11-17 19:54:41 -08:00
..
DataStaticsFields Split DataStaticsFields into multiple compilation units 2016-03-22 17:34:25 -04:00
doc Many tweaks to plugins, reorganized the build system and removed more cruft. 2011-08-14 08:42:21 +02:00
include Add job remove method 2016-11-17 19:54:41 -08:00
lua Fixes to gui/advfort.lua 2016-05-20 13:55:59 +03:00
modules Add job remove method 2016-11-17 19:54:41 -08:00
proto Support calling a lua function via a protobuf request. 2014-02-10 20:09:06 +04:00
xml@7d312334c3 Update NEWS and submodules 2016-07-06 20:59:49 -04:00
CMakeLists.txt Merge pull request #950 from TC01/linux-system-tinyxml 2016-07-06 20:37:28 -04:00
ColorText.cpp Add missing <algorithm> include for std::min & std::max 2014-11-09 11:19:40 +01:00
Console-posix.cpp Use TCSADRAIN when disabling raw mode as well 2015-10-14 15:58:27 -04:00
Console-windows.cpp hide/show: Provide feedback on unsupported platforms 2015-02-08 09:30:40 -05:00
Core.cpp Give more feedback for DF detection failures with mismatched XML versions 2016-06-30 20:42:27 -04:00
DFHackVersion.cpp Remove a couple unneeded includes 2016-03-04 20:23:00 -05:00
DataDefs.cpp Support std::fstream in data structures and add file_compressorst to xml. 2014-09-24 22:47:04 +04:00
DataStatics.cpp Add support for primitive type fields in lua wrapper. 2012-03-20 13:56:29 +04:00
DataStaticsCtor.cpp Header changes/cleanup. 2011-12-31 12:48:42 +01:00
DataStaticsFields.cpp Split DataStaticsFields into multiple compilation units 2016-03-22 17:34:25 -04:00
Hooks-darwin.cpp Only block keyboard events in OS X SDL_PollEvent hook without focus 2016-03-13 10:33:25 -04:00
Hooks-egg.cpp Fix bug #188, eggy hook 2013-04-24 17:50:34 +02:00
Hooks-linux.cpp Fix a few GCC warnings on Linux (GCC 4.6) 2015-11-05 21:48:13 -05:00
Hooks-windows.cpp Make SDL_UpperBlit hook check core status first 2015-12-05 20:07:54 -05:00
LuaApi.cpp Expose new unit functions to lua and add some basic safety checks 2016-04-23 21:52:50 -04:00
LuaTools.cpp Improve handling of fatal errors and errors in dfhack.lua 2015-10-17 21:18:04 -04:00
LuaTypes.cpp Implement strnlen on OS X <= 10.6 2015-08-24 17:51:42 -04:00
LuaWrapper.cpp Add Lua primitives: ptr-string, pointer, ptr-vector, bit-vector, bit-array 2016-04-03 20:48:57 -04:00
MiscUtils.cpp fix word_wrap not returning a value. 2016-06-16 20:52:16 +05:30
PlugLoad-posix.cpp Remove AS prefixes from add-spatter.cpp 2015-02-19 12:05:32 -05:00
PlugLoad-windows.cpp Update license, add contributors file, bump release number 2012-09-30 04:03:37 +02:00
PluginManager.cpp Revert #719 2016-01-01 11:20:54 -05:00
Process-darwin.cpp Expose process MD5/PE to Lua (useful in export-dt-ini) 2015-12-27 14:59:18 -05:00
Process-linux.cpp allow dfhack to run inside valgrind 2016-01-31 13:34:07 -06:00
Process-windows.cpp Expose process MD5/PE to Lua (useful in export-dt-ini) 2015-12-27 14:59:18 -05:00
RemoteClient.cpp Update clsocket and Open()/Listen() usage 2016-06-14 13:21:51 -04:00
RemoteServer.cpp Update clsocket and Open()/Listen() usage 2016-06-14 13:21:51 -04:00
RemoteTools.cpp Move get_dfhack_version() to a separate namespace and add a few other version-related functions 2015-04-02 16:37:58 -04:00
TileTypes.cpp Implement a MapCache api for writing base layer tiles of arbitrary stone. 2013-10-10 12:15:50 +04:00
Types.cpp Add Filesystem::listdir() 2015-01-28 19:15:58 -05:00
VTableInterpose.cpp Improve logging of vtable interpose errors 2016-05-11 17:52:10 -04:00
VersionInfoFactory.cpp Log more information about version information on startup 2015-09-22 20:01:05 -04:00
binpatch.cpp Fix the error message produced by binpatch when a mismatch is detected. 2012-10-27 15:35:11 +04:00
dfhack-run.cpp Support calling a lua function via a protobuf request. 2014-02-10 20:09:06 +04:00
git-describe.cmake git-describe: Add git xml information 2016-02-01 10:30:53 -05:00