- B48416427E71FE46868283490813E4D0A22DA9F4B17EFF706673A9B05380AE2D85EC9B183DB47EAA8AA197B7C7629EB873E63E5F8A66208BF230A794B6967FAB
+ 6580645F16FEA9A37EFF8460584FCA09F39B1EC9BA88E00AA0207C75267F7190810CF45F2733C9960AAEC0DAAAC7FE74785F38287AA61CB4CD5D4F50EA1158C9
mpi/include/memory.h
(1 . 34)(1 . 36)
633 /* memory.h - memory allocation
634 * Copyright (C) 1998, 1999, 2000, 2001, 2005 Free Software Foundation, Inc.
635 * Modified by No Such Labs. (C) 2015. See README.
636 *
637 * This file is part of GNUPG.
638 * This file was originally part of Gnu Privacy Guard (GPG), ver. 1.4.10,
639 * SHA256(gnupg-1.4.10.tar.gz):
640 * 0bfd74660a2f6cedcf7d8256db4a63c996ffebbcdc2cf54397bfb72878c5a85a
641 * (C) 1994-2005 Free Software Foundation, Inc.
642 *
643 * GNUPG is free software; you can redistribute it and/or modify
644 * This program is free software: you can redistribute it and/or modify
645 * it under the terms of the GNU General Public License as published by
646 * the Free Software Foundation; either version 3 of the License, or
647 * the Free Software Foundation, either version 3 of the License, or
648 * (at your option) any later version.
649 *
650 * GNUPG is distributed in the hope that it will be useful,
651 * This program is distributed in the hope that it will be useful,
652 * but WITHOUT ANY WARRANTY; without even the implied warranty of
653 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
654 * GNU General Public License for more details.
655 *
656 * You should have received a copy of the GNU General Public License
657 * along with this program; if not, see <http://www.gnu.org/licenses/>.
658 * along with this program. If not, see <http://www.gnu.org/licenses/>.
659 */
660
661 #ifndef G10_MEMORY_H
662 #define G10_MEMORY_H
663
664 #ifdef M_DEBUG
665
666 #ifndef STR
667 #define STR(v) #v
668 #endif
669 #ifndef __riscos__
670
671 #define M_DBGINFO(a) __FUNCTION__ "["__FILE__ ":" STR(a) "]"
672 #else /* __riscos__ */
673 #define M_DBGINFO(a) "["__FILE__ ":" STR(a) "]"
674 #endif /* __riscos__ */
675
676 #define xmalloc(n) m_debug_alloc((n), M_DBGINFO( __LINE__ ) )
677 #define xtrymalloc(n) m_debug_trymalloc ((n), M_DBGINFO( __LINE__ ))
678 #define xmalloc_clear(n) m_debug_alloc_clear((n), M_DBGINFO(__LINE__) )
(91 . 12)(93 . 8)
680 #define DBG_MEMSTAT memory_stat_debug_mode
681
682 #ifndef EXTERN_UNLESS_MAIN_MODULE
683 #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
684 #define EXTERN_UNLESS_MAIN_MODULE extern
685 #else
686 #define EXTERN_UNLESS_MAIN_MODULE
687 #endif
688 #endif
689 EXTERN_UNLESS_MAIN_MODULE int memory_debug_mode;
690 EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode;
691