* tuiStack.h (tuiGetLocatorFilename): Don't declare.
(tuiUpdateLocatorDisplay): Likewise. * tuiStack.c (tuiGetLocatorFilename): Remove. (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent instead of tuiUpdateLocatorDisplay. (tuiUpdateLocatorDisplay): Remove.
This commit is contained in:
parent
3a42771a8e
commit
d059f789de
@ -1,3 +1,12 @@
|
|||||||
|
2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
|
||||||
|
|
||||||
|
* tuiStack.h (tuiGetLocatorFilename): Don't declare.
|
||||||
|
(tuiUpdateLocatorDisplay): Likewise.
|
||||||
|
* tuiStack.c (tuiGetLocatorFilename): Remove.
|
||||||
|
(tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent
|
||||||
|
instead of tuiUpdateLocatorDisplay.
|
||||||
|
(tuiUpdateLocatorDisplay): Remove.
|
||||||
|
|
||||||
2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
|
2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
|
||||||
|
|
||||||
* tuiStack.h (tuiClearLocatorDisplay): Don't declare.
|
* tuiStack.h (tuiClearLocatorDisplay): Don't declare.
|
||||||
|
@ -187,32 +187,6 @@ tuiSwitchFilename (char *fileName)
|
|||||||
return;
|
return;
|
||||||
} /* tuiSwitchFilename */
|
} /* tuiSwitchFilename */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** tuiGetLocatorFilename().
|
|
||||||
** Get the filename portion of the locator.
|
|
||||||
** (elz)
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
tuiGetLocatorFilename (TuiGenWinInfoPtr locator, char **filename)
|
|
||||||
{
|
|
||||||
|
|
||||||
/* the current filename could be non known, in which case the xmalloc would
|
|
||||||
allocate no memory, because the length would be 0 */
|
|
||||||
if (((TuiWinElementPtr) locator->content[0])->whichElement.locator.fileName)
|
|
||||||
{
|
|
||||||
int name_length =
|
|
||||||
strlen (((TuiWinElementPtr) locator->content[0])->whichElement.locator.fileName);
|
|
||||||
|
|
||||||
(*filename) = (char *) xmalloc (name_length + 1);
|
|
||||||
strcpy ((*filename),
|
|
||||||
((TuiWinElementPtr) locator->content[0])->whichElement.locator.fileName);
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
|
||||||
} /* tuiGetLocatorFilename */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** tuiUpdateLocatorInfoFromFrame().
|
** tuiUpdateLocatorInfoFromFrame().
|
||||||
** Function to update the locator, with the information extracted from frameInfo
|
** Function to update the locator, with the information extracted from frameInfo
|
||||||
@ -278,21 +252,6 @@ tuiSetLocatorContent (struct frame_info *frameInfo)
|
|||||||
return;
|
return;
|
||||||
} /* tuiSetLocatorContent */
|
} /* tuiSetLocatorContent */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** tuiUpdateLocatorDisplay().
|
|
||||||
** Function to update the locator display
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
tuiUpdateLocatorDisplay (struct frame_info *frameInfo)
|
|
||||||
{
|
|
||||||
tuiSetLocatorContent (frameInfo);
|
|
||||||
tuiShowLocatorContent ();
|
|
||||||
|
|
||||||
return;
|
|
||||||
} /* tuiUpdateLocatorDisplay */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** tuiShowFrameInfo().
|
** tuiShowFrameInfo().
|
||||||
** Function to print the frame inforrmation for the TUI.
|
** Function to print the frame inforrmation for the TUI.
|
||||||
@ -318,7 +277,8 @@ tuiShowFrameInfo (struct frame_info *fi)
|
|||||||
|
|
||||||
startLine = 0;
|
startLine = 0;
|
||||||
sourceAlreadyDisplayed = tuiSourceIsDisplayed (s->filename);
|
sourceAlreadyDisplayed = tuiSourceIsDisplayed (s->filename);
|
||||||
tuiUpdateLocatorDisplay (fi);
|
tuiSetLocatorContent (fi);
|
||||||
|
tuiShowLocatorContent ();
|
||||||
for (i = 0; i < (sourceWindows ())->count; i++)
|
for (i = 0; i < (sourceWindows ())->count; i++)
|
||||||
{
|
{
|
||||||
TuiWhichElement *item;
|
TuiWhichElement *item;
|
||||||
@ -373,7 +333,8 @@ tuiShowFrameInfo (struct frame_info *fi)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tuiUpdateLocatorDisplay (fi);
|
tuiSetLocatorContent (fi);
|
||||||
|
tuiShowLocatorContent ();
|
||||||
for (i = 0; i < (sourceWindows ())->count; i++)
|
for (i = 0; i < (sourceWindows ())->count; i++)
|
||||||
{
|
{
|
||||||
winInfo = (TuiWinInfoPtr) (sourceWindows ())->list[i];
|
winInfo = (TuiWinInfoPtr) (sourceWindows ())->list[i];
|
||||||
|
@ -30,13 +30,11 @@ extern void tuiSetLocatorInfo (char *, char *, int, CORE_ADDR,
|
|||||||
extern void tuiUpdateLocatorFilename (const char *);
|
extern void tuiUpdateLocatorFilename (const char *);
|
||||||
extern void tuiUpdateLocatorInfoFromFrame
|
extern void tuiUpdateLocatorInfoFromFrame
|
||||||
(struct frame_info *, TuiLocatorElementPtr);
|
(struct frame_info *, TuiLocatorElementPtr);
|
||||||
extern void tuiUpdateLocatorDisplay (struct frame_info *);
|
|
||||||
extern void tuiSetLocatorContent (struct frame_info *);
|
extern void tuiSetLocatorContent (struct frame_info *);
|
||||||
extern void tuiShowLocatorContent (void);
|
extern void tuiShowLocatorContent (void);
|
||||||
extern void tuiClearLocatorContent (void);
|
extern void tuiClearLocatorContent (void);
|
||||||
extern void tuiSwitchFilename (char *);
|
extern void tuiSwitchFilename (char *);
|
||||||
extern void tuiShowFrameInfo (struct frame_info *);
|
extern void tuiShowFrameInfo (struct frame_info *);
|
||||||
extern void tuiGetLocatorFilename (TuiGenWinInfoPtr, char **);
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user