e84ceec9b5
refactor some lib facilities
...
- Cmdline into namespace lib
- test coverage for the SearchPath iterator
2011-02-05 23:53:37 +01:00
3f1b7651e9
GPL header whitespace
2010-12-17 23:28:49 +01:00
Christian Thaeter
b60d8aa907
FIX: error.c memory leak when destroying threads
...
the error context is dynamically allocated and must be freed, forgotten
this as errors originated from static strings initially.
2010-02-07 20:25:09 +01:00
Christian Thaeter
014c83ff5a
PTHREAD_ONCE_INIT can be a macro, fast init trick doesn't work then
2010-01-30 08:40:38 +01:00
Christian Thaeter
c29ea07138
lumiera_error_expect() lets one easily handle expected errors
...
This is a convenience function which clears the error state when some
expected error occurred and lets one branch on this.
2010-01-13 17:41:26 +01:00
Christian Thaeter
b232a4f9f0
errors for locking
...
* add a 'unknown' error to the error system as fallback
* lockerror.c|h define all errors which can happen due locking
* lumiera_lockerror_set() translates posix errors to lumiera errors
* remove stale errors from sectionlock.h
2010-01-13 00:10:33 +01:00
Christian Thaeter
d37bb17566
Add a context string to the error system
...
lumiera_error_set() now takes an optional extra string which can be used
to pass context relevant data along. This string gets copied into the
error state so one can easily create it by the tmpbuf_snprintf() facility.
Also a lot of places which define errors get fixed according to this.
2009-01-13 21:23:37 +01:00
Christian Thaeter
07cec0a44d
make the uses of pthread_once faster by checking the once var first
2008-12-27 16:25:07 +01:00
Christian Thaeter
257b310699
add an error_peek function, fix prototypes
...
lumiera_error_peek() lets one investigate the error state without resetting
it.
2008-11-03 08:03:48 +01:00
Christian Thaeter
93e126f5ab
add a 'lumiera_err' typedef
2008-08-10 12:19:08 +02:00
Mano Stienen
163ba179ed
moved documentation from error.c to .h
2008-07-20 16:11:08 +02:00
Christian Thaeter
00b9dff106
Doxygen config update
...
* set EXPORT_ALL=NO to leave out undcoumented entities.
* Fix a lot @file directives
2008-05-19 16:27:29 +02:00
e737b9ef1b
Lumiera renaming -- source code
2008-03-10 06:09:44 +01:00
0baf15ca94
Cinelerra-3 renamed to Lumiera -- copyright and documentation
2008-03-10 04:25:03 +01:00
Odin Omdal Hørthe
9952aa33a4
Updated function docs to use the actual variables and cut textwidth at 105
2007-10-20 17:50:42 +02:00
Odin Omdal Hørthe
74a7bf4493
Made a @file-skeleton for doxygen for the files in src/lib/
2007-10-20 17:27:27 +02:00
Odin Omdal Hørthe
6eea8a60e0
Moved function doc from error.h to error.c
2007-10-20 16:52:59 +02:00
Christian Thaeter
194d7810f4
add a cinelerra error which can be used to forward standard C errors from errno
2007-08-31 01:21:44 +02:00
Christian Thaeter
d36a38a56e
errorhandling finished for now, as proposed
2007-08-14 04:40:13 +02:00