Back to home page

OSCL-LXR

 
 

    


0001 #ifndef SRCCODE_H
0002 #define SRCCODE_H 1
0003 
0004 struct srccode_state {
0005     char     *srcfile;
0006     unsigned line;
0007 };
0008 
0009 static inline void srccode_state_init(struct srccode_state *state)
0010 {
0011     state->srcfile = NULL;
0012     state->line    = 0;
0013 }
0014 
0015 void srccode_state_free(struct srccode_state *state);
0016 
0017 /* Result is not 0 terminated */
0018 char *find_sourceline(char *fn, unsigned line, int *lenp);
0019 
0020 #endif