Commit | Line | Data |
---|---|---|
c906108c SS |
1 | #ifndef _TUI_SOURCEWIN_H |
2 | #define _TUI_SOURCEWIN_H | |
3 | /* | |
c5aa993b JM |
4 | ** This header file supports |
5 | */ | |
c906108c SS |
6 | |
7 | ||
c5aa993b JM |
8 | extern void tuiDisplayMainFunction PARAMS ((void)); |
9 | extern void tuiUpdateSourceWindow PARAMS | |
10 | ((TuiWinInfoPtr, struct symtab *, Opaque, int)); | |
11 | extern void tuiUpdateSourceWindowAsIs PARAMS | |
12 | ((TuiWinInfoPtr, struct symtab *, Opaque, int)); | |
13 | extern void tuiUpdateSourceWindowsWithAddr PARAMS ((Opaque)); | |
14 | extern void tui_vUpdateSourceWindowsWithAddr PARAMS ((va_list)); | |
15 | extern void tuiUpdateSourceWindowsWithLine PARAMS ((struct symtab *, int)); | |
16 | extern void tui_vUpdateSourceWindowsWithLine PARAMS ((va_list)); | |
17 | extern void tuiUpdateSourceWindowsFromLocator PARAMS ((void)); | |
18 | extern void tuiClearSourceContent PARAMS ((TuiWinInfoPtr, int)); | |
19 | extern void tuiClearAllSourceWinsContent PARAMS ((int)); | |
20 | extern void tuiEraseSourceContent PARAMS ((TuiWinInfoPtr, int)); | |
21 | extern void tuiEraseAllSourceWinsContent PARAMS ((int)); | |
22 | extern void tuiSetSourceContentNil PARAMS ((TuiWinInfoPtr, char *)); | |
23 | extern void tuiShowSourceContent PARAMS ((TuiWinInfoPtr)); | |
24 | extern void tuiShowAllSourceWinsContent PARAMS ((void)); | |
25 | extern void tuiHorizontalSourceScroll PARAMS ((TuiWinInfoPtr, TuiScrollDirection, int)); | |
26 | extern void tuiUpdateOnEnd PARAMS ((void)); | |
c906108c | 27 | |
c5aa993b JM |
28 | extern TuiStatus tuiSetExecInfoContent PARAMS ((TuiWinInfoPtr)); |
29 | extern void tuiShowExecInfoContent PARAMS ((TuiWinInfoPtr)); | |
30 | extern void tuiShowAllExecInfosContent PARAMS ((void)); | |
31 | extern void tuiEraseExecInfoContent PARAMS ((TuiWinInfoPtr)); | |
32 | extern void tuiEraseAllExecInfosContent PARAMS ((void)); | |
33 | extern void tuiClearExecInfoContent PARAMS ((TuiWinInfoPtr)); | |
34 | extern void tuiClearAllExecInfosContent PARAMS ((void)); | |
35 | extern void tuiUpdateExecInfo PARAMS ((TuiWinInfoPtr)); | |
36 | extern void tuiUpdateAllExecInfos PARAMS ((void)); | |
c906108c | 37 | |
c5aa993b JM |
38 | extern void tuiSetIsExecPointAt PARAMS ((Opaque, TuiWinInfoPtr)); |
39 | extern void tuiSetHasBreakAt PARAMS ((struct breakpoint *, TuiWinInfoPtr, int)); | |
40 | extern void tuiAllSetHasBreakAt PARAMS ((struct breakpoint *, int)); | |
41 | extern void tui_vAllSetHasBreakAt PARAMS ((va_list)); | |
42 | extern TuiStatus tuiAllocSourceBuffer PARAMS ((TuiWinInfoPtr)); | |
43 | extern int tuiLineIsDisplayed PARAMS ((Opaque, TuiWinInfoPtr, int)); | |
c906108c SS |
44 | |
45 | ||
46 | /* | |
c5aa993b JM |
47 | ** Constant definitions |
48 | */ | |
49 | #define SCROLL_THRESHOLD 2 /* threshold for lazy scroll */ | |
c906108c SS |
50 | |
51 | ||
52 | /* | |
c5aa993b JM |
53 | ** Macros |
54 | */ | |
c906108c SS |
55 | #define m_tuiSetBreakAt(bp, winInfo) tuiSetHasBreakAt((bp, winInfo, TRUE) |
56 | #define m_tuiClearBreakAt(bp, winInfo) tuiSetHasBreakAt(bp, winInfo, FALSE) | |
57 | ||
58 | #define m_tuiAllSetBreakAt(bp) tuiAllSetHasBreakAt(bp, TRUE) | |
59 | #define m_tuiAllClearBreakAt(bp) tuiAllSetHasBreakAt(bp, FALSE) | |
60 | ||
61 | #define m_tuiSrcLineDisplayed(lineNo) tuiLineIsDisplayed((Opaque)(lineNo), srcWin, FALSE) | |
62 | #define m_tuiSrcAddrDisplayed(addr) tuiLineIsDisplayed((Opaque)(addr), disassemWin, FALSE) | |
63 | #define m_tuiSrcLineDisplayedWithinThreshold(lineNo) \ | |
64 | tuiLineIsDisplayed((Opaque)(lineNo), srcWin, TRUE) | |
65 | #define m_tuiSrcAddrDisplayedWithinThreshold(addr) \ | |
66 | tuiLineIsDisplayed((Opaque)(addr), disassemWin, TRUE) | |
67 | #define m_tuiLineDisplayedWithinThreshold(winInfo, lineOrAddr) \ | |
68 | ( (winInfo == srcWin) ? \ | |
69 | m_tuiSrcLineDisplayedWithinThreshold(lineOrAddr) : \ | |
70 | m_tuiSrcAddrDisplayedWithinThreshold(lineOrAddr) ) | |
71 | ||
72 | ||
73 | ||
c5aa993b JM |
74 | #endif |
75 | /*_TUI_SOURCEWIN_H */ |