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

📄 debug.c

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 C
📖 第 1 页 / 共 5 页
字号:
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.31 *  * This file is not intended to be easily readable and contains a number of  * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG  * interface file instead.  * ----------------------------------------------------------------------------- */#define SWIGPERL#define SWIG_CASTRANK_MODE/* ----------------------------------------------------------------------------- *  This section contains generic SWIG labels for method/variable *  declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- *//* template workaround for compilers that cannot correctly implement the C++ standard */#ifndef SWIGTEMPLATEDISAMBIGUATOR# if defined(__SUNPRO_CC)#   if (__SUNPRO_CC <= 0x560)#     define SWIGTEMPLATEDISAMBIGUATOR template#   else#     define SWIGTEMPLATEDISAMBIGUATOR #   endif# else#   define SWIGTEMPLATEDISAMBIGUATOR # endif#endif/* inline attribute */#ifndef SWIGINLINE# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))#   define SWIGINLINE inline# else#   define SWIGINLINE# endif#endif/* attribute recognised by some compilers to avoid 'unused' warnings */#ifndef SWIGUNUSED# if defined(__GNUC__)#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))#     define SWIGUNUSED __attribute__ ((__unused__)) #   else#     define SWIGUNUSED#   endif# elif defined(__ICC)#   define SWIGUNUSED __attribute__ ((__unused__)) # else#   define SWIGUNUSED # endif#endif#ifndef SWIGUNUSEDPARM# ifdef __cplusplus#   define SWIGUNUSEDPARM(p)# else#   define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif#endif/* internal SWIG method */#ifndef SWIGINTERN# define SWIGINTERN static SWIGUNUSED#endif/* internal inline SWIG method */#ifndef SWIGINTERNINLINE# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE#endif/* exporting methods */#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)#  ifndef GCC_HASCLASSVISIBILITY#    define GCC_HASCLASSVISIBILITY#  endif#endif#ifndef SWIGEXPORT# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)#   if defined(STATIC_LINKED)#     define SWIGEXPORT#   else#     define SWIGEXPORT __declspec(dllexport)#   endif# else#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)#     define SWIGEXPORT __attribute__ ((visibility("default")))#   else#     define SWIGEXPORT#   endif# endif#endif/* calling conventions for Windows */#ifndef SWIGSTDCALL# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)#   define SWIGSTDCALL __stdcall# else#   define SWIGSTDCALL# endif #endif/* Deal with Microsoft's attempt at deprecating C standard runtime functions */#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)# define _CRT_SECURE_NO_DEPRECATE#endif/* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic CAPI SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- *//* This should only be incremented when either the layout of swig_type_info changes,   or for whatever reason, the runtime changes incompatibly */#define SWIG_RUNTIME_VERSION "3"/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */#ifdef SWIG_TYPE_TABLE# define SWIG_QUOTE_STRING(x) #x# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)#else# define SWIG_TYPE_TABLE_NAME#endif/*  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for  creating a static or dynamic library from the swig runtime code.  In 99.9% of the cases, swig just needs to declare them as 'static'.    But only do this if is strictly necessary, ie, if you have problems  with your compiler or so.*/#ifndef SWIGRUNTIME# define SWIGRUNTIME SWIGINTERN#endif#ifndef SWIGRUNTIMEINLINE# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE#endif/*  Generic buffer size */#ifndef SWIG_BUFFER_SIZE# define SWIG_BUFFER_SIZE 1024#endif/* Flags for pointer conversions */#define SWIG_POINTER_DISOWN        0x1/* Flags for new pointer objects */#define SWIG_POINTER_OWN           0x1/*    Flags/methods for returning states.      The swig conversion methods, as ConvertPtr, return and integer    that tells if the conversion was successful or not. And if not,   an error code can be returned (see swigerrors.swg for the codes).      Use the following macros/flags to set or process the returning   states.      In old swig versions, you usually write code as:     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {       // success code     } else {       //fail code     }   Now you can be more explicit as:    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);    if (SWIG_IsOK(res)) {      // success code    } else {      // fail code    }   that seems to be the same, but now you can also do    Type *ptr;    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);    if (SWIG_IsOK(res)) {      // success code      if (SWIG_IsNewObj(res) {        ...	delete *ptr;      } else {        ...      }    } else {      // fail code    }       I.e., now SWIG_ConvertPtr can return new objects and you can   identify the case and take care of the deallocation. Of course that   requires also to SWIG_ConvertPtr to return new result values, as      int SWIG_ConvertPtr(obj, ptr,...) {                 if (<obj is ok>) {			                 if (<need new object>) {		                   *ptr = <ptr to new allocated object>;             return SWIG_NEWOBJ;		                 } else {				                   *ptr = <ptr to old object>;	                   return SWIG_OLDOBJ;		                 } 				               } else {				                 return SWIG_BADOBJ;		               }					             }   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the   swig errors code.   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code   allows to return the 'cast rank', for example, if you have this       int food(double)       int fooi(int);   and you call       food(1)   // cast rank '1'  (1 -> 1.0)      fooi(1)   // cast rank '0'   just use the SWIG_AddCast()/SWIG_CheckState() */#define SWIG_OK                    (0) #define SWIG_ERROR                 (-1)#define SWIG_IsOK(r)               (r >= 0)#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  /* The CastRankLimit says how many bits are used for the cast rank */#define SWIG_CASTRANKLIMIT         (1 << 8)/* The NewMask denotes the object was created (using new/malloc) */#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)/* The TmpMask is for in/out typemaps that use temporal objects */#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)/* Simple returning values */#define SWIG_BADOBJ                (SWIG_ERROR)#define SWIG_OLDOBJ                (SWIG_OK)#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)/* Check, add and del mask methods */#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))/* Cast-Rank Mode */#if defined(SWIG_CASTRANK_MODE)#  ifndef SWIG_TypeRank#    define SWIG_TypeRank             unsigned long#  endif#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */#    define SWIG_MAXCASTRANK          (2)#  endif#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)SWIGINTERNINLINE int SWIG_AddCast(int r) {   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;}SWIGINTERNINLINE int SWIG_CheckState(int r) {   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; }#else /* no cast-rank mode */#  define SWIG_AddCast#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)#endif#include <string.h>#ifdef __cplusplusextern "C" {#endiftypedef void *(*swig_converter_func)(void *);typedef struct swig_type_info *(*swig_dycast_func)(void **);/* Structure to store inforomation on one type */typedef struct swig_type_info {  const char             *name;			/* mangled name of this type */  const char             *str;			/* human readable name of this type */  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */  void                   *clientdata;		/* language specific type data */  int                    owndata;		/* flag if the structure owns the clientdata */} swig_type_info;/* Structure to store a type and conversion function used for casting */typedef struct swig_cast_info {  swig_type_info         *type;			/* pointer to type that is equivalent to this type */  swig_converter_func     converter;		/* function to cast the void pointers */  struct swig_cast_info  *next;			/* pointer to next cast in linked list */  struct swig_cast_info  *prev;			/* pointer to the previous cast */} swig_cast_info;/* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/typedef struct swig_module_info {  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */  size_t                 size;		        /* Number of types in this module */  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */  swig_type_info         **type_initial;	/* Array of initially generated type structures */  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */  void                    *clientdata;		/* Language specific module data */} swig_module_info;/*   Compare two type names skipping the space characters, therefore  "char*" == "char *" and "Class<int>" == "Class<int >", etc.  Return 0 when the two name types are equivalent, as in  strncmp, but skipping ' '.*/SWIGRUNTIME intSWIG_TypeNameComp(const char *f1, const char *l1,		  const char *f2, const char *l2) {  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {    while ((*f1 == ' ') && (f1 != l1)) ++f1;    while ((*f2 == ' ') && (f2 != l2)) ++f2;    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;  }  return (l1 - f1) - (l2 - f2);}/*  Check type equivalence in a name list like <name1>|<name2>|...  Return 0 if not equal, 1 if equal*/SWIGRUNTIME intSWIG_TypeEquiv(const char *nb, const char *tb) {  int equiv = 0;  const char* te = tb + strlen(tb);  const char* ne = nb;  while (!equiv && *ne) {    for (nb = ne; *ne; ++ne) {      if (*ne == '|') break;    }    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;    if (*ne) ++ne;  }  return equiv;}/*  Check type equivalence in a name list like <name1>|<name2>|...  Return 0 if equal, -1 if nb < tb, 1 if nb > tb*/SWIGRUNTIME intSWIG_TypeCompare(const char *nb, const char *tb) {  int equiv = 0;  const char* te = tb + strlen(tb);  const char* ne = nb;  while (!equiv && *ne) {    for (nb = ne; *ne; ++ne) {      if (*ne == '|') break;    }    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;    if (*ne) ++ne;  }  return equiv;}/* think of this as a c++ template<> or a scheme macro */#define SWIG_TypeCheck_Template(comparison, ty)         \  if (ty) {                                             \    swig_cast_info *iter = ty->cast;                    \    while (iter) {                                      \      if (comparison) {                                 \        if (iter == ty->cast) return iter;              \        /* Move iter to the top of the linked list */   \        iter->prev->next = iter->next;                  \        if (iter->next)                                 \          iter->next->prev = iter->prev;                \        iter->next = ty->cast;                          \        iter->prev = 0;                                 \        if (ty->cast) ty->cast->prev = iter;            \        ty->cast = iter;                                \        return iter;                                    \      }                                                 \      iter = iter->next;                                \    }                                                   \  }                                                     \  return 0/*  Check the typename*/SWIGRUNTIME swig_cast_info *SWIG_TypeCheck(const char *c, swig_type_info *ty) {  SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);}/* Same as previous function, except strcmp is replaced with a pointer comparison */SWIGRUNTIME swig_cast_info *SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {  SWIG_TypeCheck_Template(iter->type == from, into);}/*  Cast a pointer up an inheritance hierarchy*/SWIGRUNTIMEINLINE void *SWIG_TypeCast(swig_cast_info *ty, void *ptr) {  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);}/*    Dynamic pointer casting. Down an inheritance hierarchy*/SWIGRUNTIME swig_type_info *SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {  swig_type_info *lastty = ty;  if (!ty || !ty->dcast) return ty;  while (ty && (ty->dcast)) {    ty = (*ty->dcast)(ptr);    if (ty) lastty = ty;  }  return lastty;}/*  Return the name associated with this type*/SWIGRUNTIMEINLINE const char *SWIG_TypeName(const swig_type_info *ty) {  return ty->name;}/*  Return the pretty name associated with this type,  that is an unmangled type name in a form presentable to the user.*/SWIGRUNTIME const char *SWIG_TypePrettyName(const swig_type_info *type) {  /* The "str" field contains the equivalent pretty names of the     type, separated by vertical-bar characters.  We choose     to print the last name, as it is often (?) the most     specific. */  if (!type) return NULL;  if (type->str != NULL) {    const char *last_name = type->str;    const char *s;    for (s = type->str; *s; s++)      if (*s == '|') last_name = s+1;    return last_name;  }  else    return type->name;}/*    Set the clientdata field for a type*/SWIGRUNTIME voidSWIG_TypeClientData(swig_type_info *ti, void *clientdata) {  swig_cast_info *cast = ti->cast;  /* if (ti->clientdata == clientdata) return; */  ti->clientdata = clientdata;    while (cast) {    if (!cast->converter) {      swig_type_info *tc = cast->type;

⌨️ 快捷键说明

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