Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX "inventing" symbols?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Nov 24 2003 :  1:21:27 PM  Show Profile
One of my structures is shown in the VA view as having the symbol named "L~~~1" defined for various places.
It shows up as "tagLUF.L~~~1" and "tagLUF.CONTENT.L~~~1".
I suppose that VA is substituting it with the #define TEXT from winnt.h. Although Unicode is not enabled for this project.
Double clicking on the symbol jumps to the line containing "enum CONTENT"

typedef struct tagLUF
{
	struct tagLUF() : operation(oNONE), component(cNONE), encoding(eNONE), content(TEXT), finalaction(aNONE)
	{
	}

	tstring	target;
	enum COMPONENT	{ cNONE, cLEON, cALL } component;
	enum ENCODING	{ eNONE, eBASE64, eCOMPRESSED } encoding;
	enum CONTENT	{ TEXT, TEXTLINE, TEXTWORD, BINARY } content;
	enum FINALACTION{ aNONE, aRELOAD, aRESTART } finalaction;
	enum OPERATION	{ oNONE, oADD, oUPDATE, oREMOVE, oPATCH } operation;
} LUF;

support
Whole Tomato Software

5566 Posts

Posted - Nov 24 2003 :  5:54:40 PM  Show Profile
The problem has been around forever, it's just visible now that we have a hovering class browser.

When VA X parses definitions, it's never sure whether to expand macros or leave them as is. The problem is compounded when VA X can expand in multiple ways. In your example, there are multiple #defines for TEXT in winnt.h.

VA X guesses often -- does it expand or not? It usually guesses correctly but in this case, it does not. You'd rather see "TEXT" than to what it expands.

We will see if we can make our parser smarter to handle your example, and similar ones, better.

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000