{"action":"created","issue":{"url":"https://api.github.com/repos/geany/geany/issues/923","repository_url":"https://api.github.com/repos/geany/geany","labels_url":"https://api.github.com/repos/geany/geany/issues/923/labels{/name}","comments_url":"https://api.github.com/repos/geany/geany/issues/923/comments","events_url":"https://api.github.com/repos/geany/geany/issues/923/events","html_url":"https://github.com/geany/geany/pull/923","id":137252953,"number":923,"title":"Don't show the goto popup for typedef synonyms","user":{"login":"techee","id":713965,"avatar_url":"https://avatars.githubusercontent.com/u/713965?v=3","gravatar_id":"","url":"https://api.github.com/users/techee","html_url":"https://github.com/techee","followers_url":"https://api.github.com/users/techee/followers","following_url":"https://api.github.com/users/techee/following{/other_user}","gists_url":"https://api.github.com/users/techee/gists{/gist_id}","starred_url":"https://api.github.com/users/techee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techee/subscriptions","organizations_url":"https://api.github.com/users/techee/orgs","repos_url":"https://api.github.com/users/techee/repos","events_url":"https://api.github.com/users/techee/events{/privacy}","received_events_url":"https://api.github.com/users/techee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-29T13:20:57Z","updated_at":"2016-02-29T13:23:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/geany/geany/pulls/923","html_url":"https://github.com/geany/geany/pull/923","diff_url":"https://github.com/geany/geany/pull/923.diff","patch_url":"https://github.com/geany/geany/pull/923.patch"},"body":"For instance when performing goto tag for Foo and Foo is defined as\r\n\r\ntypedef struct Foo {} Foo;\r\n\r\ngo immediately to the struct location without showing the goto popup with\r\nboth the struct name and typedef.\r\n\r\nNote the missing\r\n\r\ng_strcmp0(second->var_type, first->name) == 0\r\n\r\nin the check - in this particular case we won't get the type to which the\r\ntypedef refers inside var_type because at the time the typedef tag is\r\ngenerated in c.c the struct tag doesn't exist yet. On the other hand\r\nthere's no second->var_type == NULL either because this behaviour seems\r\nto be rather implementation-specific and might easily change in the\r\nfuture. The existing checks are probably sufficient for the real-world\r\ncode."},"comment":{"url":"https://api.github.com/repos/geany/geany/issues/comments/190210010","html_url":"https://github.com/geany/geany/pull/923#issuecomment-190210010","issue_url":"https://api.github.com/repos/geany/geany/issues/923","id":190210010,"user":{"login":"techee","id":713965,"avatar_url":"https://avatars.githubusercontent.com/u/713965?v=3","gravatar_id":"","url":"https://api.github.com/users/techee","html_url":"https://github.com/techee","followers_url":"https://api.github.com/users/techee/followers","following_url":"https://api.github.com/users/techee/following{/other_user}","gists_url":"https://api.github.com/users/techee/gists{/gist_id}","starred_url":"https://api.github.com/users/techee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techee/subscriptions","organizations_url":"https://api.github.com/users/techee/orgs","repos_url":"https://api.github.com/users/techee/repos","events_url":"https://api.github.com/users/techee/events{/privacy}","received_events_url":"https://api.github.com/users/techee/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T13:23:02Z","updated_at":"2016-02-29T13:23:02Z","body":"This is useful for most Geany structs like GeanyDocument which use the same name both for the struct and typedef so the jump happens immediately."}}