1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch eb0faef81d common: Add a global variable to for the default error source.
For the shared code parts it is cumbersome to pass an error sourse
variable to each function.  Its value is always a constant for a given
binary and thus a global variable makes things a lot easier than the
former macro stuff.
* common/init.c (default_errsource): New global var.
(init_common_subsystems): Rename to _init_common_subsystems.  Set
DEFAULT_ERRSOURCE.
* common/init.h: Assert value of GPG_ERR_SOURCE_DEFAULT.
(init_common_subsystems): New macro.
* common/util.h (default_errsource): Add declaration.
* kbx/keybox-defs.h: Add some GPG_ERR_SOURCE_DEFAULT trickery.
2012-02-06 20:50:47 +01:00
..
2012-01-25 14:50:47 +01:00
2010-11-10 12:49:39 +00:00
2011-02-04 12:57:53 +01:00
2012-01-25 14:50:47 +01:00
2011-02-04 12:57:53 +01:00
2011-06-01 21:43:30 +02:00
2012-01-25 14:50:47 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00