4 extern int Purify_Lineno
;
5 extern const char * Purify_Filename
;
6 extern const char * Purify_Functionname
;
10 const char * filename
;
11 const char * functionname
;
24 typedef struct _CallStackNode CallStackNode
;
26 #define PURIFY_CSNE 64
27 #define PURIFY_RememberDepth 4 /* Remember the 4 last functions */
32 CallStackEntry entries
[PURIFY_CSNE
];
39 PosInfo stack
[PURIFY_RememberDepth
];
43 extern CallStackNode
* Purify_CallStack
;
44 extern CallStackEntry
* Purify_CurrentFrame
;
46 #define SETPOS(pi) ((pi)->filename = Purify_Filename, \
47 (pi)->functionname = Purify_Functionname, \
48 (pi)->lineno = Purify_Lineno)
50 void Purify_CallFunction (void);
51 void Purify_EnterFunction (const char * filename
, const char * functionname
,
52 int lineno
, const void * fp
);
53 void Purify_LeaveFunction (void);
54 void Purify_RememberCallers (RememberData
* rd
);
55 void Purify_PrintCallers (RememberData
* rd
);
57 #endif /* _POSINFO_H */