1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Add a Geldkarte gadget application.

Minor other changes.
This commit is contained in:
Werner Koch 2009-01-27 11:30:02 +00:00
parent 7b33b9324a
commit 51e4831685
12 changed files with 433 additions and 9 deletions

View file

@ -22,9 +22,11 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include "t-support.h"
/* Replacements for the malloc functions as used here. */
static void
@ -107,3 +109,31 @@ gcry_free (void *a)
if (a)
free (a);
}
/* Stubs for gpg-error functions required because some compilers do
not eliminate the supposed-to-be-unused-inline-functions and thus
require functions called from these inline fucntions. Although we
do not use gpg-error, gpg-error.h may get included via gcrypt.h if
it happens to be used used in libjnlib-config.h. */
int
gpg_err_code_from_errno (int err)
{
assert (!"stub function");
return -1;
}
/* Retrieve the error code directly from the ERRNO variable. This
returns GPG_ERR_UNKNOWN_ERRNO if the system error is not mapped
(report this) and GPG_ERR_MISSING_ERRNO if ERRNO has the value 0. */
int
gpg_err_code_from_syserror (void)
{
assert (!"stub function");
return -1;
}