Commit Graph

3397 Commits

Author SHA1 Message Date
4fd20d2acf posix/fd: move definition of O_BINARY into public header 2018-08-31 13:57:31 +10:00
1a7b7daa93 exe: add trivial docstring 2018-08-28 16:35:06 +10:00
1392fb40c9 posix/fd: define O_BINARY for systems without it 2018-08-28 13:01:55 +10:00
466fcac687 thread/flag_std: remove platform specific headers 2018-08-27 14:18:04 +10:00
8c05cf2e1c posix/fd: double check the user has specified binary mode 2018-08-27 14:17:50 +10:00
e7cdb1322a debug: add a stub init for win32 2018-08-27 14:17:38 +10:00
300ae9df73 win32/windows: add a defensive windows wrapper header 2018-08-27 14:16:27 +10:00
93f9cb7c0e win32/registry: add subkey iteration helpers 2018-08-24 17:32:04 +10:00
c5ed42ccbf debug: defend against renaming of panic using macros 2018-08-24 17:31:54 +10:00
676154d652 io_win32: test return of GetFileSize for errors 2018-08-23 13:59:14 +10:00
058a86ba05 win32/handle: take ownership of any supplied fd
CloseHandle, close, and memory mapping interact poorly so it's a little safer
to dup the fd before taking ownership of it.
2018-08-22 21:34:02 +10:00
1b5dfe437a posix/fd: make dup const
It's not strictly semantically correct, but it greatly simplifies reference
parameter binding in win32 memory mapping
2018-08-22 21:32:43 +10:00
4b30235164 win32/registry: resize the value by the correct amount 2018-08-20 16:14:09 +10:00
7e1b14fe98 library/win32: conform to the template query signature 2018-08-20 16:13:49 +10:00
eb4a3be352 cast: suppress more warnings for 'ffs' 2018-08-20 15:08:15 +10:00
55c5bf96c5 backtrace: don't use assertions to test runtime failures 2018-08-20 15:07:35 +10:00
3adbfae057 thread: fix compilation for linux specialisations 2018-08-16 12:10:05 +10:00
6c5a7cc5fa thread/semaphore: specalise the implementation for win32 2018-08-15 17:00:29 +10:00
2eb1f2b919 io_win32: use try_func when dispatching mapped_file 2018-08-14 16:48:20 +10:00
d8f916a25b win32: add except::try_func 2018-08-14 16:47:59 +10:00
2e3aaa4c17 win32: add except::try_value 2018-08-14 16:47:44 +10:00
9a929353d6 build; account for newlines in win32 tests 2018-08-13 23:29:14 +10:00
75a3572fdd exe: defend test case against msys2 paths 2018-08-13 16:12:11 +10:00
4fd68aef55 build; remove inadvertently added debug code 2018-08-13 16:03:20 +10:00
ce67836e8e format: disable hexfloat tests under msys2
These conversions appear to be broken under msys2.
2018-08-13 16:02:18 +10:00
b60aaccf6f build; fix compilation errors under win32
win32 builds are still totally unsupported, untested, and functionally
broken.
2018-08-13 14:52:40 +10:00
ff5f79a858 build; add (untested) paths for win32 builds 2018-08-13 14:50:48 +10:00
42cdad1263 preprocessor: don't explicitly raise StopIteration 2018-08-10 13:40:16 +10:00
1d176f2fe4 preprocessor: don't hardcode the python interpretor path 2018-08-10 13:39:51 +10:00
d1866d9b70 tap: add expect_valid test 2018-08-08 12:49:47 +10:00
3a4a7bf1d8 tap: return the success value from test functions 2018-08-08 12:49:33 +10:00
1c814c02d2 bitwise: prefer template SFINAE over param SFINAE 2018-08-07 16:58:02 +10:00
d3c5af6fdf build; remove unnecessary gitignore entries 2018-08-06 14:36:23 +10:00
f6056153e3 rename root namespace from util to cruft
This places, at long last, the core library code into the same namespace
as the extended library code.
2018-08-05 14:42:02 +10:00
803acc9a87 relicense under MPL-2.0 2018-08-04 15:14:06 +10:00
3aaddd1d2b json: move json code to external module
This module can now be found at git://git.nerdcruft.net/libcruft-json.git
2018-08-04 15:02:06 +10:00
c6760c8566 view: don't over qualify the array deduction guide 2018-08-03 16:50:29 +10:00
88cde59c77 iterator: style 2018-08-03 16:50:19 +10:00
b31f4dd094 debug/gdb/printers: add a pretty printer for 'view' 2018-08-03 16:49:47 +10:00
0cea64fa14 view: disable trivally copyable type warnings in util::read 2018-08-02 00:51:01 +10:00
20df746217 view: don't enforce constness of view iterators in util::read 2018-08-01 20:58:43 +10:00
bcb4d7569f types/traits: add is_same_basic_type trait 2018-08-01 18:39:01 +10:00
00c46e0f9a types/traits: move inner_type to the util namespace 2018-08-01 17:18:59 +10:00
e92f0dc337 view: add 'read' operation complementing 'extract' 2018-08-01 14:23:09 +10:00
4b69b7515b format: accept forwarding references for printf/python 2018-08-01 14:20:42 +10:00
c7fe53f430 log: use forwarding references for format parameters 2018-08-01 14:19:44 +10:00
08d8eb942d view: add iterator intersection test 2018-08-01 13:10:43 +10:00
47c912e5e2 view: avoid alignment warnings for view extraction
It is assumed the user is on top of this.
2018-08-01 13:10:11 +10:00
4b9b292848 view: add more assertions for valid consume parameters 2018-08-01 13:09:32 +10:00
5724de752e view: add head/tail accessors that return truncated subviews 2018-08-01 13:09:15 +10:00