Re: [CEDET-devel] semantic-goto-definition does not jump in some conditions
Brought to you by:
zappo
From: yesan <xy...@gm...> - 2013-11-28 01:55:08
|
On Wed, 2013-11-27 at 22:26 +0100, David Engster wrote: > yesan writes: > > 3.2 edit another c file, type the following code > > > > #include <sys/types.h> > > #include <sys/socket.h> > > #include <netdb.h> > > > > struct addrinfo xx; > > > > current cursor on the word 'addrinfo', M-x, > > semantic-goto-definition,emacs shows me error info : Could not find > > suitable jump point for addrinfo. > > > > but addrinfo is defined in /usr/include/netdb.h indeed. > > The reason is that __USE_POSIX is not defined, so that definition for > 'addrinfo' is skipped. You can see this by loading netdb.h and doing > > M-x semantic-dump-parser-warnings > > Also, enabling semantic-decoration-mode will show which types are parsed > and which not. > > One can fix this by adding __USE_POSIX as a macro to the project > definition, but on second thought, it made sense to include the whole > features.h by default, since it contains many important macros. > > So please try the latest trunk, and don't forget to delete the cache > files in .emacs.d/semanticdb before upgrading. > > -David thanks a lot, everything is all right now. |