Commit Graph

28 Commits

Author SHA1 Message Date
0a7adfb037 cmdopt: add simple requires constraint callbacks 2020-01-17 07:58:23 +11:00
8beada1646 debug: split debug headers into components 2019-05-17 12:26:08 +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
0cc0178ab5 avoid unnecessary copies by using std::move 2018-07-24 15:47:21 +10:00
6f45f9514d cmdopt: use concrete structs for data holders
Tuples are quite verbose and don't document intention.
2018-07-17 16:02:04 +10:00
1d11f05918 cast: move casting functions into util::cast namespace 2018-01-16 15:11:15 +11:00
4bd693a799 maths: allow any integral exponent for pow() 2018-01-01 15:45:56 +11:00
34788756d2 build: don't use './' as an include prefix
GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
2017-11-22 16:49:37 +11:00
fdf7896955 cmdopt: use the correct constructor for char errors 2017-01-05 19:50:27 +11:00
353cf839d4 use nested namespace declarations 2017-01-05 15:06:49 +11:00
1f432c13b7 build: avoid type truncation warnings
discovered with clang's -Wshorten-64-to-32
2016-05-12 17:39:33 +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
f13c4487c6 cmdopt: add positional argument support 2016-03-15 13:56:13 +11:00
90386f63fe cmdopt: print type argument type information 2016-03-11 13:16:20 +11:00
f1250b139a debug: remove unneeded headers from debug 2016-02-05 14:27:21 +11:00
8f806b5fa8 cmdopt: use util's implementation of pow 2015-11-13 17:59:58 +11:00
736fe9a156 cmdopt: add a simple omnipresent help option 2015-09-11 19:55:32 +10:00
146570a924 whitespace 2015-07-21 03:17:04 +10:00
927bd76dfb cmdopt: add bytes option implementation 2015-06-30 22:24:44 +10:00
88be946454 cmdopt: add bool value option specialisation 2015-06-30 22:24:44 +10:00
35718cbcf7 cmdopt: tighten parser argument constness 2015-06-30 22:24:44 +10:00
fab5891efe cmdopt: add present option 2015-06-30 22:24:44 +10:00
42fffeea46 cmdopt: add null option 2015-06-30 22:24:44 +10:00
7f8dab5db3 cmdopt: check for required options 2015-06-30 22:24:44 +10:00
79a936b583 cmdopt: add count constructor 2015-06-15 17:47:18 +10:00
7df897cd5f cmdopt: move value implementation to header 2015-06-10 21:54:42 +10:00
250b8d21ec cmdopt: add simple reimplementation of libcmdopt 2015-06-10 21:30:43 +10:00