134 Commits

Author SHA1 Message Date
mandreyel
99db68866c Update README.md and example.cpp 2018-10-25 09:15:15 +02:00
mandreyel
43ee283c01
Merge pull request #28 from jdarpinian/default-args
Map entire file by default.
2018-10-25 08:59:39 +02:00
James Darpinian
0b3261071e Map entire file by default. 2018-10-24 23:19:58 -07:00
mandreyel
039c4daa9e
Merge pull request #27 from jdarpinian/msvc
MSVC can't handle constexpr INVALID_HANDLE_VALUE
2018-10-24 17:45:46 +02:00
James Darpinian
99447c57cf MSVC can't handle constexpr INVALID_HANDLE_VALUE
Causes error C2131: expression did not evaluate to a constant
note: failure was caused by unevaluable pointer value
2018-10-24 03:02:02 -07:00
mandreyel
9bc0133764
Merge pull request #25 from mandreyel/update-destructor-sync-defaults
Update destructor sync defaults
2018-10-24 10:09:49 +02:00
mandreyel
1157537c98 Update docs, example.cpp and README.md 2018-10-22 18:46:07 +02:00
mandreyel
865d7f35ce Update basic_mmap destructor sync behavior 2018-10-22 14:57:47 +02:00
mandreyel
98d0d875b5 Refactor code to remove basic_mmap impl indirection 2018-10-22 14:46:42 +02:00
mandreyel
5ac44ecb00 Create invalid_handle value and update unmapped shared_mmap handle methods to return it 2018-10-22 13:30:35 +02:00
Greg Beard
3338d0ddaf Merge branch 'master' into multi-target-windows-api 2018-10-22 11:09:10 +01:00
mandreyel
2dbf5d3050
Merge pull request #24 from GxvgiuU/shared_mmap-constructor
Fix shared_mmap constructor method
2018-10-21 17:30:51 +02:00
pierce
78d60cc6d9 Fix shared_mmap constructor method 2018-10-21 14:25:30 +08:00
Greg Beard
63947b7c9a Changes wording/grammar of docs for extra win api target 2018-10-19 09:15:11 +01:00
Greg Beard
acfca0042e Adds a mio::mio_full_winapi target, which defines no WinAPI flags
The extra target doesn't `#define` any of `WIN32_LEAN_AND_MEAN`,
`NOMINMAX`. The default `mio::mio` adds both of these. This commit also
removes these defines from the `.*pp` files; they're now inserted by the
compile commands.
2018-10-19 07:21:34 +01:00
mandreyel
365a80c9ac Fix char* being an invalid path type 2018-10-18 19:30:41 +02:00
mandreyel
307db6a136
Merge pull request #18 from gmbeard/fix-missing-test-file
Fixes missing test file
2018-10-18 19:07:43 +02:00
Greg Beard
77125df199 Fixes missing test file
For an earlier PR (#16), I introduced a new test file for testing
unicode support on Windows. The project's `.gitignore` file excludes the
entire test directory, so it was missed out. Turns out that this test
file wasn't actually needed, but the CMake config still uses it. This
commit just changes this back to the original `test.cpp` file.
2018-10-18 17:09:19 +01:00
mandreyel
e0ae329583
Merge pull request #16 from gmbeard/windows-unicode-compilation-fix
Windows unicode compilation fix
2018-10-18 14:26:21 +02:00
Greg Beard
5655910e73 Removes superfluous compile flags 2018-10-18 13:17:47 +01:00
Greg Beard
0082811090 Changes Windows version to directly use CreateFileA
`CreateFile` is `#define`d as `CreateFileW` in unicode builds (when `/D
UNICODE` is defined). This is probably more likely to be a issue when
integrating into GUI projects.

This commit allows compilation to succeed when `UNICODE` has been
defined and adds a note to the README, explicitly stating that mio
doesn't support wide char string types as parameters.
2018-10-18 13:01:55 +01:00
mandreyel
e2be76afbe Fix unescaped code block in README.md 2018-10-18 09:10:13 +02:00
mandreyel
bf0dd0158e
Merge pull request #13 from apmccartney/master
Expanded CMake Support
2018-10-17 11:42:03 +02:00
Austin McCartney
684e6318c7 Addressed ambiguity in README 2018-10-16 22:36:35 -06:00
Austin McCartney
b7d1cb95e2 README extensions 2018-10-16 22:34:13 -06:00
Austin McCartney
af8471440d Formatting long lines of README 2018-10-16 22:19:22 -06:00
Austin McCartney
bb10efd67b Typo 2018-10-16 22:00:59 -06:00
Austin McCartney
05085ab7a0 First draft of README extensions 2018-10-16 21:58:24 -06:00
Austin McCartney
d5f411e304 Added missing CMake file and added exception to .gitignore 2018-10-16 17:31:36 -06:00
Austin McCartney
0bc5453bfd corrected minor typos in CMake comments 2018-10-13 09:38:00 -06:00
Austin McCartney
9721918446 expanded comments regarding 2018-10-13 09:32:42 -06:00
Austin McCartney
e738beff33 removed references to frozen 2018-10-13 09:18:06 -06:00
Austin McCartney
b35ef4725a Expanded CMake Support
This commit introduces several features for the CMake build system.

+ CTest integration
+ CDash integration
+ CPack integration
+ CMake find_package support

To accomodate post-installation consumption, the `include` preprocessor
statements in several library header files were updated to use paths
relative to a root include directory rather than paths relative to the
file itself.
2018-10-13 09:11:10 -06:00
mandreyel
dde5edb18a Fix erroneous comment in example code 2018-09-29 22:15:13 +02:00
mandreyel
f2cf5f3c91 Update readme and example with file existence precondition 2018-09-25 08:33:30 +02:00
mandreyel
a53f63b58b Update code style in README and test.cpp 2018-09-07 15:59:45 +02:00
mandreyel
11f22060b1
Merge pull request #10 from mandreyel/add-license-1
Create LICENSE
2018-08-15 15:56:39 +02:00
mandreyel
660f2657fb
Create LICENSE 2018-08-15 15:56:23 +02:00
mandreyel
571b003b8d
Merge pull request #9 from Wunkolo/feature/cmake
Add CMakeLists.txt
2018-07-28 11:03:47 +02:00
Wunkolo
b6517e711f Add BUILD_TESTS option, installation
Remove compiler flags/warnings, makefile verbosity and colors
2018-07-27 19:14:43 -07:00
Wunkolo
2db812da58 Update README with CMake info 2018-07-27 19:14:43 -07:00
Wunkolo
90fbf407f3 Add Header-Only cmake project structure 2018-07-27 18:01:09 -07:00
mandreyel
f3b8286c47 Move access_mode to page.hpp 2018-07-27 21:47:52 +02:00
mandreyel
873ff4d585
Merge pull request #8 from freddierice/master
swapped order of members in class to calm down the compiler
2018-07-27 14:23:54 +02:00
Freddie Rice
d16962d443 swapped order of members in class to calm down the compiler 2018-07-26 18:12:14 -04:00
mandreyel
7dfc49b197 Update example include and minor style change 2018-07-12 21:31:53 +02:00
mandreyel
c6039f7ab5 Update empty function docs 2018-04-15 19:12:27 +02:00
mandreyel
2659608761 Update iterator documentation 2018-04-15 19:07:19 +02:00
mandreyel
ecf20ef27f Merge branch 'master' of https://github.com/mandreyel/mio 2018-04-15 19:02:52 +02:00
mandreyel
8c783cf92d Update README.md 2018-04-15 19:01:25 +02:00