summaryrefslogtreecommitdiff
path: root/src/util.cc
Commit message (Collapse)AuthorAge
* Refactor messages.cc to use boost::circular_bufferBardur Arantsson2016-09-17
| | | | | We might as well delegate the massive implementation complexity and get rid of a ton of legacy code.
* Remove quark.{cc,hpp}Bardur Arantsson2016-09-17
|
* Refactor object_type 'inscription' field to std::stringBardur Arantsson2016-09-17
| | | | | We don't really need quarks for this since we're not nearly as memory-constrained these days.
* Move all options to a struct instead of using globalsBardur Arantsson2016-09-17
|
* Factor out 'flush_failure' option handlingBardur Arantsson2016-09-17
|
* Introduce std::string overloads for prt() and c_prt()Bardur Arantsson2016-09-17
|
* Remove effectively dead sound() codeBardur Arantsson2016-09-17
|
* Remove 'alert_failure' optionBardur Arantsson2016-06-23
| | | | It does nothing interesting anyway.
* Fix edge condition preventing errors from being displayedBardur Arantsson2016-03-10
|
* Remove path_temp in favor of boost::fs::unique_path()Bardur Arantsson2016-02-05
| | | | This gets rid of one #ifdef WINDOWS hack at least.
* Use explicit cast to avoid warningsBardur Arantsson2016-02-05
|
* Make get_player_race_name() return a std::stringBardur Arantsson2016-02-05
|
* Make get_day() return std::stringBardur Arantsson2016-02-05
|
* Remove MACINTOSH-compatibility codeBardur Arantsson2015-12-29
|
* Remove get_month_name()Bardur Arantsson2015-12-28
| | | | | Use simple numbered days instead and remove START_{DAY,YEAR} since they are no longer used.
* Reduce scope of askfor_aux_complete variable to single fileBardur Arantsson2015-12-11
|
* Remove one-use my_fputs()Bardur Arantsson2015-12-11
|
* Split types.h into separate header for each typeBardur Arantsson2015-06-07
|
* Rename miscellaneous .h headers to .hppBardur Arantsson2015-03-22
|
* Change in_bounds* and panel_contains macros to functions in util.ccBardur Arantsson2015-03-07
|
* Split variables.cc declarations to separate header filesBardur Arantsson2015-03-07
| | | | | - Can now remove externs.h. Yay! - Put a stray option variable into its rightful place in options.hpp
* Split tables.cc declarations into separate header filesBardur Arantsson2015-03-07
|
* Split option variables into separate header and source fileBardur Arantsson2015-03-07
| | | | | | | | | Remove unused testing_stack testing_carry options while we're at it.
* Split init1.cc declarations into separate header fileBardur Arantsson2015-03-07
|
* Split util.cc function declarations into separate header filesBardur Arantsson2015-02-23
| | | | | We need one .h file and one .hpp since some of the functions are being called from plain C code.
* Move cmd4.cc function declarations to separate header fileBardur Arantsson2015-02-23
| | | | Remove a little dead code while we're at it.
* Move cmd3.cc function declarations to separate headerBardur Arantsson2015-02-23
|
* Remove dead codeBardur Arantsson2015-02-23
|
* Move xtra1.cc function declarations to separate headerBardur Arantsson2015-02-23
| | | | | Make a couple of functions private to the module while we're at it.
* Remove rp_head, rp_name, rp_text, rmp_head, rmp_name, rmp_textBardur Arantsson2015-02-23
|
* Remove re_head, re_nameBardur Arantsson2015-02-23
|
* Remove effectively unused variablesBardur Arantsson2015-02-23
|
* Remove k_name, k_text, k_head in favor of simple stringsBardur Arantsson2015-02-23
|
* Remove r_name, r_text, r_head in favor of simple stringsBardur Arantsson2015-02-23
|
* Fix buffer overflow in askfor_aux()Bardur Arantsson2015-02-23
|
* Clean up warnings about signed/unsigned comparisonsBardur Arantsson2015-02-23
|
* Replace usleep with C++11 this_thread::sleep_for()Bardur Arantsson2014-12-16
| | | | | | | Also remove TERM_XTRA_DELAY. The terminal abstraction should not be used for providing general platform independence. As a side effect this reintroduces support for "delay" on SDL, not sure if that's a good idea or not.
* Replace uses of stricmp with boost::algorithm::iequalsBardur Arantsson2014-12-16
|
* Remove "extern" declarations for getpw{uid,nam}Bardur Arantsson2014-12-16
| | | | | If they're available on the platform they should be included via proper includes, not via "extern" decls.
* Remove lots of obsolete platform definesBardur Arantsson2014-12-16
|
* Remove core() and core_auxBardur Arantsson2014-12-15
| | | | | | Invoking undefined behavior is not the correct way to get a core dump. Plus there's only a single caller, only used in truly bizarre circumstances.
* Remove inkey_scan and inkey_xtra globalsBardur Arantsson2014-11-20
|
* Remove "platform" sound supportBardur Arantsson2014-07-02
|
* Remove most of z-virt.[ch]Bardur Arantsson2014-06-27
| | | | | This commit leaves only safe_calloc() as a convenient "non-failing" calloc().
* Remove shim memset() implementationBardur Arantsson2014-06-26
|
* Simplify PR_* redraw code and remove direct references to Term membersBardur Arantsson2014-06-26
|
* Remove unused scansubdir() and TERM_XTRA_SCANSUBDIRBardur Arantsson2014-06-26
|
* Remove unused del_timer()Bardur Arantsson2014-06-25
|
* Remove MACH_O_CARBON codeBardur Arantsson2014-06-25
| | | | It's been a long time since Carbon was relevant.
* Remove cmovie supportBardur Arantsson2014-06-25
|