Commit Graph

3222 Commits

Author SHA1 Message Date
456362adff t/json-validate: catch only json exceptions
the json namespace should really only be throwing json errors. this tool
is primarily used for unit testing, so it's better it crashes
catastrophically on an unhandled exception.
2016-04-27 17:10:36 +10:00
2fbf9af8cb t/json-schema: reduce scope of schema and input 2016-04-27 17:09:48 +10:00
c810056a70 m4/debugging: add stabs debug symbols
win32 seems to have some level of stabs capabilities
2016-04-27 17:07:55 +10:00
5b58e0afa6 json/flat: don't try to parse empty files
avoids debug assertions fetching data pointer on empty mappings
2016-04-27 17:07:20 +10:00
25913ac885 io: bump copyright year 2016-04-27 17:06:25 +10:00
de6ea736a1 io_posix: add mapped_file::empty implementation 2016-04-27 17:06:09 +10:00
d0e0ee3981 io_win32: add mapped_file::empty implementation 2016-04-27 17:05:46 +10:00
57058ab20f io_win32: make mapping checks more robust
fixes zero length mapping errors
2016-04-27 17:04:56 +10:00
ddfb765110 io: ignore failed zero length posixed mapped_files 2016-04-27 17:02:47 +10:00
cc001c4788 win32/handle: merge various handle wrapper classes 2016-04-27 17:01:45 +10:00
eb1b042e06 j/except: remove useless inherited constructor 2016-04-27 16:12:45 +10:00
df9d0ce432 format: add invalid_specifier exception 2016-04-27 16:12:24 +10:00
61ba8e5186 format: add char specialisation to is_type_specifier 2016-04-27 16:08:28 +10:00
abce134089 except: add missing methods to win32_error 2016-04-27 16:07:42 +10:00
a941f4d74e except: add code and last_code accessors to errno_error 2016-04-27 16:06:58 +10:00
354573f369 except: rename errno_error::id to m_code 2016-04-27 16:06:32 +10:00
b1eb9982d1 introspection: add more types to type_string 2016-04-27 16:05:16 +10:00
6e656444c6 backtrace_stackwalk: add StackWalk64 backtrace
Wine does not implement CaptureStackBackTrace, so we have to use
StackWalk64 where possible.
2016-04-27 16:00:26 +10:00
2434424488 maths: explicitly inline small methods
Avoids multiply defined symbols when using more aggressive inlining
2016-04-27 15:57:05 +10:00
a803a13e80 backtrace_win32: avoid using win32 wrappers
We have to be extraodinarily careful about what functions are called at
this low level so it's easier to just avoid any protective wrappers.
2016-04-27 15:53:53 +10:00
1356391259 cmdopt: move bool parsing into inline headers
This avoids multiple definition issues with more aggressive inliners, eg
mingw
2016-04-27 15:52:52 +10:00
0ec92951fc vector: remove redundant almost_equal definition 2016-04-22 16:16:26 +10:00
d034b114c7 backtrace_win32: output to correct stream 2016-04-21 13:52:49 +10:00
4533f02588 pkg-config.pc.in: use Libs.private 2016-04-19 17:27:13 +10:00
79f01943d5 m4/boost: dont pollute LIBS 2016-04-19 17:25:41 +10:00
7605abeb44 backtrace/win32: enable win32 backtrace support 2016-04-19 16:08:56 +10:00
3a2b33e0df win32/handle: add simple handle wrapper 2016-04-19 16:08:25 +10:00
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