mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
fixes for M_DEBUG, strcasecmp and RISC OS
This commit is contained in:
parent
fecfcb6454
commit
1935d90e1f
18 changed files with 323 additions and 246 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-05-10 Stefan Bellon <sbellon@sbellon.de>
|
||||
|
||||
* mpiutil.c (mpi_alloc_like/mpi_debug_alloc_like): Added code
|
||||
for M_DEBUG.
|
||||
|
||||
2002-04-18 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* i386/syntax.h (ALIGN): Removed parens from definition
|
||||
|
|
|
@ -383,7 +383,11 @@ mpi_copy( MPI a )
|
|||
* with the same flags as A.
|
||||
*/
|
||||
MPI
|
||||
#ifdef M_DEBUG
|
||||
mpi_debug_alloc_like( MPI a, const char *info )
|
||||
#else
|
||||
mpi_alloc_like( MPI a )
|
||||
#endif
|
||||
{
|
||||
MPI b;
|
||||
|
||||
|
@ -394,8 +398,13 @@ mpi_alloc_like( MPI a )
|
|||
b = mpi_set_opaque( NULL, p, a->nbits );
|
||||
}
|
||||
else if( a ) {
|
||||
#ifdef M_DEBUG
|
||||
b = mpi_is_secure(a)? mpi_debug_alloc_secure( a->nlimbs, info )
|
||||
: mpi_debug_alloc( a->nlimbs, info );
|
||||
#else
|
||||
b = mpi_is_secure(a)? mpi_alloc_secure( a->nlimbs )
|
||||
: mpi_alloc( a->nlimbs );
|
||||
#endif
|
||||
b->nlimbs = 0;
|
||||
b->sign = 0;
|
||||
b->flags = a->flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue