]>
git.tdb.fi Git - libs/core.git/log
Mikko Rasa [Sat, 28 May 2011 10:05:30 +0000 (13:05 +0300)]
Refactor Mutex with pimpl
Rewrite the win32 implementation to use a critical section
Change the logic of Semaphore, as the win32 condvar-emulation was rather dodgy
Mikko Rasa [Sat, 28 May 2011 10:12:34 +0000 (13:12 +0300)]
New system_error exception class
Mikko Rasa [Sat, 28 May 2011 09:52:16 +0000 (12:52 +0300)]
Refactor Thread class with pimpl to avoid exposing platform-specific parts
Mikko Rasa [Sat, 28 May 2011 09:14:52 +0000 (12:14 +0300)]
Add a missing #include <windows.h>
Mikko Rasa [Sat, 28 May 2011 09:00:07 +0000 (12:00 +0300)]
Use lexical_cast instead of stringstream in GetOpt
Mikko Rasa [Sat, 28 May 2011 09:04:02 +0000 (12:04 +0300)]
Exception improvements for lexical_cast
Mikko Rasa [Sat, 28 May 2011 08:54:12 +0000 (11:54 +0300)]
Exception changes for Fmt and Formatter
Mikko Rasa [Sat, 28 May 2011 07:52:49 +0000 (10:52 +0300)]
Rename formatter.* to format.*
Mikko Rasa [Wed, 25 May 2011 20:32:24 +0000 (23:32 +0300)]
Improve error reporting in Variant
Mikko Rasa [Wed, 25 May 2011 18:35:59 +0000 (21:35 +0300)]
Make help message printing automatic
Start making more use of std exception classes
Mikko Rasa [Wed, 25 May 2011 13:46:08 +0000 (16:46 +0300)]
Merge branch 'strings-master'
Conflicts:
.gitignore
Build
Changelog.txt
Mikko Rasa [Wed, 25 May 2011 07:28:17 +0000 (10:28 +0300)]
Move files around to prepare for assimilation into core
Mikko Rasa [Wed, 25 May 2011 07:08:45 +0000 (10:08 +0300)]
Further style and comment adjustments
Mikko Rasa [Wed, 25 May 2011 07:01:22 +0000 (10:01 +0300)]
Remove some dead functions
Mikko Rasa [Tue, 24 May 2011 06:21:35 +0000 (09:21 +0300)]
Convert svn:ignore to .gitignore
Mikko Rasa [Mon, 23 May 2011 18:50:15 +0000 (21:50 +0300)]
Style updates
Mikko Rasa [Mon, 23 May 2011 18:49:41 +0000 (21:49 +0300)]
Join threads upon object destruction
Mikko Rasa [Mon, 23 May 2011 18:28:25 +0000 (21:28 +0300)]
Prevent a crash if application destructor throws
Mikko Rasa [Mon, 23 May 2011 18:20:23 +0000 (21:20 +0300)]
Streamline application class registration
Mikko Rasa [Mon, 23 May 2011 18:07:55 +0000 (21:07 +0300)]
Eliminate loop mode from Application
Mikko Rasa [Tue, 24 May 2011 06:01:57 +0000 (09:01 +0300)]
Convert svn:ignore to .gitignore
Mikko Rasa [Fri, 26 Nov 2010 12:59:20 +0000 (12:59 +0000)]
Make to_unixtime const
Add fill_timeval method
Mikko Rasa [Fri, 8 Oct 2010 19:54:28 +0000 (19:54 +0000)]
RefPtr:
Add templated copy-ctor and copy-assignment
Add assignment from a plain pointer for efficiency
Add keep() method to prevent deletion of data
Fix a potential leak in cast_dynamic
Style updates
Mikko Rasa [Thu, 11 Feb 2010 08:13:43 +0000 (08:13 +0000)]
Fix a #include to use relative filename
Mikko Rasa [Wed, 3 Feb 2010 13:35:47 +0000 (13:35 +0000)]
Add RemoveReference meta-function
Mikko Rasa [Mon, 21 Dec 2009 07:27:10 +0000 (07:27 +0000)]
Add LogicError exception class
Throw InvalidState in DateTime::get_timestamp for out-of-range values
Mikko Rasa [Mon, 21 Sep 2009 16:47:08 +0000 (16:47 +0000)]
Bump version to 1.1
Update Build file for upcoming Builder release
Mikko Rasa [Mon, 21 Sep 2009 16:40:37 +0000 (16:40 +0000)]
Bump version to 1.1
Update Build file for upcoming Builder release
Mikko Rasa [Mon, 21 Sep 2009 16:28:17 +0000 (16:28 +0000)]
Use transliterate mode in transcode
Mikko Rasa [Sun, 20 Sep 2009 16:16:36 +0000 (16:16 +0000)]
Fix compile erorrs on 64-bit systems
Mikko Rasa [Sun, 20 Sep 2009 16:16:11 +0000 (16:16 +0000)]
Fix a compilation error on 64-bit systems
Mikko Rasa [Fri, 11 Sep 2009 17:34:36 +0000 (17:34 +0000)]
Fix GetOpt to get strings correctly
Handle missing/extraneous arguments in OptBase
Mikko Rasa [Fri, 11 Sep 2009 17:32:58 +0000 (17:32 +0000)]
Rewrite Timer to use a heap instead of set to deal with duplicate timeouts
Get local timezone from /etc/localtime instead of tzset()
Add TimeStamp::to_unixtime
Mikko Rasa [Thu, 7 May 2009 06:01:55 +0000 (06:01 +0000)]
Improve GetOpt help generation
Mikko Rasa [Mon, 23 Mar 2009 11:49:11 +0000 (11:49 +0000)]
Fix the UTF-8 decoder
Mikko Rasa [Mon, 23 Mar 2009 11:12:27 +0000 (11:12 +0000)]
Add convenience functions to Encoder and Decoder to process a string and return the result
Fix UTF-8 detection in Codecs::detect_codec
Mikko Rasa [Sun, 8 Mar 2009 15:41:38 +0000 (15:41 +0000)]
Fix some win32 compile errors
Mikko Rasa [Sun, 8 Mar 2009 15:35:26 +0000 (15:35 +0000)]
Fix a problem with MATCH_MASK handling in Regex
Explicitly cast both arguments to pow to the same type so mingw doesn't get confused
Mikko Rasa [Sat, 21 Feb 2009 10:31:55 +0000 (10:31 +0000)]
Fix octal escape generation in c_escape
Fix mask matching to check for proper range
Don't use uint8_t since it's not supported by MSVC
Mikko Rasa [Thu, 25 Dec 2008 08:57:28 +0000 (08:57 +0000)]
Make codecs able to tell their name
Support autodetecting the correct codec for a string
Mikko Rasa [Wed, 24 Dec 2008 07:08:10 +0000 (07:08 +0000)]
Add utility functions to check the contents of a string
Fix str_to_bool
Mikko Rasa [Wed, 24 Dec 2008 07:01:36 +0000 (07:01 +0000)]
Make sure all files have the correct header
Update class member order to new style
Mikko Rasa [Mon, 15 Dec 2008 11:40:24 +0000 (11:40 +0000)]
Add copy constructor and copy assignment to Variant
Mikko Rasa [Mon, 15 Dec 2008 11:33:48 +0000 (11:33 +0000)]
Add support for time zones
Fix bugs in DateTime addition operations
Add subtraction operators for DateTime
Mikko Rasa [Tue, 9 Dec 2008 09:12:30 +0000 (09:12 +0000)]
Rewrite lexical_cast to use internal conversion routines
Add getters to Fmt
Mikko Rasa [Tue, 25 Nov 2008 06:45:28 +0000 (06:45 +0000)]
Handle branches in subregexes correctly
Mikko Rasa [Thu, 13 Nov 2008 10:40:34 +0000 (10:40 +0000)]
MSVC compatibility fixes
Mikko Rasa [Wed, 24 Sep 2008 16:16:17 +0000 (16:16 +0000)]
Convert a C-style cast to C++-style
Mikko Rasa [Sun, 31 Aug 2008 00:14:30 +0000 (00:14 +0000)]
Add validation for DateTime constructor parameters
Mikko Rasa [Sun, 24 Aug 2008 21:35:30 +0000 (21:35 +0000)]
Improve BackTrace printing
Mikko Rasa [Fri, 15 Aug 2008 21:43:59 +0000 (21:43 +0000)]
Only require -ldl on Linux
Mikko Rasa [Fri, 15 Aug 2008 17:55:32 +0000 (17:55 +0000)]
execinfo.h is a GNU extension so check for glibc
Mikko Rasa [Thu, 14 Aug 2008 13:31:53 +0000 (13:31 +0000)]
Add jisx0208.table to tarball
Mikko Rasa [Sun, 10 Aug 2008 18:25:27 +0000 (18:25 +0000)]
Update and clean up svn:ignore
Bump version number for release
Add License.txt to tarball
Mikko Rasa [Sun, 10 Aug 2008 18:21:47 +0000 (18:21 +0000)]
Update svn:ignore
Add License.txt
Mikko Rasa [Sun, 10 Aug 2008 16:12:59 +0000 (16:12 +0000)]
Make the programs use the library and headers from installed locations to work correctly with different profiles
Bump version number for release
Mikko Rasa [Wed, 6 Aug 2008 19:34:49 +0000 (19:34 +0000)]
Add specialization for lexical_cast<std::string> to avoid borking with spaces
Fix handling of parentheses inside bracker expressions in RegEx
Update ignores
Mikko Rasa [Wed, 6 Aug 2008 16:29:57 +0000 (16:29 +0000)]
Add a "where" property to Exception class
Mikko Rasa [Tue, 5 Aug 2008 06:33:56 +0000 (06:33 +0000)]
Handle constness in Variant
Return a reference from Variant::value()
Add meta.h for metaprogramming stuff
Mikko Rasa [Wed, 23 Jul 2008 13:03:21 +0000 (13:03 +0000)]
Report uncaught exceptions with a MessageBox on win32
Mikko Rasa [Sat, 19 Jul 2008 13:00:56 +0000 (13:00 +0000)]
Allow canceling timers
Use MutexLocks for more robustness
Add get_next_timeout function
Mikko Rasa [Tue, 24 Jun 2008 19:33:50 +0000 (19:33 +0000)]
Remove an obsolete Makefile
Translate windows error codes to text in SystemError
Mikko Rasa [Tue, 24 Jun 2008 14:24:46 +0000 (14:24 +0000)]
Fix a gcc 4.3 style warning
Mikko Rasa [Sun, 8 Jun 2008 23:15:05 +0000 (23:15 +0000)]
Fix some more style warnings
Mikko Rasa [Sun, 8 Jun 2008 16:00:06 +0000 (16:00 +0000)]
Add missing includes
Fix a gcc 4.3 style warning
Mikko Rasa [Sun, 8 Jun 2008 15:17:34 +0000 (15:17 +0000)]
Add missing includes
Mikko Rasa [Wed, 28 May 2008 23:56:45 +0000 (23:56 +0000)]
Remove the "optimization" of omitting MATCH_CHAR instruction for characters >LAST_INSTRUCTION_ since it caused trouble with -O3 without a measurable benefit
Fix commandline handling in grep
Mikko Rasa [Wed, 19 Mar 2008 11:41:35 +0000 (11:41 +0000)]
Pthread is no longer recognized as a package by Builder
Mikko Rasa [Mon, 10 Mar 2008 00:52:03 +0000 (00:52 +0000)]
Add Variant class
Fix svn:keywords property on core/*
Mikko Rasa [Sat, 12 Jan 2008 12:14:14 +0000 (12:14 +0000)]
Fix c_unescape
Mikko Rasa [Fri, 28 Dec 2007 20:47:02 +0000 (20:47 +0000)]
Fix an integer rounding error in Profiler
Mikko Rasa [Thu, 27 Dec 2007 17:10:20 +0000 (17:10 +0000)]
Store hInstance in Application class on win32
Mikko Rasa [Fri, 7 Dec 2007 18:06:33 +0000 (18:06 +0000)]
Bugfixes
Mikko Rasa [Wed, 5 Dec 2007 15:21:01 +0000 (15:21 +0000)]
Store the failed key in KeyError
Mikko Rasa [Sun, 11 Nov 2007 19:27:59 +0000 (19:27 +0000)]
Fix a sign error in ProfilingScope
Add TICK_BUSY mode to Application
Mikko Rasa [Sat, 10 Nov 2007 21:45:03 +0000 (21:45 +0000)]
Use operator void * instead of bool in Time classes to avoid obscure problems resulting from implicit conversion
Mikko Rasa [Fri, 19 Oct 2007 12:21:52 +0000 (12:21 +0000)]
Rewrite Time::Timer to not force the use of a thread, so it's more useful.
Mikko Rasa [Fri, 12 Oct 2007 19:20:54 +0000 (19:20 +0000)]
Add Debug::Profiler
Mikko Rasa [Thu, 4 Oct 2007 20:27:43 +0000 (20:27 +0000)]
core/error.h renamed to except.h
Fix octal excapes in c_escape
Add description and version to Build
Mikko Rasa [Thu, 4 Oct 2007 20:13:32 +0000 (20:13 +0000)]
Rename error.* to except.*
Mikko Rasa [Sat, 22 Sep 2007 10:59:03 +0000 (10:59 +0000)]
Use dladdr instead of backtrace_symbols in Backtrace::create (both are GNU-specific anyway)
Fix an error handling bug in demangle
Output backtrace for uncaught exceptions if one exists
Mikko Rasa [Mon, 17 Sep 2007 10:51:07 +0000 (10:51 +0000)]
Remove the custom demangle function and use GCC's abi::__cxa_demangle instead
Demangle uncaught exception type
Return a special error code on uncaught exception
Use vector instead of list or GetOpt::get_args()
Mikko Rasa [Mon, 27 Aug 2007 09:02:27 +0000 (09:02 +0000)]
terminate instead of rethrowing an uncaught exception
Mikko Rasa [Tue, 21 Aug 2007 15:04:44 +0000 (15:04 +0000)]
Add types.h
Mikko Rasa [Tue, 21 Aug 2007 15:03:18 +0000 (15:03 +0000)]
Reorder components to get headers install correctly
Add RawTime typedef
Move application creation inside the toplevel try-catch
Mikko Rasa [Fri, 10 Aug 2007 19:43:55 +0000 (19:43 +0000)]
Fix a bug in Regex with brackets
Make the disassembly output of grep optional
Mikko Rasa [Fri, 10 Aug 2007 18:58:07 +0000 (18:58 +0000)]
Add a function to perform simple character mapping
Add ISO-8859-15 encoding
More documentation in codec.h (nearly complete)
Mikko Rasa [Thu, 9 Aug 2007 15:18:11 +0000 (15:18 +0000)]
Rework the codec API completely to remove the internal buffering
Add transcode program to test the codecs
Mikko Rasa [Thu, 9 Aug 2007 14:32:06 +0000 (14:32 +0000)]
Add Id tags and copyright notices to a few files that were missing them
Mikko Rasa [Tue, 7 Aug 2007 17:17:24 +0000 (17:17 +0000)]
Add documentation for all functions in utils
Add c_escape and c_unescape functions
Mikko Rasa [Fri, 3 Aug 2007 09:47:32 +0000 (09:47 +0000)]
Revamp the split functions to allow a max_split argument and splitting by longer separators
Add \r to strip
Mikko Rasa [Sat, 7 Jul 2007 17:51:16 +0000 (17:51 +0000)]
Trap and explain uncaught exceptions
Mikko Rasa [Wed, 20 Jun 2007 20:19:10 +0000 (20:19 +0000)]
Add a simple grep program
Mikko Rasa [Mon, 11 Jun 2007 06:38:53 +0000 (06:38 +0000)]
Add operator bool() to RegMatch::Group
Mikko Rasa [Mon, 11 Jun 2007 06:37:33 +0000 (06:37 +0000)]
Win32 doesn't have execinfo.h, so don't include it
Add KeyError
Add release() to RefPtr
Mikko Rasa [Fri, 25 May 2007 17:32:16 +0000 (17:32 +0000)]
Make this thing actually compile
Mikko Rasa [Fri, 25 May 2007 17:23:28 +0000 (17:23 +0000)]
Require mspcore and not mspmisc
Mikko Rasa [Fri, 25 May 2007 17:22:57 +0000 (17:22 +0000)]
Assimilate exceptions and RefPtr from mspmisc
Assimilate GetOpt
Do not require pthread on win32
Add an optional feature to generate backtraces on exceptions
Allow semaphores to be created with an external mutex
Rewrite win32 semaphore implementation to more closely correspond the POSIX one
Allow MutexLock to be unlocked initially
Rewrite MutexPtr to use a RefPtr<MutexLock> instead of being refcounted itself
Fix some multiple inclusion guards
Add $Id$ tags
Fix Time::now() on win32
Mikko Rasa [Fri, 25 May 2007 17:05:52 +0000 (17:05 +0000)]
Add glob and regex thingies
error.h is now in mspcore
Mikko Rasa [Sat, 21 Apr 2007 22:18:54 +0000 (22:18 +0000)]
Rename Latin1 as Iso88591
Add Windows1252