]>
jfr.im git - irc/atheme/libmowgli-2.git/log
William Pitcock [Wed, 13 Mar 2013 23:12:10 +0000 (18:12 -0500)]
eventloop/ports: fix eventloop livelock
William Pitcock [Wed, 13 Mar 2013 23:09:52 +0000 (18:09 -0500)]
eventloop: add ETIME to mowgli_eventloop_ignore_errno()
Patrick McFarland [Tue, 12 Mar 2013 23:34:36 +0000 (19:34 -0400)]
dns: fix unwrapped maacros
Patrick McFarland [Tue, 12 Mar 2013 00:09:02 +0000 (20:09 -0400)]
By request of mogri, spaces after cast
Patrick McFarland [Mon, 11 Mar 2013 23:30:28 +0000 (19:30 -0400)]
Fix formatting, add uncrustify.cfg used to do this
Patrick McFarland [Mon, 11 Mar 2013 18:59:40 +0000 (14:59 -0400)]
object: Fix semicolons ending macros
Patrick McFarland [Mon, 11 Mar 2013 18:58:16 +0000 (14:58 -0400)]
logger: Fix semicolons ending macros
Patrick McFarland [Mon, 11 Mar 2013 18:46:58 +0000 (14:46 -0400)]
vio: Fix semicolons ending macros
Alex Iadicicco [Sun, 10 Mar 2013 02:19:53 +0000 (19:19 -0700)]
linebuf: Cache endl_len, and add function to set delimiters
Alex Iadicicco [Sun, 10 Mar 2013 01:51:11 +0000 (18:51 -0700)]
linebuf: Use single-byte delimiters
This allows the delimiter string "\r\n" to be used to detect \r, \n, \r\n,
\n\n\n, or any combination of the characters in the delimiter string. This
is different from the previous system which required the whole delimiter
string to match.
The endl member of linebuf indicates the line ending to use for outgoing
lines, and can have any length.
Alex Iadicicco [Tue, 5 Mar 2013 20:24:01 +0000 (13:24 -0700)]
Update README (closes #17)
Fix URLs, change feature request instructions, update feature list
mogri [Tue, 5 Mar 2013 01:29:44 +0000 (17:29 -0800)]
Merge pull request #16 from binki/master
mingw fixes: drop gettimeofday(), fix bitrot caused by untested commits in cacheline.c, fix MOWGLI_OS_WIN mispelled as MOWGLI_OS_WINDOWS
mogri [Tue, 5 Mar 2013 01:29:34 +0000 (17:29 -0800)]
Merge pull request #15 from enmand/master
Fixes for illumos/SmartOS
Nathan Phillip Brink [Tue, 5 Mar 2013 01:01:55 +0000 (20:01 -0500)]
Fix compilation on modern mingw32; includes dropping gettimeofday() which is in modern mingw32.
Also fixes missing s/SLPI/SYSTEM_LOGICAL_PROCESSOR_INFORMATION/ and a
missing variable rename in Windows-specific cacheline code. Fixes
mistaken use of MOWGLI_OS_WINDOWS instead of MOWGLI_OS_WIN.
Dropping gettimeofday() fixes type collision of “struct timezone” with
the compat type provided by mingw32.
Daniel Enman [Sat, 2 Mar 2013 19:14:17 +0000 (15:14 -0400)]
Use Solaris Threads on Solaris
Daniel Enman [Sat, 2 Mar 2013 17:54:45 +0000 (13:54 -0400)]
Fix "Redeclaration with no linkage" on SmartOS
Alex Iadicicco [Wed, 27 Feb 2013 23:31:32 +0000 (16:31 -0700)]
cacheline: Use #elif defined rather than just #elif
Alex Iadicicco [Mon, 25 Feb 2013 05:44:07 +0000 (22:44 -0700)]
list: Paranoia on value of count, and minor consistency change
Alex Iadicicco [Wed, 20 Feb 2013 19:24:29 +0000 (11:24 -0800)]
Merge pull request #14 from Diablo-D3/master
Add cachline code in platform module
Patrick McFarland [Mon, 18 Feb 2013 02:43:25 +0000 (21:43 -0500)]
Change to MOWGLI_OS_WINDOWS
Patrick McFarland [Mon, 18 Feb 2013 02:42:54 +0000 (21:42 -0500)]
Fix void arithmatic warnings
Patrick McFarland [Mon, 18 Feb 2013 02:29:44 +0000 (21:29 -0500)]
Fix printf formatting warnings
Patrick McFarland [Mon, 18 Feb 2013 02:10:48 +0000 (21:10 -0500)]
Forgot to commit changes to cacheline.c for mowgli_cahceline_size
Patrick McFarland [Mon, 18 Feb 2013 02:09:13 +0000 (21:09 -0500)]
Remove alwaysinline, can't be used usefully cross unit
Patrick McFarland [Mon, 18 Feb 2013 02:08:21 +0000 (21:08 -0500)]
Forgot to commit vio union fixes for vio_openssl.c
Patrick McFarland [Mon, 18 Feb 2013 02:07:43 +0000 (21:07 -0500)]
Move mowgli_cacheline_size to cacheline.c
Patrick McFarland [Mon, 18 Feb 2013 01:46:16 +0000 (20:46 -0500)]
Fix vio unnamed union
Patrick McFarland [Mon, 18 Feb 2013 01:19:09 +0000 (20:19 -0500)]
Get rid of the unamed union in json.[ch]
Patrick McFarland [Mon, 18 Feb 2013 00:55:33 +0000 (19:55 -0500)]
Remove define for SLPI
Patrick McFarland [Mon, 18 Feb 2013 00:52:14 +0000 (19:52 -0500)]
Move mowgli_log_prefix_real from logger.h to logger.c
Patrick McFarland [Mon, 18 Feb 2013 00:51:39 +0000 (19:51 -0500)]
Remove MOWGLI_DEPRECATED from stdinc.h as it is now in attribute.h
Patrick McFarland [Mon, 18 Feb 2013 00:49:06 +0000 (19:49 -0500)]
Make constructor.h use mowgli compiler defines
Patrick McFarland [Mon, 18 Feb 2013 00:48:34 +0000 (19:48 -0500)]
MOWGLI_COMPILER_GCC_VERSION should not have been private namespaced
Patrick McFarland [Mon, 18 Feb 2013 00:44:35 +0000 (19:44 -0500)]
Add attributes.h to platform/Makefile
Patrick McFarland [Mon, 18 Feb 2013 00:43:44 +0000 (19:43 -0500)]
Add _MOWGLI_COMPILER_GCC_VERSION for easy version checking
Patrick McFarland [Mon, 18 Feb 2013 00:42:41 +0000 (19:42 -0500)]
Add attributes.h to mowgli.h, move constructor.h below attributes.h
Patrick McFarland [Mon, 18 Feb 2013 00:40:42 +0000 (19:40 -0500)]
Add attributes.h: compiler attributes for improving code quality
Patrick McFarland [Sat, 16 Feb 2013 17:43:06 +0000 (12:43 -0500)]
Add include barrier to cacheline.h
Patrick McFarland [Sat, 16 Feb 2013 17:32:30 +0000 (12:32 -0500)]
Add cacheline.h to mowgli.h
Patrick McFarland [Fri, 15 Feb 2013 16:10:30 +0000 (11:10 -0500)]
Call cacheline_bootstrap from bootstrap
Patrick McFarland [Fri, 15 Feb 2013 16:08:31 +0000 (11:08 -0500)]
Rename cacheline_init to cacheline_bootstrap
Patrick McFarland [Fri, 15 Feb 2013 16:07:02 +0000 (11:07 -0500)]
Update src/libmowgli/platform/cacheline.c
Patrick McFarland [Thu, 14 Feb 2013 21:08:07 +0000 (16:08 -0500)]
Add cacheline routines
Alex Iadicicco [Wed, 6 Feb 2013 03:50:52 +0000 (19:50 -0800)]
Merge pull request #13 from Diablo-D3/master
Remove exceptions, rewrite logging, fix a few bugs
Alex Iadicicco [Wed, 6 Feb 2013 03:05:55 +0000 (19:05 -0800)]
Merge pull request #12 from tallica/master
Fixes for C++ compilers
Michał Lipski [Tue, 5 Feb 2013 23:55:17 +0000 (00:55 +0100)]
json: Fixes for C++ compilers.
Patrick McFarland [Tue, 5 Feb 2013 11:18:52 +0000 (06:18 -0500)]
Move mowgli_object_class_dict init to bootstrap
Patrick McFarland [Tue, 5 Feb 2013 10:54:11 +0000 (05:54 -0500)]
patricia.c: Cast to void * for %p
Patrick McFarland [Tue, 5 Feb 2013 10:52:34 +0000 (05:52 -0500)]
Use C99 compliant stringification
Patrick McFarland [Tue, 5 Feb 2013 10:45:41 +0000 (05:45 -0500)]
Move logger buffer down to one page of memory and stop wasting room
Patrick McFarland [Tue, 5 Feb 2013 10:42:31 +0000 (05:42 -0500)]
Make mowgli_log_real tail call optimizable and make it more efficient
Patrick McFarland [Tue, 5 Feb 2013 05:03:53 +0000 (00:03 -0500)]
Remove public protos for bootstrap internal functions
Patrick McFarland [Tue, 5 Feb 2013 04:53:16 +0000 (23:53 -0500)]
Bootstrap win32 winsock last not first
Patrick McFarland [Tue, 5 Feb 2013 04:51:20 +0000 (23:51 -0500)]
Add mowgli_log_bootstrap()
Patrick McFarland [Tue, 5 Feb 2013 04:44:01 +0000 (23:44 -0500)]
Clean up logger.[ch], don't break backwards compat, fix buf alloc
Patrick McFarland [Mon, 4 Feb 2013 09:12:56 +0000 (04:12 -0500)]
Remove comma eating ## trick, isn't C99 compliant
Patrick McFarland [Mon, 4 Feb 2013 08:43:28 +0000 (03:43 -0500)]
Switched assert to use do while(0)s, fixed files broken by this
Patrick McFarland [Mon, 4 Feb 2013 06:43:13 +0000 (01:43 -0500)]
Remove exception.h
Patrick McFarland [Mon, 4 Feb 2013 06:42:51 +0000 (01:42 -0500)]
Update configure build
Patrick McFarland [Mon, 4 Feb 2013 04:37:22 +0000 (23:37 -0500)]
Add return_null_if_fail
Patrick McFarland [Mon, 4 Feb 2013 04:06:40 +0000 (23:06 -0500)]
Add namespace to mowgli_warning calls
Patrick McFarland [Mon, 4 Feb 2013 04:01:21 +0000 (23:01 -0500)]
Add TODO for mowgli_soft_assert_log removal
Patrick McFarland [Mon, 4 Feb 2013 03:52:45 +0000 (22:52 -0500)]
Change assert.h to use logger correctly
Patrick McFarland [Mon, 4 Feb 2013 03:52:00 +0000 (22:52 -0500)]
Add log_[warning, error, fatal]
Patrick McFarland [Mon, 4 Feb 2013 03:07:01 +0000 (22:07 -0500)]
Use machine.h defines in logger.h
Patrick McFarland [Mon, 4 Feb 2013 02:18:30 +0000 (21:18 -0500)]
Remove MSVC 6.0 non-functional placeholder for 15 year old compiler
Alex Iadicicco [Sun, 3 Feb 2013 20:41:43 +0000 (12:41 -0800)]
Merge pull request #11 from Diablo-D3/master
Exceptions are serious business
Patrick McFarland [Fri, 1 Feb 2013 08:46:38 +0000 (03:46 -0500)]
Change mowgli_throw_exception message wording
Alex Iadicicco [Thu, 31 Jan 2013 05:52:35 +0000 (22:52 -0700)]
Fix includes
Alex Iadicicco [Sun, 20 Jan 2013 03:40:10 +0000 (20:40 -0700)]
Alter format of ll_table initializer
A GCC bug in certain versions of GCC for OS X prevents this type of
initializer from being parsed correctly.
Alex Iadicicco [Sun, 20 Jan 2013 02:29:13 +0000 (19:29 -0700)]
Update jsontest example for the new serialization interface
Alex Iadicicco [Fri, 7 Dec 2012 01:00:18 +0000 (18:00 -0700)]
json: Generalize seralization interface
This interface allows users to optionally bypass the intermediate
serialization step to mowgli_string_t, and have mowgli.json call a custom
append and append_char callback.
Alex Iadicicco [Fri, 9 Nov 2012 07:58:15 +0000 (00:58 -0700)]
dns: 'when' argument to mowgli_timer_add is relative to now
Jilles Tjoelker [Tue, 6 Nov 2012 10:46:13 +0000 (11:46 +0100)]
proctitle: Remove mowgli_get_args().
If you need mowgli_get_args(), you are doing something wrong. The argc and
argv should be obtained from the parameters to main(). Code not explicitly
given access to them should not access them.
Also, both methods used by mowgli_get_args() rely on environ having its
original value. Therefore, calling it after setenv() or putenv() will
likely not work.
William Pitcock [Mon, 5 Nov 2012 22:29:53 +0000 (22:29 +0000)]
proctitle: argh
William Pitcock [Mon, 5 Nov 2012 22:26:13 +0000 (22:26 +0000)]
proctitle: more OS X fixes
William Pitcock [Mon, 5 Nov 2012 22:18:57 +0000 (22:18 +0000)]
proctitle: fix it for real
William Pitcock [Mon, 5 Nov 2012 22:13:38 +0000 (22:13 +0000)]
proctitle: more portability macro usage
William Pitcock [Mon, 5 Nov 2012 22:02:13 +0000 (22:02 +0000)]
proctitle: use portability macros correctly
William Pitcock [Mon, 5 Nov 2012 21:54:38 +0000 (21:54 +0000)]
eventloop: use MOWGLI_OS_OSX define and set up mach includes.
Alex Iadicicco [Sat, 3 Nov 2012 09:31:38 +0000 (02:31 -0700)]
eventloop: mowgli_eventloop_get_time is now monotonically increasing epoch time
Alex Iadicicco [Thu, 1 Nov 2012 08:13:32 +0000 (01:13 -0700)]
json: Add braces around anonymous union initializer
Alex Iadicicco [Thu, 1 Nov 2012 08:01:00 +0000 (01:01 -0700)]
json: Remove redundant mowgli_json_parse_t typedef
William Pitcock [Thu, 1 Nov 2012 07:46:36 +0000 (07:46 +0000)]
json: use size_t in the headers since we use it in core too
Alex Iadicicco [Wed, 31 Oct 2012 09:45:48 +0000 (02:45 -0700)]
json: Add multidoc and some helpful comments.
I cannot stress the importance of proper refcounting enough! Though
mowgli_json_parse_file and mowgli_json_decref will be enough for most
people.
Alex Iadicicco [Wed, 31 Oct 2012 08:12:41 +0000 (01:12 -0700)]
json: Allow parsers to be reset.
This allows us to use a single static parser for parsing files and strings.
Alex Iadicicco [Wed, 31 Oct 2012 02:52:52 +0000 (19:52 -0700)]
json: Add generic string parser function
Additionally change mowgli_json_parse_data argument from char* to
const char*
Alex Iadicicco [Tue, 30 Oct 2012 18:15:02 +0000 (11:15 -0700)]
Add jsontest example, demonstrating basic use of JSON parser
Alex Iadicicco [Tue, 30 Oct 2012 18:07:41 +0000 (11:07 -0700)]
json: Add a generic file parser
Alex Iadicicco [Tue, 30 Oct 2012 17:09:23 +0000 (10:09 -0700)]
json: Don't worry about clearing build stack on LL(1) cycling
And remove unused ll_build_empty function.
Alex Iadicicco [Tue, 30 Oct 2012 10:12:01 +0000 (03:12 -0700)]
json: Sort out error handling and cleanup procedure
Alex Iadicicco [Sun, 28 Oct 2012 11:04:10 +0000 (04:04 -0700)]
json: Tweak reference counting
Alex Iadicicco [Mon, 15 Oct 2012 10:00:58 +0000 (03:00 -0700)]
json: Add actions to parse rules, build JSON structures
Although the parser can parse documents into mowgli.json structures,
it's still far from finished. Reference counting needs to be ironed out
still, and errors are simply ignored.
Alex Iadicicco [Sun, 30 Sep 2012 09:18:25 +0000 (02:18 -0700)]
json: Implement lexer and parser, and fix LL(1) tables
Alex Iadicicco [Sat, 29 Sep 2012 02:49:42 +0000 (19:49 -0700)]
json: Add table containing human-readable names for symbols
Alex Iadicicco [Fri, 28 Sep 2012 01:30:46 +0000 (18:30 -0700)]
json: Add LL(1) tables
What a headache. At least the hard part is done.
Alex Iadicicco [Mon, 30 Jul 2012 03:27:52 +0000 (03:27 +0000)]
json: Add various (yet untested) inline functions
Alex Iadicicco [Mon, 18 Jun 2012 04:38:01 +0000 (04:38 +0000)]
json: Fix string data escaping logic
Alex Iadicicco [Mon, 18 Jun 2012 04:22:04 +0000 (04:22 +0000)]
json: Escape double quotes when serializing string data
Also, stylistic changes to bracing.
Alex Iadicicco [Mon, 18 Jun 2012 04:17:34 +0000 (04:17 +0000)]
json: Fix a few immediately obvious bugs from testing