WIP FPC-III support
[linux/fpc-iii.git] / tools / perf / util / srccode.h
blob1b5ed769779ccb855d11a4ad2deecef03280ca50
1 #ifndef SRCCODE_H
2 #define SRCCODE_H 1
4 struct srccode_state {
5 char *srcfile;
6 unsigned line;
7 };
9 static inline void srccode_state_init(struct srccode_state *state)
11 state->srcfile = NULL;
12 state->line = 0;
15 void srccode_state_free(struct srccode_state *state);
17 /* Result is not 0 terminated */
18 char *find_sourceline(char *fn, unsigned line, int *lenp);
20 #endif