SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: johneegeek on January 16, 2007, 05:29:33 pm

Title: 'codehelp' for structures with attributes.
Post by: johneegeek on January 16, 2007, 05:29:33 pm
I've been a long time slickedit user, and one thing always has annoyed me.
Codehelp works great with structures UNLESS you do something like this:

Code: [Select]
#if defined(__GNUC__)
    #define PACKED_TYPE __attribute__((packed))
#else
    #define PACKED_TYPE
#endif

typedef struct {
    int whatever1;
    int whatever2;
} foo_t PACKED_TYPE;

Now codehelp does nothing with this structure.
(i.e. there is no struct completion on a ".")

Is there a way around this? :-\
Title: Re: 'codehelp' for structures with attributes.
Post by: hs2 on January 16, 2007, 07:55:59 pm
See this http://community.slickedit.com/index.php?topic=383.msg1469#msg1469 (http://community.slickedit.com/index.php?topic=383.msg1469#msg1469)
and this for some background information http://community.slickedit.com/index.php?topic=271.msg1539#msg1539 (http://community.slickedit.com/index.php?topic=271.msg1539#msg1539)

Hope it helps,

HS2
Title: Re: 'codehelp' for structures with attributes.
Post by: johneegeek on January 16, 2007, 08:08:41 pm
Excellent!  ;D thanks.
Sorry for asking the same question, I tried searching for the problem but didn't get right combination of search terms I guess.

Works great now, wish I would have look into this sooner.  ::)