Commit Graph

76 Commits

Author SHA1 Message Date
1fc1dd4134 Change range::includes to range::contains
Contains is more descriptive (of the actual implementation) as it
implies the entire argument is within the range. Includes should also be
provided at some point.
2011-07-29 17:38:07 +10:00
b642590ab2 Update a missing required header 2011-07-29 17:37:05 +10:00
3a13bdfa34 Add missing licencing headers 2011-07-20 20:34:46 +10:00
31796b34f6 Add pure annotation to simple maths and ntoh funcs 2011-07-16 15:53:53 +10:00
d6b943500c Move signal into namespace util
signal will clash with the POSIX signal function. This tends to be too
annoying to work around with careful inclusion orders or other
namespacing.
2011-07-16 14:47:56 +10:00
64448e7e5e Add a make_unique implementation 2011-07-16 14:47:34 +10:00
ce747924ab Add a simple line tracing macro 2011-07-16 14:47:10 +10:00
24e764c648 Correct the pool comment copyright year 2011-07-12 20:55:15 +10:00
3b15524b7b Conditionally enable mudflap at configure time 2011-07-12 20:55:01 +10:00
79e0d2de9d Merge branch 'master' of ssh://192.168.1.7/home/danny/libgim 2011-07-07 19:27:05 +10:00
d00f0a2639 Expand the ignore list for windows exe suffix 2011-07-06 22:00:24 +10:00
24e4cb4b35 Use correct header for EXIT_SUCCESS 2011-07-06 19:39:22 +10:00
f6d96fbe1b Expose mapped_file only if mmap is available 2011-07-06 19:29:38 +10:00
7cba9b8496 Json now parses from slurped strings, not mmap
mmap was a debatable choice in the first place, and is annoying under Windows,
so we may as well remove it.
2011-07-06 19:29:37 +10:00
fb6f74487b Use debug interrupt for breakpoint in i386 2011-07-06 19:29:35 +10:00
a3a6765d38 Slurp should take a const source path 2011-07-06 19:29:34 +10:00
6d52e37c93 Apply -flto only if compiler supports it 2011-07-06 19:29:33 +10:00
16afbccb3c Ensure size_t and ssize_t are available 2011-07-06 19:29:31 +10:00
0f1f27b132 Temporarily add fallback null path for backtrace 2011-07-06 19:29:30 +10:00
bc30b7c197 Initial trunc_cast implementation 2011-07-05 23:19:00 +10:00
be643f96d7 Remove now unnecessary sign_type template helper 2011-07-05 23:06:41 +10:00
6910ef10b9 New sign_cast implementation using SFINAE
* Uses enable_if to guarantee same size types for argument/return
* Uses type_traits to check signedness for specialisation
2011-07-05 22:55:18 +10:00
d3c98d479e Simplistic enable_if SFINAE helper implementation 2011-07-05 22:55:18 +10:00
4fb7b8e30f Use AM_CXX* for c++ build variables 2011-07-05 21:37:11 +10:00
1556b6aba6 Actually SUBST the boost build variables 2011-07-05 21:34:44 +10:00
41fb3e7b91 Add some doxygen comments for signal 2011-07-03 16:54:51 +10:00
128d46d9ad Use explicit sized integer types for sign_types<T>
When we used size_t/ssize_t they conflicted with the system's word sized
integers. This should work well for all the numeric types we're likely
to see.
2011-07-03 16:08:36 +10:00
165cd18c0c Explicitly instance one signal type for link error 2011-07-03 16:05:50 +10:00
6ba7a532f7 Add signal with pointer compilation/linking test 2011-07-03 16:04:49 +10:00
6e85e3c97b Don't use template vararg references for signals 2011-07-03 16:04:07 +10:00
c3b8b1e147 Remove signal disconnection methods
std::function does not support equality operators, so we have to remove
these or implement a better disconnection method. The former is easier
for the time being.
2011-07-03 16:02:36 +10:00
ced024dbe1 Enable silent automake rules 2011-07-03 15:54:00 +10:00
e748520bdb Run the item destructor when releasing a pool item 2011-07-01 18:41:50 +10:00
b4d6500f5f Add simple pool allocator implementation 2011-07-01 13:47:08 +10:00
87489b488a Add enable-debugging configure flag
* Controls all generation of programmer related debugging features.
  There are no performance guarantees (almost certainly slower) and no
  end-user benefits aside from enhanced crash info.
* Defaultly disable debugging features, and enable more aggressive
  optimisations in both the compiler and linker.
2011-06-30 21:45:02 +10:00
f29cb50ff7 Avoid type punning by using an integer/float union 2011-06-30 21:43:23 +10:00
c57a72705c Add ipv4::ip constructor from uint32_t 2011-06-30 20:34:53 +10:00
c886cd88e3 Harden boost version checks with failure msgs 2011-06-30 20:34:24 +10:00
ad9ec27f1d Add explicit failure for ragel check failure 2011-06-30 20:33:55 +10:00
fef55f7943 Add suggest-attribute compiler option checks 2011-06-30 20:33:35 +10:00
c6fea4291d Use c++ compiler for compiler option checks 2011-06-30 20:33:18 +10:00
46b2ba4e20 Add mask and well known ports to ip in ipv4 2011-06-29 21:28:34 +10:00
46d4a369f0 Add stub stub ip types for ipv6 2011-06-29 21:26:56 +10:00
e7ff9a46e3 Implement parse in terms of string constructor. 2011-06-29 21:25:14 +10:00
e42b1f6a10 Pass object::insert string by const reference 2011-06-29 21:23:23 +10:00
d592432113 Return a const reference to self in nocopy.
While not technically necessary, it reduces warnings in cppcheck.
2011-06-29 21:19:08 +10:00
d9dba1d155 Add simple signal object implementation 2011-06-27 15:31:41 +10:00
d168996c37 Enable autobrief cpp multiline in doxygen 2011-06-25 12:43:32 +10:00
bc59b72fa9 Add prelim backtrace support detection in build 2011-06-25 12:40:57 +10:00
55aa5bbcfe Use CANONICAL_HOST not CANONICAL_TARGET 2011-06-25 11:55:24 +10:00