File: callstack.h

package info (click to toggle)
python-yappi 1.6.10-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,612 kB
  • sloc: python: 4,081; ansic: 2,500; makefile: 27
file content (24 lines) | stat: -rw-r--r-- 416 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
22
23
24
#ifndef YCALLSTACK_H
#define YCALLSTACK_H

#include "hashtab.h"

typedef struct {
    long long t0;
    void *ckey;
} _cstackitem;

typedef struct {
    int head;
    int size;
    _cstackitem *_items;
} _cstack;

_cstack *screate(int size);
void sdestroy(_cstack * cs);
_cstackitem * spush(_cstack *cs, void *ckey);
_cstackitem *spop(_cstack * cs);
int slen(_cstack *cs);
_cstackitem * shead(_cstack * cs);

#endif