File: freelist.h

package info (click to toggle)
python-yappi 1.7.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,612 kB
  • sloc: python: 4,088; ansic: 2,515; makefile: 29
file content (21 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef YFREELIST_H
#define YFREELIST_H

typedef struct {
    int head;
    int size;
    int chunksize;
    void **items;
} _freelist;

_freelist * flcreate(int chunksize, int size);
void fldestroy(_freelist *flp);
void *flget(_freelist *flp);
int flput(_freelist *flp, void *p);
unsigned int flcount(_freelist *flp);
void fldisp(_freelist *flp);

#endif