summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
2017-04-02main: skip trying to exit_nicely on failure to init mapHEADmasterJoshua Judson Rosen
exit_nicely() exits from the guile thread before it gets a chance to exit() from the process as a whole. And there's really nothing for the reporting-code in exit_nicely to actually report at this point, anyway.
2017-04-01main: exit with error on failure to init arenaJoshua Judson Rosen
This handler got broken when exit_nicely stopped actually triggering an exit from the entire process and started just exiting the guile thread. And, actually, it never exited with an error-status before-- which it does now.
2017-03-28UI: show for _what_ types of things robot is smelling/feeling/lookingJoshua Judson Rosen
2017-03-28REPL: just use guile's normal REPLJoshua Judson Rosen
This gives _much_ more useful readline behavior, since (ice-9 readline) actually knows how to autocomplete based on the scheme environment, handle multi-line input, etc.; and properly displays return values and error-messages, and supports switching to different front-end programming languages like ecmascript. Note that we're keeping catch_handler so that we have a chance of diagnosing problems that could _conceivably_ occur when interacting with guile during bootstrap (e.g.: missing readline support, changed REPL API...).
2017-03-28catch_handler: restore/fix reporting of actual error-messagesJoshua Judson Rosen
2017-03-28Drop unnecessary spinlock (loading, ploading)Joshua Judson Rosen
After some of the restructuring that was involved in the inversion of the GTK+/guile threads, these variables are no longer needed. Though note that we do actually still busywait specifically on creation of the map.
2017-03-28Invert GTK+/guile thread relationshipJoshua Judson Rosen
Making the GTK+ thread the main thread, and subordinating the guile thread, lets the GUI continue to live after the robot has died-- which means that we'll be able to switch to just doing everything in the GUI without requiring a separate xterm to see the final stats after the robot dies.
2017-03-28Consistently specify directions symbolicallyJoshua Judson Rosen
2017-03-28UI: don't hide counters at startupJoshua Judson Rosen
2017-03-28Stop using deprecated APIs.Joshua Judson Rosen
2009-11-18Fix issues when compiling with optimisations.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-10-14Change email address for Jim Hall, upon request.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-08-03Add Gtk interface. Using a Vte for guile input.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-05-17Upgrade license to GPLv3 or later. Bump version to 1.1.1.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-05-14Prepare for release of 1.1.0.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-05-05Scrap plug-able interfaces in preparation for GTK GUI.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-12Make UI update in a loop, and thread out input.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-09Corrected all copyright headers, and misc cleanups.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-08Add error message when given an invalid instruction.Bradley Smith
Add initial ui update to avoid corruption. Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-08Add -Wall and -Wfatal-errors compile flags, and correct code to compile cleanly.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-03-07Add -pedantic-errors and -Werror flags to compile, and fix code to comply.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-01-21Reformatted src/api.c.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-01-21Reformatted src/main.c.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
2008-01-21Imported GNU robots from CVS.Bradley Smith
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>