{"action":"opened","number":714,"pull_request":{"url":"https://api.github.com/repos/lxc/lxc/pulls/714","id":53071672,"html_url":"https://github.com/lxc/lxc/pull/714","diff_url":"https://github.com/lxc/lxc/pull/714.diff","patch_url":"https://github.com/lxc/lxc/pull/714.patch","issue_url":"https://api.github.com/repos/lxc/lxc/issues/714","number":714,"state":"open","locked":false,"title":"Refactoring conditional directives.","user":{"login":"wmarquesr","id":7017961,"avatar_url":"https://avatars.githubusercontent.com/u/7017961?v=3","gravatar_id":"","url":"https://api.github.com/users/wmarquesr","html_url":"https://github.com/wmarquesr","followers_url":"https://api.github.com/users/wmarquesr/followers","following_url":"https://api.github.com/users/wmarquesr/following{/other_user}","gists_url":"https://api.github.com/users/wmarquesr/gists{/gist_id}","starred_url":"https://api.github.com/users/wmarquesr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmarquesr/subscriptions","organizations_url":"https://api.github.com/users/wmarquesr/orgs","repos_url":"https://api.github.com/users/wmarquesr/repos","events_url":"https://api.github.com/users/wmarquesr/events{/privacy}","received_events_url":"https://api.github.com/users/wmarquesr/received_events","type":"User","site_admin":false},"body":"A suggestion to compile entire statements and expressions, as suggested by code style guidelines from the Linux Kernel and practitioners.\r\n\r\n* [Linux kernel coding style](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/CodingStyle#n892)\r\n* [Living in the #ifdef Hell](https://www.cqse.eu/en/blog/living-in-the-ifdef-hell/)\r\n\r\nIt might improve code understanding, maintainability and error-proneness.","created_at":"2015-12-09T03:14:39Z","updated_at":"2015-12-09T03:14:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lxc/lxc/pulls/714/commits","review_comments_url":"https://api.github.com/repos/lxc/lxc/pulls/714/comments","review_comment_url":"https://api.github.com/repos/lxc/lxc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lxc/lxc/issues/714/comments","statuses_url":"https://api.github.com/repos/lxc/lxc/statuses/657341632c59a246885bae6b825ae95c52108c31","head":{"label":"wmarquesr:master","ref":"master","sha":"657341632c59a246885bae6b825ae95c52108c31","user":{"login":"wmarquesr","id":7017961,"avatar_url":"https://avatars.githubusercontent.com/u/7017961?v=3","gravatar_id":"","url":"https://api.github.com/users/wmarquesr","html_url":"https://github.com/wmarquesr","followers_url":"https://api.github.com/users/wmarquesr/followers","following_url":"https://api.github.com/users/wmarquesr/following{/other_user}","gists_url":"https://api.github.com/users/wmarquesr/gists{/gist_id}","starred_url":"https://api.github.com/users/wmarquesr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmarquesr/subscriptions","organizations_url":"https://api.github.com/users/wmarquesr/orgs","repos_url":"https://api.github.com/users/wmarquesr/repos","events_url":"https://api.github.com/users/wmarquesr/events{/privacy}","received_events_url":"https://api.github.com/users/wmarquesr/received_events","type":"User","site_admin":false},"repo":{"id":47603524,"name":"lxc","full_name":"wmarquesr/lxc","owner":{"login":"wmarquesr","id":7017961,"avatar_url":"https://avatars.githubusercontent.com/u/7017961?v=3","gravatar_id":"","url":"https://api.github.com/users/wmarquesr","html_url":"https://github.com/wmarquesr","followers_url":"https://api.github.com/users/wmarquesr/followers","following_url":"https://api.github.com/users/wmarquesr/following{/other_user}","gists_url":"https://api.github.com/users/wmarquesr/gists{/gist_id}","starred_url":"https://api.github.com/users/wmarquesr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmarquesr/subscriptions","organizations_url":"https://api.github.com/users/wmarquesr/orgs","repos_url":"https://api.github.com/users/wmarquesr/repos","events_url":"https://api.github.com/users/wmarquesr/events{/privacy}","received_events_url":"https://api.github.com/users/wmarquesr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wmarquesr/lxc","description":"LXC - Linux Containers","fork":true,"url":"https://api.github.com/repos/wmarquesr/lxc","forks_url":"https://api.github.com/repos/wmarquesr/lxc/forks","keys_url":"https://api.github.com/repos/wmarquesr/lxc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wmarquesr/lxc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wmarquesr/lxc/teams","hooks_url":"https://api.github.com/repos/wmarquesr/lxc/hooks","issue_events_url":"https://api.github.com/repos/wmarquesr/lxc/issues/events{/number}","events_url":"https://api.github.com/repos/wmarquesr/lxc/events","assignees_url":"https://api.github.com/repos/wmarquesr/lxc/assignees{/user}","branches_url":"https://api.github.com/repos/wmarquesr/lxc/branches{/branch}","tags_url":"https://api.github.com/repos/wmarquesr/lxc/tags","blobs_url":"https://api.github.com/repos/wmarquesr/lxc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wmarquesr/lxc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wmarquesr/lxc/git/refs{/sha}","trees_url":"https://api.github.com/repos/wmarquesr/lxc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wmarquesr/lxc/statuses/{sha}","languages_url":"https://api.github.com/repos/wmarquesr/lxc/languages","stargazers_url":"https://api.github.com/repos/wmarquesr/lxc/stargazers","contributors_url":"https://api.github.com/repos/wmarquesr/lxc/contributors","subscribers_url":"https://api.github.com/repos/wmarquesr/lxc/subscribers","subscription_url":"https://api.github.com/repos/wmarquesr/lxc/subscription","commits_url":"https://api.github.com/repos/wmarquesr/lxc/commits{/sha}","git_commits_url":"https://api.github.com/repos/wmarquesr/lxc/git/commits{/sha}","comments_url":"https://api.github.com/repos/wmarquesr/lxc/comments{/number}","issue_comment_url":"https://api.github.com/repos/wmarquesr/lxc/issues/comments{/number}","contents_url":"https://api.github.com/repos/wmarquesr/lxc/contents/{+path}","compare_url":"https://api.github.com/repos/wmarquesr/lxc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wmarquesr/lxc/merges","archive_url":"https://api.github.com/repos/wmarquesr/lxc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wmarquesr/lxc/downloads","issues_url":"https://api.github.com/repos/wmarquesr/lxc/issues{/number}","pulls_url":"https://api.github.com/repos/wmarquesr/lxc/pulls{/number}","milestones_url":"https://api.github.com/repos/wmarquesr/lxc/milestones{/number}","notifications_url":"https://api.github.com/repos/wmarquesr/lxc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wmarquesr/lxc/labels{/name}","releases_url":"https://api.github.com/repos/wmarquesr/lxc/releases{/id}","created_at":"2015-12-08T06:34:44Z","updated_at":"2015-12-08T06:34:46Z","pushed_at":"2015-12-08T23:49:50Z","git_url":"git://github.com/wmarquesr/lxc.git","ssh_url":"git@github.com:wmarquesr/lxc.git","clone_url":"https://github.com/wmarquesr/lxc.git","svn_url":"https://github.com/wmarquesr/lxc","homepage":"https://linuxcontainers.org","size":13495,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lxc:master","ref":"master","sha":"23820d548dcd876bd4a8416f80a4d5d1253cd7dd","user":{"login":"lxc","id":2301756,"avatar_url":"https://avatars.githubusercontent.com/u/2301756?v=3","gravatar_id":"","url":"https://api.github.com/users/lxc","html_url":"https://github.com/lxc","followers_url":"https://api.github.com/users/lxc/followers","following_url":"https://api.github.com/users/lxc/following{/other_user}","gists_url":"https://api.github.com/users/lxc/gists{/gist_id}","starred_url":"https://api.github.com/users/lxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxc/subscriptions","organizations_url":"https://api.github.com/users/lxc/orgs","repos_url":"https://api.github.com/users/lxc/repos","events_url":"https://api.github.com/users/lxc/events{/privacy}","received_events_url":"https://api.github.com/users/lxc/received_events","type":"Organization","site_admin":false},"repo":{"id":5720995,"name":"lxc","full_name":"lxc/lxc","owner":{"login":"lxc","id":2301756,"avatar_url":"https://avatars.githubusercontent.com/u/2301756?v=3","gravatar_id":"","url":"https://api.github.com/users/lxc","html_url":"https://github.com/lxc","followers_url":"https://api.github.com/users/lxc/followers","following_url":"https://api.github.com/users/lxc/following{/other_user}","gists_url":"https://api.github.com/users/lxc/gists{/gist_id}","starred_url":"https://api.github.com/users/lxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxc/subscriptions","organizations_url":"https://api.github.com/users/lxc/orgs","repos_url":"https://api.github.com/users/lxc/repos","events_url":"https://api.github.com/users/lxc/events{/privacy}","received_events_url":"https://api.github.com/users/lxc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lxc/lxc","description":"LXC - Linux Containers","fork":false,"url":"https://api.github.com/repos/lxc/lxc","forks_url":"https://api.github.com/repos/lxc/lxc/forks","keys_url":"https://api.github.com/repos/lxc/lxc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lxc/lxc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lxc/lxc/teams","hooks_url":"https://api.github.com/repos/lxc/lxc/hooks","issue_events_url":"https://api.github.com/repos/lxc/lxc/issues/events{/number}","events_url":"https://api.github.com/repos/lxc/lxc/events","assignees_url":"https://api.github.com/repos/lxc/lxc/assignees{/user}","branches_url":"https://api.github.com/repos/lxc/lxc/branches{/branch}","tags_url":"https://api.github.com/repos/lxc/lxc/tags","blobs_url":"https://api.github.com/repos/lxc/lxc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lxc/lxc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lxc/lxc/git/refs{/sha}","trees_url":"https://api.github.com/repos/lxc/lxc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lxc/lxc/statuses/{sha}","languages_url":"https://api.github.com/repos/lxc/lxc/languages","stargazers_url":"https://api.github.com/repos/lxc/lxc/stargazers","contributors_url":"https://api.github.com/repos/lxc/lxc/contributors","subscribers_url":"https://api.github.com/repos/lxc/lxc/subscribers","subscription_url":"https://api.github.com/repos/lxc/lxc/subscription","commits_url":"https://api.github.com/repos/lxc/lxc/commits{/sha}","git_commits_url":"https://api.github.com/repos/lxc/lxc/git/commits{/sha}","comments_url":"https://api.github.com/repos/lxc/lxc/comments{/number}","issue_comment_url":"https://api.github.com/repos/lxc/lxc/issues/comments{/number}","contents_url":"https://api.github.com/repos/lxc/lxc/contents/{+path}","compare_url":"https://api.github.com/repos/lxc/lxc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lxc/lxc/merges","archive_url":"https://api.github.com/repos/lxc/lxc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lxc/lxc/downloads","issues_url":"https://api.github.com/repos/lxc/lxc/issues{/number}","pulls_url":"https://api.github.com/repos/lxc/lxc/pulls{/number}","milestones_url":"https://api.github.com/repos/lxc/lxc/milestones{/number}","notifications_url":"https://api.github.com/repos/lxc/lxc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lxc/lxc/labels{/name}","releases_url":"https://api.github.com/repos/lxc/lxc/releases{/id}","created_at":"2012-09-07T18:50:27Z","updated_at":"2015-12-08T07:11:08Z","pushed_at":"2015-12-07T16:14:52Z","git_url":"git://github.com/lxc/lxc.git","ssh_url":"git@github.com:lxc/lxc.git","clone_url":"https://github.com/lxc/lxc.git","svn_url":"https://github.com/lxc/lxc","homepage":"https://linuxcontainers.org","size":14345,"stargazers_count":1294,"watchers_count":1294,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":421,"mirror_url":null,"open_issues_count":192,"forks":421,"open_issues":192,"watchers":1294,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lxc/lxc/pulls/714"},"html":{"href":"https://github.com/lxc/lxc/pull/714"},"issue":{"href":"https://api.github.com/repos/lxc/lxc/issues/714"},"comments":{"href":"https://api.github.com/repos/lxc/lxc/issues/714/comments"},"review_comments":{"href":"https://api.github.com/repos/lxc/lxc/pulls/714/comments"},"review_comment":{"href":"https://api.github.com/repos/lxc/lxc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lxc/lxc/pulls/714/commits"},"statuses":{"href":"https://api.github.com/repos/lxc/lxc/statuses/657341632c59a246885bae6b825ae95c52108c31"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":1}}