/[gcl]/gcl/o/alloc.c
ViewVC logotype

Diff of /gcl/o/alloc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by camm, Sun Feb 3 18:44:08 2002 UTC revision 1.5 by camm, Sat Feb 9 17:27:19 2002 UTC
# Line 1057  static char *baby_malloc(n) Line 1057  static char *baby_malloc(n)
1057  }  }
1058  #endif  #endif
1059    
1060    #ifdef HAVE_LIBBFD
1061    
1062    int in_bfd_init=0;
1063    
1064  /* configure size, static init ? */  /* configure size, static init ? */
1065  static char bfd_buf[/*  4392 */5000];  static char bfd_buf[/*  4392 */5000];
1066  static char *bfd_buf_p=bfd_buf;  static char *bfd_buf_p=bfd_buf;
# Line 1078  bfd_malloc(int n) { Line 1082  bfd_malloc(int n) {
1082    return (void *)c;    return (void *)c;
1083    
1084  }  }
1085    #endif
1086    
1087  char *  char *
1088  malloc(size)  malloc(size)
1089  int size;  int size;
1090  {  {
         extern int in_bfd_init;  
1091          object x;          object x;
1092                    
1093    #ifdef HAVE_LIBBFD
1094          if (in_bfd_init)          if (in_bfd_init)
1095            return bfd_malloc(size);            return bfd_malloc(size);
1096    #endif
1097    
1098  #ifdef BABY_MALLOC_SIZE  #ifdef BABY_MALLOC_SIZE
1099          if (GBC_enable == 0) return baby_malloc(size);          if (GBC_enable == 0) return baby_malloc(size);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26