]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libstand/bzlib.c.diff
This commit was generated by cvs2svn to compensate for changes in r89837,
[FreeBSD/FreeBSD.git] / lib / libstand / bzlib.c.diff
1 $FreeBSD$
2
3 A patch to avoid linking into libstand compression routines from the bzip2
4 that never being used anyway, while bloat loader(8) by additional 15KB.
5
6 --- _bzlib.c    2001/09/13 12:20:50     1.1
7 +++ _bzlib.c    2001/09/13 12:29:24
8 @@ -75,6 +75,7 @@
9  
10  #include "bzlib_private.h"
11  
12 +#ifndef BZ_NO_COMPRESS
13  
14  /*---------------------------------------------------*/
15  /*--- Compression stuff                           ---*/
16 @@ -101,6 +102,7 @@
17  }
18  #endif
19  
20 +#endif /* BZ_NO_COMPRESS */
21  
22  /*---------------------------------------------------*/
23  static
24 @@ -127,6 +128,7 @@
25     if (addr != NULL) free ( addr );
26  }
27  
28 +#ifndef BZ_NO_COMPRESS
29  
30  /*---------------------------------------------------*/
31  static
32 @@ -499,6 +501,7 @@
33     return BZ_OK;
34  }
35  
36 +#endif /* BZ_NO_COMPRESS */
37  
38  /*---------------------------------------------------*/
39  /*--- Decompression stuff                         ---*/
40 @@ -869,6 +869,7 @@
41     return BZ_OK;
42  }
43  
44 +#ifndef BZ_NO_COMPRESS
45  
46  #ifndef BZ_NO_STDIO
47  /*---------------------------------------------------*/
48 @@ -1558,6 +1559,7 @@
49  }
50  #endif
51  
52 +#endif /* BZ_NO_COMPRESS */
53  
54  /*-------------------------------------------------------------*/
55  /*--- end                                           bzlib.c ---*/