亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ftdbgmem.c

?? QT 開發環境里面一個很重要的文件
?? C
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************//*                                                                         *//*  ftdbgmem.c                                                             *//*                                                                         *//*    Memory debugger (body).                                              *//*                                                                         *//*  Copyright 2001, 2002, 2003, 2004, 2005, 2006 by                        *//*  David Turner, Robert Wilhelm, and Werner Lemberg.                      *//*                                                                         *//*  This file is part of the FreeType project, and may only be used,       *//*  modified, and distributed under the terms of the FreeType project      *//*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     *//*  this file you indicate that you have read the license and              *//*  understand and accept it fully.                                        *//*                                                                         *//***************************************************************************/#include <ft2build.h>#include FT_CONFIG_CONFIG_H#include FT_INTERNAL_DEBUG_H#include FT_INTERNAL_MEMORY_H#include FT_SYSTEM_H#include FT_ERRORS_H#include FT_TYPES_H#ifdef FT_DEBUG_MEMORY#define  KEEPALIVE /* `Keep alive' means that freed blocks aren't released                    * to the heap.  This is useful to detect double-frees                    * or weird heap corruption, but it uses large amounts of                    * memory, however.                    */#include <stdio.h>#include <stdlib.h>  FT_BASE_DEF( const char* )  _ft_debug_file   = 0;  FT_BASE_DEF( long )         _ft_debug_lineno = 0;  extern void  FT_DumpMemory( FT_Memory  memory );  typedef struct FT_MemSourceRec_*  FT_MemSource;  typedef struct FT_MemNodeRec_*    FT_MemNode;  typedef struct FT_MemTableRec_*   FT_MemTable;#define FT_MEM_VAL( addr )  ((FT_ULong)(FT_Pointer)( addr ))  /*   *  This structure holds statistics for a single allocation/release   *  site.  This is useful to know where memory operations happen the   *  most.   */  typedef struct  FT_MemSourceRec_  {    const char*   file_name;    long          line_no;    FT_Long       cur_blocks;   /* current number of allocated blocks */    FT_Long       max_blocks;   /* max. number of allocated blocks    */    FT_Long       all_blocks;   /* total number of blocks allocated   */    FT_Long       cur_size;     /* current cumulative allocated size */    FT_Long       max_size;     /* maximum cumulative allocated size */    FT_Long       all_size;     /* total cumulative allocated size   */    FT_Long       cur_max;      /* current maximum allocated size */    FT_UInt32     hash;    FT_MemSource  link;  } FT_MemSourceRec;  /*   *  We don't need a resizable array for the memory sources, because   *  their number is pretty limited within FreeType.   */#define FT_MEM_SOURCE_BUCKETS  128  /*   *  This structure holds information related to a single allocated   *  memory block.  If KEEPALIVE is defined, blocks that are freed by   *  FreeType are never released to the system.  Instead, their `size'   *  field is set to -size.  This is mainly useful to detect double frees,   *  at the price of large memory footprint during execution.   */  typedef struct  FT_MemNodeRec_  {    FT_Byte*      address;    FT_Long       size;     /* < 0 if the block was freed */    FT_MemSource  source;#ifdef KEEPALIVE    const char*   free_file_name;    FT_Long       free_line_no;#endif    FT_MemNode    link;  } FT_MemNodeRec;  /*   *  The global structure, containing compound statistics and all hash   *  tables.   */  typedef struct  FT_MemTableRec_  {    FT_ULong         size;    FT_ULong         nodes;    FT_MemNode*      buckets;    FT_ULong         alloc_total;    FT_ULong         alloc_current;    FT_ULong         alloc_max;    FT_ULong         alloc_count;    FT_Bool          bound_total;    FT_ULong         alloc_total_max;    FT_Bool          bound_count;    FT_ULong         alloc_count_max;    FT_MemSource     sources[FT_MEM_SOURCE_BUCKETS];    FT_Bool          keep_alive;    FT_Memory        memory;    FT_Pointer       memory_user;    FT_Alloc_Func    alloc;    FT_Free_Func     free;    FT_Realloc_Func  realloc;  } FT_MemTableRec;#define FT_MEM_SIZE_MIN  7#define FT_MEM_SIZE_MAX  13845163#define FT_FILENAME( x )  ((x) ? (x) : "unknown file")  /*   *  Prime numbers are ugly to handle.  It would be better to implement   *  L-Hashing, which is 10% faster and doesn't require divisions.   */  static const FT_UInt  ft_mem_primes[] =  {    7,    11,    19,    37,    73,    109,    163,    251,    367,    557,    823,    1237,    1861,    2777,    4177,    6247,    9371,    14057,    21089,    31627,    47431,    71143,    106721,    160073,    240101,    360163,    540217,    810343,    1215497,    1823231,    2734867,    4102283,    6153409,    9230113,    13845163,  };  static FT_ULong  ft_mem_closest_prime( FT_ULong  num )  {    FT_UInt  i;    for ( i = 0;          i < sizeof ( ft_mem_primes ) / sizeof ( ft_mem_primes[0] ); i++ )      if ( ft_mem_primes[i] > num )        return ft_mem_primes[i];    return FT_MEM_SIZE_MAX;  }  extern void  ft_mem_debug_panic( const char*  fmt,                      ... )  {    va_list  ap;    printf( "FreeType.Debug: " );    va_start( ap, fmt );    vprintf( fmt, ap );    va_end( ap );    printf( "\n" );    exit( EXIT_FAILURE );  }  static FT_Pointer  ft_mem_table_alloc( FT_MemTable  table,                      FT_Long      size )  {    FT_Memory   memory = table->memory;    FT_Pointer  block;    memory->user = table->memory_user;    block = table->alloc( memory, size );    memory->user = table;    return block;  }  static void  ft_mem_table_free( FT_MemTable  table,                     FT_Pointer   block )  {    FT_Memory  memory = table->memory;    memory->user = table->memory_user;    table->free( memory, block );    memory->user = table;  }  static void  ft_mem_table_resize( FT_MemTable  table )  {    FT_ULong  new_size;    new_size = ft_mem_closest_prime( table->nodes );    if ( new_size != table->size )    {      FT_MemNode*  new_buckets;      FT_ULong     i;      new_buckets = (FT_MemNode *)                      ft_mem_table_alloc( table,                                          new_size * sizeof ( FT_MemNode ) );      if ( new_buckets == NULL )        return;      FT_ARRAY_ZERO( new_buckets, new_size );      for ( i = 0; i < table->size; i++ )      {        FT_MemNode  node, next, *pnode;        FT_ULong    hash;        node = table->buckets[i];        while ( node )        {          next  = node->link;          hash  = FT_MEM_VAL( node->address ) % new_size;          pnode = new_buckets + hash;          node->link = pnode[0];          pnode[0]   = node;          node = next;        }      }      if ( table->buckets )        ft_mem_table_free( table, table->buckets );      table->buckets = new_buckets;      table->size    = new_size;    }  }  static FT_MemTable  ft_mem_table_new( FT_Memory  memory )  {    FT_MemTable  table;    table = (FT_MemTable)memory->alloc( memory, sizeof ( *table ) );    if ( table == NULL )      goto Exit;    FT_ZERO( table );    table->size  = FT_MEM_SIZE_MIN;    table->nodes = 0;    table->memory = memory;    table->memory_user = memory->user;    table->alloc   = memory->alloc;    table->realloc = memory->realloc;    table->free    = memory->free;    table->buckets = (FT_MemNode *)                       memory->alloc( memory,                                      table->size * sizeof ( FT_MemNode ) );    if ( table->buckets )      FT_ARRAY_ZERO( table->buckets, table->size );    else    {      memory->free( memory, table );      table = NULL;    }  Exit:    return table;  }  static void  ft_mem_table_destroy( FT_MemTable  table )  {    FT_ULong  i;    FT_DumpMemory( table->memory );    if ( table )    {      FT_Long   leak_count = 0;      FT_ULong  leaks      = 0;      /* remove all blocks from the table, revealing leaked ones */      for ( i = 0; i < table->size; i++ )      {        FT_MemNode  *pnode = table->buckets + i, next, node = *pnode;        while ( node )        {          next       = node->link;          node->link = 0;          if ( node->size > 0 )          {            printf(              "leaked memory block at address %p, size %8ld in (%s:%ld)\n",              node->address, node->size,              FT_FILENAME( node->source->file_name ),              node->source->line_no );            leak_count++;            leaks += node->size;            ft_mem_table_free( table, node->address );          }          node->address = NULL;          node->size    = 0;          ft_mem_table_free( table, node );          node = next;        }        table->buckets[i] = 0;      }      ft_mem_table_free( table, table->buckets );      table->buckets = NULL;      table->size  = 0;      table->nodes = 0;      /* remove all sources */      for ( i = 0; i < FT_MEM_SOURCE_BUCKETS; i++ )      {        FT_MemSource  source, next;        for ( source = table->sources[i]; source != NULL; source = next )        {          next = source->link;          ft_mem_table_free( table, source );        }        table->sources[i] = NULL;      }      printf(        "FreeType: total memory allocations = %ld\n", table->alloc_total );      printf(        "FreeType: maximum memory footprint = %ld\n", table->alloc_max );      ft_mem_table_free( table, table );      if ( leak_count > 0 )        ft_mem_debug_panic(          "FreeType: %ld bytes of memory leaked in %ld blocks\n",          leaks, leak_count );      printf( "FreeType: No memory leaks detected!\n" );    }  }  static FT_MemNode*  ft_mem_table_get_nodep( FT_MemTable  table,                          FT_Byte*     address )  {    FT_ULong     hash;    FT_MemNode  *pnode, node;    hash  = FT_MEM_VAL( address );    pnode = table->buckets + ( hash % table->size );    for (;;)    {      node = pnode[0];      if ( !node )        break;      if ( node->address == address )        break;      pnode = &node->link;    }    return pnode;  }  static FT_MemSource  ft_mem_table_get_source( FT_MemTable  table )  {    FT_UInt32     hash;    FT_MemSource  node, *pnode;    hash  = (FT_UInt32)(void*)_ft_debug_file +              (FT_UInt32)( 5 * _ft_debug_lineno );    pnode = &table->sources[hash % FT_MEM_SOURCE_BUCKETS];    for ( ;; )    {      node = *pnode;      if ( node == NULL )        break;      if ( node->file_name == _ft_debug_file &&           node->line_no   == _ft_debug_lineno   )        goto Exit;      pnode = &node->link;    }    node = (FT_MemSource)ft_mem_table_alloc( table, sizeof ( *node ) );    if ( node == NULL )      ft_mem_debug_panic(        "not enough memory to perform memory debugging\n" );    node->file_name = _ft_debug_file;    node->line_no   = _ft_debug_lineno;    node->cur_blocks = 0;    node->max_blocks = 0;    node->all_blocks = 0;    node->cur_size   = 0;    node->max_size   = 0;    node->all_size   = 0;    node->cur_max    = 0;    node->link = NULL;    node->hash = hash;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人成精品久久久久| 福利一区在线观看| 国产成人一级电影| 欧美亚洲一区二区在线观看| 欧美va日韩va| 亚洲影视在线播放| 成人黄页毛片网站| 欧美成人精精品一区二区频| 亚洲激情男女视频| 成人中文字幕在线| 久久这里只有精品6| 亚洲国产综合在线| 91亚洲精品一区二区乱码| 久久噜噜亚洲综合| 久久99精品久久久久久国产越南 | 亚洲一区在线免费观看| 懂色av一区二区夜夜嗨| 精品日韩一区二区三区免费视频| 一区二区三区欧美亚洲| 91香蕉视频黄| 国产精品传媒入口麻豆| 成人在线一区二区三区| 欧美成人一区二区三区在线观看 | 6080亚洲精品一区二区| 亚洲青青青在线视频| 粉嫩蜜臀av国产精品网站| 日韩三级中文字幕| 久久精品国产精品亚洲精品| 欧美精品18+| 日本一不卡视频| 91精品在线免费| 日韩av中文字幕一区二区| 在线不卡中文字幕播放| 午夜精品福利一区二区蜜股av| 91热门视频在线观看| 国产精品美女久久久久久久久久久| 国产高清在线观看免费不卡| 久久综合色婷婷| 国产精品一区二区黑丝| 中文字幕精品一区二区精品绿巨人 | 日韩精品一区第一页| 欧美日韩国产免费一区二区 | 一卡二卡欧美日韩| 91在线免费视频观看| 中文字幕在线不卡视频| 在线视频一区二区免费| 天天综合日日夜夜精品| 欧美日本一区二区三区四区| 日韩va亚洲va欧美va久久| 精品国产乱子伦一区| 国产美女一区二区| 亚洲另类中文字| 91麻豆精品国产综合久久久久久 | 久久嫩草精品久久久精品| 国产69精品久久久久777| 国产精品成人免费在线| 在线观看一区二区视频| 丝瓜av网站精品一区二区| 精品卡一卡二卡三卡四在线| 成人性生交大片| 夜夜嗨av一区二区三区中文字幕 | 色婷婷综合中文久久一本| 一区二区在线观看av| 欧美一区二区三区电影| 国模一区二区三区白浆| 亚洲人成电影网站色mp4| 91精品国产全国免费观看| 国产乱码精品一区二区三区忘忧草| 中文字幕视频一区| 欧美高清一级片在线| 成人激情黄色小说| 日本va欧美va欧美va精品| 国产精品丝袜91| 欧美一区二区成人| 黄色小说综合网站| 亚洲国产你懂的| 国产色产综合色产在线视频 | 五月天久久比比资源色| 精品国产凹凸成av人网站| www.日韩精品| 老司机精品视频在线| 亚洲人123区| 国产亲近乱来精品视频| 欧美日韩极品在线观看一区| 粉嫩av一区二区三区| 七七婷婷婷婷精品国产| 一区二区三区在线看| 久久精品网站免费观看| 日韩欧美国产一区在线观看| 在线视频一区二区三| 高清成人免费视频| 国内精品免费在线观看| 日韩福利电影在线观看| 洋洋av久久久久久久一区| 中文字幕av在线一区二区三区| 日韩免费一区二区| 欧美日韩国产一二三| 色av综合在线| 99热99精品| 粉嫩一区二区三区在线看| 精品一区二区日韩| 久久精品理论片| 三级不卡在线观看| 石原莉奈一区二区三区在线观看| 亚洲美女在线一区| 亚洲激情六月丁香| 一区二区三区精品视频| 综合激情成人伊人| 国产精品伦理一区二区| 国产午夜精品一区二区三区视频| 欧美tickling挠脚心丨vk| 欧美一区二区三区四区在线观看| 欧美色综合天天久久综合精品| 色婷婷激情久久| 日本高清成人免费播放| 在线中文字幕一区| 欧美视频日韩视频在线观看| 欧美日韩久久久| 欧美一区二区三区啪啪| 日韩欧美综合在线| 久久久久久久综合| 国产色产综合产在线视频| 国产日产欧产精品推荐色 | 亚洲永久精品国产| 午夜精品123| 青青草国产成人av片免费| 精品伊人久久久久7777人| 久久国产乱子精品免费女| 黑人精品欧美一区二区蜜桃| 国产成人aaa| 色综合久久久久网| 7777精品久久久大香线蕉| 日韩免费电影网站| 欧美激情综合五月色丁香 | 国产三级一区二区三区| 国产精品欧美精品| 一区二区三区在线视频观看58| 亚洲电影一区二区三区| 精品一区二区三区免费观看| 国产成人免费在线观看| 色婷婷av一区二区三区软件 | 在线视频欧美精品| 7777精品伊人久久久大香线蕉的 | 国产精品久久久久影视| 一区二区三区不卡视频| 蜜桃久久久久久| 99麻豆久久久国产精品免费| 91黄视频在线观看| 精品久久国产字幕高潮| 国产精品美女久久福利网站| 亚洲香蕉伊在人在线观| 国产在线播放一区| 91久久精品一区二区| 精品va天堂亚洲国产| 一区二区在线看| 国产一区二区三区在线观看免费视频 | 欧美日韩国产美| 久久精品人人做| 亚洲成人久久影院| 成人高清伦理免费影院在线观看| 欧美色综合网站| 中文字幕一区免费在线观看| 日本中文字幕一区二区视频| av午夜一区麻豆| 日韩精品一区二区三区中文精品| 亚洲女子a中天字幕| 国产一级精品在线| 91精品国产综合久久久久久久久久| 国产三级一区二区| 久久99精品久久久| 欧美卡1卡2卡| 综合久久给合久久狠狠狠97色| 精品亚洲国内自在自线福利| 91福利在线观看| 中文字幕日韩一区| 成年人国产精品| 久久久久久久综合日本| 免费美女久久99| 欧美疯狂做受xxxx富婆| 亚洲三级电影网站| 国产成人免费在线观看| 欧美成人精品3d动漫h| 青青青伊人色综合久久| 欧美久久一二三四区| 亚洲欧美成aⅴ人在线观看| 不卡一卡二卡三乱码免费网站| 久久综合九色综合欧美就去吻| 五月激情六月综合| 欧美日韩精品一区二区在线播放| 亚洲免费观看高清完整版在线 | 香蕉久久一区二区不卡无毒影院| 成人动漫精品一区二区| 国产精品美女一区二区三区| 国产一区二区在线观看视频| 精品美女在线播放| 国产乱妇无码大片在线观看| 精品国产成人在线影院| 国产高清在线精品| 国产精品每日更新在线播放网址| 成人三级在线视频|