Author Topic: Display push_tag stack?  (Read 4359 times)

Wanderer

  • Senior Community Member
  • Posts: 557
  • Hero Points: 23
Display push_tag stack?
« on: January 04, 2008, 01:37:24 PM »
Hello,

After drilling down through many functions using "Go to definition", it would be handy to see the 'call stack' at any any given point.

Has anyone tried to display the current push_tag stack?  Any pointers on functions to start looking at for a possible implementation?

TIA...

----------------------------------------
Later the same day....
Code: [Select]
_command showBookmarks()
{
   _str BookmarkName;
   _str DocumentName;
   _str Filename;
   _str LineData;
   _str msg;
   int BeginLineROffset = 0;
   int Col = 0;
   int RealLineNumber = 0;
   int buf_id = 0;
   int determineLineNumber = 0;
   int ii = _BookmarkQCount();
   int markid = 0;
   int vsbmflags = 0;


   for (jj = 0; jj < ii; ++jj) {
      ss = _BookmarkGetInfo(jj,BookmarkName,markid,vsbmflags, buf_id,
                            determineLineNumber, RealLineNumber, Col,
                            BeginLineROffset, LineData, Filename, DocumentName);
      npos = pos("Pushed Bookmark", BookmarkName);
      if (npos > 0) {
         msg = BookmarkName :+ ' ' :+ LineData :+ ' ' :+ Filename :+ ' ' :+ DocumentName;
         messageNwait(msg);
      }

   }
}
Sort of a proof of concept sort of a thing...

« Last Edit: January 04, 2008, 06:57:04 PM by Wanderer »