src/stdlib/SDL_malloc.c
changeset 11489 438be648de4c
parent 10737 3406a0f8b041
child 11601 22fe56a64c6f
equal deleted inserted replaced
11488:998f992b03ed 11489:438be648de4c
  2944 
  2944 
  2945 static void
  2945 static void
  2946 internal_malloc_stats(mstate m)
  2946 internal_malloc_stats(mstate m)
  2947 {
  2947 {
  2948     if (!PREACTION(m)) {
  2948     if (!PREACTION(m)) {
       
  2949 #ifndef LACKS_STDIO_H
  2949         size_t maxfp = 0;
  2950         size_t maxfp = 0;
       
  2951 #endif
  2950         size_t fp = 0;
  2952         size_t fp = 0;
  2951         size_t used = 0;
  2953         size_t used = 0;
  2952         check_malloc_state(m);
  2954         check_malloc_state(m);
  2953         if (is_initialized(m)) {
  2955         if (is_initialized(m)) {
  2954             msegmentptr s = &m->seg;
  2956             msegmentptr s = &m->seg;
       
  2957 #ifndef LACKS_STDIO_H
  2955             maxfp = m->max_footprint;
  2958             maxfp = m->max_footprint;
       
  2959 #endif
  2956             fp = m->footprint;
  2960             fp = m->footprint;
  2957             used = fp - (m->topsize + TOP_FOOT_SIZE);
  2961             used = fp - (m->topsize + TOP_FOOT_SIZE);
  2958 
  2962 
  2959             while (s != 0) {
  2963             while (s != 0) {
  2960                 mchunkptr q = align_as_chunk(s->base);
  2964                 mchunkptr q = align_as_chunk(s->base);