SlickEdit Community
SlickEdit Product Discussion => SlickEdit® => Topic started by: Ruslan_Sirota on September 07, 2006, 06:56:27 AM
-
I have following code:
#define PACKED __packed
typedef PACKED struct _tag_AnyStruct
{
int i;
int j;
}AnyStruct, *PAnyStruct;
Now I am try find definition of AnyStruct and receive Message box "Tag 'AnyStruct' no found. You may want to rebuild tag file", however definition of 'PAnyStruct' is displayed without any problem.
And a second problem that the structure 'AnyStruct' is not expanding.
-
I don't know if this will solve the problem but in the tagging options dialog box, click the "C preprocessing" button and try adding __packed and PACKED as #defines.
Graeme
-
The adding __packed to "C preprocessing" not solved the problem. :(
-
If you haven't already, you could check this thread
http://community.slickedit.com/index.php?topic=382.0 (http://community.slickedit.com/index.php?topic=382.0)
Graeme
-
Hi
I don't found any suggestion of my questions in thread: http://community.slickedit.com/index.php?topic=382.0 (http://community.slickedit.com/index.php?topic=382.0).
But I just evaluate SlickEdit for bying. All my sources has typedefs as I describe above. In CodeWright I not have any problem with parsing this expression, maybe in commercial version + hot fixes this is bug fixed?
-
Adding just PACKED to the preprocessing list with empty expansion text allowed Slick V11.0.2 to find the AnyStruct typedef and adding both PACKED and __packed with PACKED expanding to __packed was still successful in the definition being found for me.
The expansion of AnyStruct also works i.e.
AnyStruct t1;
t1.
- with auto completion enabled, pressing the "dot" after t1 above results in the members of AnyStruct being shown in a list.
Can you post the code and describe exactly what you do that results in the error message "you may want to rebuild the tag file". Also, have you tried rebuilding the tag file or do you have "tag on save" enabled.
Graeme
-
I just checked what happens when __packed is in the preprocessing list but not PACKED and Slick then fails to find the definition - so... add PACKED if you haven't already.
Graeme
-
Graeme is absolutely right - as usual...
However - I just attach my (working) PACKED pre-processing config as screenshot.
1 picture could explain more than 1000 words.
HS2
-
Ok
Thank you very match now it's work.
I will be need add 'PACKED' & '__packed' to "C preprocessing".
-
I'm new to SlickEdit, and I'm having problems with tags. In particular, I can't jump to the definitions of many of the functions defined in files under the "/usr/include" directory, even though the files are listed when I look at the files supposedly being tagged. The functions I'm not finding, are not complex, nor do they involve use of macros. Here's one example:
void gtk_init (int *argc,
char ***argv);
I realize this isn't much information to go on, but I don't understand SlickEdit enough to even guess what information would be useful for others to help me diagnose this problem
Any help would be appreciated.
~jeff
-
If the prototypes are enclosed in sth. like #ifdef GTK ... #endif you've to add this #define to your file ext. setup -> Options -> Other -> C-Preprocessing to help Slick tagging the desired parts of the sources.
HS2