These prototypes does not belong in the C file. Most/all already are in
protos.h and can simply be deleted.
Only prototypes for static functions belings in .c files. Global
functions shoule be defined in protos.h to allow them to be used from
other parts of the code, or be made static.
-- Henrik Andres Kroonmaa wrote: > Index: mem.c > =================================================================== > RCS file: /cvsroot/squid/squid/src/mem.c,v > retrieving revision 1.9.8.7 > retrieving revision 1.9.8.8 > diff -w -u -r1.9.8.7 -r1.9.8.8 > --- mem.c 2001/05/04 14:41:55 1.9.8.7 > +++ mem.c 2001/05/04 14:52:42 1.9.8.8 > @@ -37,8 +37,36 @@ > #include "memMeter.h" > > /* module globals */ > +int memPoolInUseCount(MemPool * pool); > +int memPoolsTotalAllocated(void); > +void memDataInit(mem_type type, const char *name, size_t size, int max_pages_notused); > +void * memAllocate(mem_type type); > +void memFree(void *p, int type); > +void * memAllocBuf(size_t net_size, size_t * gross_size); > +void memFreeBuf(size_t size, void *buf); > +void memPoolCleanIdlePools(void *unused); > +void memConfigure(void); > +void memInit(void); > +void memCheckInit(void); > +void memClean(void); > +int memInUse(mem_type type); > +void memFree2K(void *p); > +void memFree4K(void *p); > +void memFree8K(void *p); > +void memFree16K(void *p); > +void memFree32K(void *p); > +void memFree64K(void *p); > +void memReport(StoreEntry * e);Received on Fri May 04 2001 - 13:01:01 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:58 MST