Author Topic: 'codehelp' for structures with attributes.  (Read 4846 times)

johneegeek

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
'codehelp' for structures with attributes.
« 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? :-\

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: 'codehelp' for structures with attributes.
« Reply #1 on: January 16, 2007, 07:55:59 PM »

johneegeek

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: 'codehelp' for structures with attributes.
« Reply #2 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.  ::)