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
 Feature Requests
 Variable declarations with attributes
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

rockthesmurf
Starting Member

1 Posts

Posted - Sep 03 2004 :  11:46:31 AM  Show Profile
Hi,

I have already spoke to someone in the support team about this, but I'll put a request in here.

If I want to declare a variable and have it quad-word aligned:
int myVariable __attribute__((aligned(16)));

myVariable will _not_ be colour coded correctly - it just stays black. Clicking on a later instance of the variable, or hovering the cursor over later instances of it reveals no extra information.

The support person I had contact with said the reason for this is the parenthesis in the declaration. I have to use commands like this constantly through out my code and it would be extremely useful if they would act the same as any other declared variable.

Another example of a line that wouldn't work correctly is:
int *piMyPointer __attribute__((section(".vudata")));

I hope you are able to somehow include support for this in a future release, thank you,

Steven Craft

support
Whole Tomato Software

5566 Posts

Posted - Sep 03 2004 :  12:59:35 PM  Show Profile
With build 1246, we get correct coloring of myVariable in references, ie after the definition. We see myVariable colored as a method in the definition itself -- the parenthesis being the culprit of this problem.



We assume your references are black.

Does reopening the file make a difference?
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Sep 12 2004 :  11:41:33 PM  Show Profile
We can confuse VA X with some definitions that use __attribute__

case=283
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