rsc | f701258 | 2003-11-25 01:40:27 +0000 | [diff] [blame] | 1 | #ifndef _BIN_H_ |
| 2 | #define _BIN_H_ 1 |
| 3 | #if defined(__cplusplus) |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
rsc | 1a0954a | 2005-01-04 21:18:08 +0000 | [diff] [blame] | 7 | AUTOLIB(bin) |
| 8 | |
rsc | 97a5e5f | 2003-11-23 18:25:35 +0000 | [diff] [blame] | 9 | /* |
| 10 | #pragma lib "libbin.a" |
| 11 | #pragma src "/sys/src/libbin" |
| 12 | */ |
| 13 | |
| 14 | #ifndef _HAVE_BIN |
| 15 | typedef struct Bin Bin; |
| 16 | #define _HAVE_BIN |
| 17 | #endif |
| 18 | |
| 19 | void *binalloc(Bin **, ulong size, int zero); |
| 20 | void *bingrow(Bin **, void *op, ulong osize, ulong size, int zero); |
| 21 | void binfree(Bin **); |
rsc | f701258 | 2003-11-25 01:40:27 +0000 | [diff] [blame] | 22 | |
| 23 | #if defined(__cplusplus) |
| 24 | } |
| 25 | #endif |
| 26 | #endif |