⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 option.h

📁 debug source code under unix platform.
💻 H
字号:
#ifndef MP_OPTION_H#define MP_OPTION_H/* * mpatrol * A library for controlling and tracing dynamic memory allocations. * Copyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307, USA. *//* * Option handling.  This module deals with the parsing of the option * string read from the configuration environment variable. *//* * $Id: option.h,v 1.26 2002/01/08 20:13:59 graeme Exp $ */#include "config.h"#include "info.h"/* Options that can be set at run-time.  These must have the negative value * of those defined in mpatrol.h and must be kept up to date with respect to * those definitions. */#define OPT_HELP          0#define OPT_SETFLAGS      1#define OPT_UNSETFLAGS    2#define OPT_ALLOCSTOP     3#define OPT_REALLOCSTOP   4#define OPT_FREESTOP      5#define OPT_ALLOCBYTE     6#define OPT_FREEBYTE      7#define OPT_OFLOWBYTE     8#define OPT_OFLOWSIZE     9#define OPT_DEFALIGN      10#define OPT_LIMIT         11#define OPT_FAILFREQ      12#define OPT_FAILSEED      13#define OPT_UNFREEDABORT  14#define OPT_LOGFILE       15#define OPT_PROFFILE      16#define OPT_TRACEFILE     17#define OPT_PROGFILE      18#define OPT_AUTOSAVE      19#define OPT_CHECKLOWER    20#define OPT_CHECKUPPER    21#define OPT_CHECKFREQ     22#define OPT_NOFREE        23#define OPT_SMALLBOUND    24#define OPT_MEDIUMBOUND   25#define OPT_LARGEBOUND    26/* Flags that can be set at run-time.  These must be kept up to date with * the definitions in mpatrol.h */#define OPT_CHECKALL      (OPT_CHECKALLOCS | OPT_CHECKREALLOCS | \                           OPT_CHECKFREES | OPT_CHECKMEMORY)#define OPT_CHECKALLOCS   0x00000001#define OPT_CHECKREALLOCS 0x00000002#define OPT_CHECKFREES    0x00000004#define OPT_CHECKMEMORY   0x00000008#define OPT_LOGALL        (OPT_LOGALLOCS | OPT_LOGREALLOCS | OPT_LOGFREES | \                           OPT_LOGMEMORY)#define OPT_LOGALLOCS     0x00000010#define OPT_LOGREALLOCS   0x00000020#define OPT_LOGFREES      0x00000040#define OPT_LOGMEMORY     0x00000080#define OPT_SHOWALL       (OPT_SHOWMAP | OPT_SHOWSYMBOLS | OPT_SHOWFREE | \                           OPT_SHOWFREED | OPT_SHOWUNFREED)#define OPT_SHOWMAP       0x00000100#define OPT_SHOWSYMBOLS   0x00000200#define OPT_SHOWFREE      0x00000400#define OPT_SHOWFREED     0x00000800#define OPT_SHOWUNFREED   0x00001000#define OPT_LEAKTABLE     0x00002000#define OPT_ALLOWOFLOW    0x00004000#define OPT_PROF          0x00008000#define OPT_TRACE         0x00010000#define OPT_SAFESIGNALS   0x00020000#define OPT_NOPROTECT     0x00040000#define OPT_CHECKFORK     0x00080000#define OPT_PRESERVE      0x00100000#define OPT_OFLOWWATCH    0x00200000#define OPT_PAGEALLOC     0x00400000#define OPT_ALLOCUPPER    0x00800000#define OPT_USEMMAP       0x01000000#define OPT_USEDEBUG      0x02000000#define OPT_EDIT          0x04000000#define OPT_LIST          0x08000000#define OPT_HTML          0x10000000/* The different types of errors when parsing options. */typedef enum optionerr{    OE_UNRECOGNISED, /* unrecognised option */    OE_RECOGNISED,   /* recognised option */    OE_NOARGUMENT,   /* missing argument */    OE_BADNUMBER,    /* bad numeric argument */    OE_BADRANGE,     /* bad numeric range */    OE_BIGNUMBER,    /* numeric argument too large */    OE_LOWERORUPPER, /* LOWER or UPPER required */    OE_IGNARGUMENT   /* ignoring argument */}optionerr;#ifdef __cplusplusextern "C"{#endif /* __cplusplus */MP_EXPORT void __mp_parseoptions(infohead *);MP_EXPORT unsigned long __mp_set(infohead *, unsigned long, unsigned long);MP_EXPORT int __mp_get(infohead *, unsigned long, unsigned long *);#ifdef __cplusplus}#endif /* __cplusplus */#endif /* MP_OPTION_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -