Commit Graph

2095 Commits

Author SHA1 Message Date
aa780963e0 io: support piped streams in slurp 2016-04-19 14:52:05 +10:00
568af11a0a debug: remove nullary panic function
panic without message tended to promote useless console output. if it's
worth panicing over it's worth writing a oneliner.
2016-04-19 14:50:13 +10:00
3a6faca98f maths: use structured assertions in imit 2016-04-19 14:49:17 +10:00
335703b147 debug: cache win32 error code before logging
the code beneath LOG_WARNING and friends is opaque, and may accidentally
replace the value of GetLastError before we have a chance to render it.
2016-04-15 15:56:51 +10:00
755ba5a6a7 except: explicitly qualify win32 message table
if the mesage table isn't specified when formatting error codes some
systems will fail to render the string.
2016-04-15 15:55:30 +10:00
fa8933673f Merge branch 'master' of github.com:gim/libgim 2016-04-15 12:33:39 +10:00
f94f0ec7c9 colour: add istream operator 2016-04-15 12:31:36 +10:00
87482522d7 colour: prefer to avoid stream::numeric for output 2016-04-15 12:31:36 +10:00
b867298093 cmdopt: don't throw at end of option text 2016-04-15 12:30:57 +10:00
c648c8b22c m4: bump nc_subpackage
removes inadvertant debugging output
2016-04-14 18:55:38 +10:00
08e688bc1e format: add basic hex specifier support 2016-04-14 18:54:52 +10:00
dd00f4167a log: break after printing the log message 2016-04-06 13:50:44 +10:00
e321b9eee7 enable optional inline dependency build 2016-04-05 11:11:59 +10:00
815e027b24 win32 build fixes 2016-04-05 11:11:19 +10:00
25520b6097 backtrace: fully qualify std types 2016-04-05 11:09:28 +10:00
e4beb5e965 backtrace: minimise excess headers 2016-04-05 11:08:58 +10:00
486706269c debug: fully qualify std types 2016-04-05 11:08:12 +10:00
b79a2242a4 debug: warn if win32 debug helper can't be loaded 2016-04-05 11:07:53 +10:00
80158b7343 io: remove our wrapper flag types 2016-04-05 11:07:23 +10:00
9bbcfa6e63 make header paths more explicit 2016-04-05 11:06:35 +10:00
679a2c9e71 except: add code to string for win32 2016-04-05 11:04:50 +10:00
678e12216b time: use std::chrono for nanoseconds query 2016-04-05 11:02:54 +10:00
f644c5dec4 log: forward logging arguments 2016-04-05 10:48:08 +10:00
60b65a9a24 log: add ANSI colours to output 2016-03-21 14:21:14 +11:00
341301e9ab term: add trivial ANSI colour escapes 2016-03-21 14:20:39 +11:00
61db3f969f string: define tokeniser::cbegin/cend 2016-03-21 14:20:04 +11:00
c15794d4b3 debug: make DEBUG_WAIT support more robust
PTRACE_ME doesn't work as we thought, instead just deliver a suitable
signal depending on if we're currently under a debugger.
2016-03-21 14:19:08 +11:00
eacd2f6072 string: allow cstring tokenisers 2016-03-18 11:08:12 +11:00
6a1ea8ff29 string: add tokeniser 2016-03-17 18:14:40 +11:00
28d44593d8 view: add make_view, ref-qualifiers, comparators 2016-03-17 18:14:40 +11:00
6fda597e07 dont overinclude iostream headers 2016-03-17 18:14:40 +11:00
1cdc6b4bad use more explicit constructors 2016-03-17 18:14:40 +11:00
b263bbef0a pascal: make size/data private 2016-03-17 18:14:40 +11:00
61e1d6a303 log: expose less const, use more const 2016-03-17 18:08:02 +11:00
a73bf29e03 io: style 2016-03-17 18:07:45 +11:00
b864ffa00b io: find the exact storage for the FILE overload 2016-03-17 18:07:08 +11:00
ecb97143cf io: don't add a null terminator with slurp 2016-03-17 18:06:45 +11:00
ab330cc520 add ref-qualifiers to avoid dangling refs/ptrs 2016-03-17 18:05:28 +11:00
42806d2060 view: don't include iostream when ostream suffices 2016-03-16 19:28:35 +11:00
bac238a5ef view: remove restrict before calculating value_type
restrict is poorly handled under libstdc++ in gcc-5.3
2016-03-16 19:27:58 +11:00
cac706dd3c types/traits: add remove_restrict 2016-03-16 19:27:39 +11:00
678462ba65 introspection: add type_string_v 2016-03-16 19:27:22 +11:00
9036a26743 scratch: add forgotten header
sigh..
2016-03-15 13:57:19 +11:00
f13c4487c6 cmdopt: add positional argument support 2016-03-15 13:56:13 +11:00
8ea827aab0 tools/scratch: remove inadvertantly committed code
scratch should always be a noop. It's only here to simplify testing of
new code.
2016-03-15 12:30:23 +11:00
5b91320a95 introspection: namespace fixes for enums 2016-03-14 22:34:14 +11:00
2786b88bd1 introspection: type_string specialisations for strings 2016-03-14 22:33:22 +11:00
9e9477858b coord: add trivial operation tests 2016-03-14 22:32:52 +11:00
df08e33552 preprocessor: add map macro with one argument 2016-03-14 22:32:25 +11:00
039113b661 coord/store: enforce 16 byte alignment for arity 4 2016-03-14 22:31:50 +11:00