SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: china_sundasheng on September 16, 2012, 12:51:44 AM

Title: SE seems ignore struct member if it's name is keyword of language
Post by: china_sundasheng on September 16, 2012, 12:51:44 AM
For example in postgresql, there is a struct like:
Code: [Select]
typedef struct _dumpableObject
{
  char         *name;
  NamespaceInfo *namespace;
  bool dump;
} DumpableObject;
Then if define "DumpableObject *dobj", se don't parse "dobj->namespace".

Version 17.0.2, hotfix_se1702_5_cumulative
Title: Re: SE seems ignore struct member if it's name is keyword of language
Post by: Graeme on September 16, 2012, 05:29:14 AM
It's not valid C++ code but it is valid C.  Maybe you could submit a patch to postgresql as suggested here
http://archives.postgresql.org/pgsql-hackers/2008-12/msg00309.php (http://archives.postgresql.org/pgsql-hackers/2008-12/msg00309.php)

http://archives.postgresql.org/pgsql-hackers/2010-12/msg02115.php (http://archives.postgresql.org/pgsql-hackers/2010-12/msg02115.php)

Or maybe you could try and tag the postgresql headers as Ansi C instead of C/C++.
Title: Re: SE seems ignore struct member if it's name is keyword of language
Post by: china_sundasheng on September 16, 2012, 09:26:36 AM
Yes, it works on ANSI-C.
Thanks a lot.