{"action":"closed","number":37,"pull_request":{"url":"https://api.github.com/repos/kai-language/kai-c/pulls/37","id":196311762,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2MzExNzYy","html_url":"https://github.com/kai-language/kai-c/pull/37","diff_url":"https://github.com/kai-language/kai-c/pull/37.diff","patch_url":"https://github.com/kai-language/kai-c/pull/37.patch","issue_url":"https://api.github.com/repos/kai-language/kai-c/issues/37","number":37,"state":"closed","locked":false,"title":"Use anonymous enums to make stored enumerations a u8","user":{"login":"vdka","id":7651280,"node_id":"MDQ6VXNlcjc2NTEyODA=","avatar_url":"https://avatars2.githubusercontent.com/u/7651280?v=4","gravatar_id":"","url":"https://api.github.com/users/vdka","html_url":"https://github.com/vdka","followers_url":"https://api.github.com/users/vdka/followers","following_url":"https://api.github.com/users/vdka/following{/other_user}","gists_url":"https://api.github.com/users/vdka/gists{/gist_id}","starred_url":"https://api.github.com/users/vdka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdka/subscriptions","organizations_url":"https://api.github.com/users/vdka/orgs","repos_url":"https://api.github.com/users/vdka/repos","events_url":"https://api.github.com/users/vdka/events{/privacy}","received_events_url":"https://api.github.com/users/vdka/received_events","type":"User","site_admin":false},"body":"Use the following pattern when an `enum` may be stored in memory.\r\n```c\r\ntypedef u8 TokenKind;\r\nenum {\r\n    // ...\r\n    NUM_TOKEN_KINDS,\r\n};\r\n\r\nSTATIC_ASSERT(NUM_TOKEN_KINDS <= UINT8_MAX, \"enum values overflow storage type\");\r\n```","created_at":"2018-06-21T01:13:30Z","updated_at":"2018-06-21T12:58:36Z","closed_at":"2018-06-21T12:58:36Z","merged_at":"2018-06-21T12:58:36Z","merge_commit_sha":"979134706514a2cd8f271067acd44a3397337661","assignee":null,"assignees":[],"requested_reviewers":[{"login":"BrettRToomey","id":1977704,"node_id":"MDQ6VXNlcjE5Nzc3MDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1977704?v=4","gravatar_id":"","url":"https://api.github.com/users/BrettRToomey","html_url":"https://github.com/BrettRToomey","followers_url":"https://api.github.com/users/BrettRToomey/followers","following_url":"https://api.github.com/users/BrettRToomey/following{/other_user}","gists_url":"https://api.github.com/users/BrettRToomey/gists{/gist_id}","starred_url":"https://api.github.com/users/BrettRToomey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrettRToomey/subscriptions","organizations_url":"https://api.github.com/users/BrettRToomey/orgs","repos_url":"https://api.github.com/users/BrettRToomey/repos","events_url":"https://api.github.com/users/BrettRToomey/events{/privacy}","received_events_url":"https://api.github.com/users/BrettRToomey/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kai-language/kai-c/pulls/37/commits","review_comments_url":"https://api.github.com/repos/kai-language/kai-c/pulls/37/comments","review_comment_url":"https://api.github.com/repos/kai-language/kai-c/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kai-language/kai-c/issues/37/comments","statuses_url":"https://api.github.com/repos/kai-language/kai-c/statuses/272d322a5ad07f79dcef5ab298a9e36f175703e2","head":{"label":"kai-language:compact_enums","ref":"compact_enums","sha":"272d322a5ad07f79dcef5ab298a9e36f175703e2","user":{"login":"kai-language","id":22344529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzQ0NTI5","avatar_url":"https://avatars2.githubusercontent.com/u/22344529?v=4","gravatar_id":"","url":"https://api.github.com/users/kai-language","html_url":"https://github.com/kai-language","followers_url":"https://api.github.com/users/kai-language/followers","following_url":"https://api.github.com/users/kai-language/following{/other_user}","gists_url":"https://api.github.com/users/kai-language/gists{/gist_id}","starred_url":"https://api.github.com/users/kai-language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kai-language/subscriptions","organizations_url":"https://api.github.com/users/kai-language/orgs","repos_url":"https://api.github.com/users/kai-language/repos","events_url":"https://api.github.com/users/kai-language/events{/privacy}","received_events_url":"https://api.github.com/users/kai-language/received_events","type":"Organization","site_admin":false},"repo":{"id":132030545,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwMzA1NDU=","name":"kai-c","full_name":"kai-language/kai-c","owner":{"login":"kai-language","id":22344529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzQ0NTI5","avatar_url":"https://avatars2.githubusercontent.com/u/22344529?v=4","gravatar_id":"","url":"https://api.github.com/users/kai-language","html_url":"https://github.com/kai-language","followers_url":"https://api.github.com/users/kai-language/followers","following_url":"https://api.github.com/users/kai-language/following{/other_user}","gists_url":"https://api.github.com/users/kai-language/gists{/gist_id}","starred_url":"https://api.github.com/users/kai-language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kai-language/subscriptions","organizations_url":"https://api.github.com/users/kai-language/orgs","repos_url":"https://api.github.com/users/kai-language/repos","events_url":"https://api.github.com/users/kai-language/events{/privacy}","received_events_url":"https://api.github.com/users/kai-language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kai-language/kai-c","description":"The Kai programming language","fork":false,"url":"https://api.github.com/repos/kai-language/kai-c","forks_url":"https://api.github.com/repos/kai-language/kai-c/forks","keys_url":"https://api.github.com/repos/kai-language/kai-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kai-language/kai-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kai-language/kai-c/teams","hooks_url":"https://api.github.com/repos/kai-language/kai-c/hooks","issue_events_url":"https://api.github.com/repos/kai-language/kai-c/issues/events{/number}","events_url":"https://api.github.com/repos/kai-language/kai-c/events","assignees_url":"https://api.github.com/repos/kai-language/kai-c/assignees{/user}","branches_url":"https://api.github.com/repos/kai-language/kai-c/branches{/branch}","tags_url":"https://api.github.com/repos/kai-language/kai-c/tags","blobs_url":"https://api.github.com/repos/kai-language/kai-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kai-language/kai-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kai-language/kai-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/kai-language/kai-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kai-language/kai-c/statuses/{sha}","languages_url":"https://api.github.com/repos/kai-language/kai-c/languages","stargazers_url":"https://api.github.com/repos/kai-language/kai-c/stargazers","contributors_url":"https://api.github.com/repos/kai-language/kai-c/contributors","subscribers_url":"https://api.github.com/repos/kai-language/kai-c/subscribers","subscription_url":"https://api.github.com/repos/kai-language/kai-c/subscription","commits_url":"https://api.github.com/repos/kai-language/kai-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/kai-language/kai-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/kai-language/kai-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/kai-language/kai-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/kai-language/kai-c/contents/{+path}","compare_url":"https://api.github.com/repos/kai-language/kai-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kai-language/kai-c/merges","archive_url":"https://api.github.com/repos/kai-language/kai-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kai-language/kai-c/downloads","issues_url":"https://api.github.com/repos/kai-language/kai-c/issues{/number}","pulls_url":"https://api.github.com/repos/kai-language/kai-c/pulls{/number}","milestones_url":"https://api.github.com/repos/kai-language/kai-c/milestones{/number}","notifications_url":"https://api.github.com/repos/kai-language/kai-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kai-language/kai-c/labels{/name}","releases_url":"https://api.github.com/repos/kai-language/kai-c/releases{/id}","deployments_url":"https://api.github.com/repos/kai-language/kai-c/deployments","created_at":"2018-05-03T17:49:09Z","updated_at":"2018-06-21T12:53:36Z","pushed_at":"2018-06-21T12:58:36Z","git_url":"git://github.com/kai-language/kai-c.git","ssh_url":"git@github.com:kai-language/kai-c.git","clone_url":"https://github.com/kai-language/kai-c.git","svn_url":"https://github.com/kai-language/kai-c","homepage":"","size":563,"stargazers_count":13,"watchers_count":13,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":13,"default_branch":"master"}},"base":{"label":"kai-language:master","ref":"master","sha":"1ba04d604fd407acaf711b73436175e1fca2f184","user":{"login":"kai-language","id":22344529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzQ0NTI5","avatar_url":"https://avatars2.githubusercontent.com/u/22344529?v=4","gravatar_id":"","url":"https://api.github.com/users/kai-language","html_url":"https://github.com/kai-language","followers_url":"https://api.github.com/users/kai-language/followers","following_url":"https://api.github.com/users/kai-language/following{/other_user}","gists_url":"https://api.github.com/users/kai-language/gists{/gist_id}","starred_url":"https://api.github.com/users/kai-language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kai-language/subscriptions","organizations_url":"https://api.github.com/users/kai-language/orgs","repos_url":"https://api.github.com/users/kai-language/repos","events_url":"https://api.github.com/users/kai-language/events{/privacy}","received_events_url":"https://api.github.com/users/kai-language/received_events","type":"Organization","site_admin":false},"repo":{"id":132030545,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwMzA1NDU=","name":"kai-c","full_name":"kai-language/kai-c","owner":{"login":"kai-language","id":22344529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzQ0NTI5","avatar_url":"https://avatars2.githubusercontent.com/u/22344529?v=4","gravatar_id":"","url":"https://api.github.com/users/kai-language","html_url":"https://github.com/kai-language","followers_url":"https://api.github.com/users/kai-language/followers","following_url":"https://api.github.com/users/kai-language/following{/other_user}","gists_url":"https://api.github.com/users/kai-language/gists{/gist_id}","starred_url":"https://api.github.com/users/kai-language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kai-language/subscriptions","organizations_url":"https://api.github.com/users/kai-language/orgs","repos_url":"https://api.github.com/users/kai-language/repos","events_url":"https://api.github.com/users/kai-language/events{/privacy}","received_events_url":"https://api.github.com/users/kai-language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kai-language/kai-c","description":"The Kai programming language","fork":false,"url":"https://api.github.com/repos/kai-language/kai-c","forks_url":"https://api.github.com/repos/kai-language/kai-c/forks","keys_url":"https://api.github.com/repos/kai-language/kai-c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kai-language/kai-c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kai-language/kai-c/teams","hooks_url":"https://api.github.com/repos/kai-language/kai-c/hooks","issue_events_url":"https://api.github.com/repos/kai-language/kai-c/issues/events{/number}","events_url":"https://api.github.com/repos/kai-language/kai-c/events","assignees_url":"https://api.github.com/repos/kai-language/kai-c/assignees{/user}","branches_url":"https://api.github.com/repos/kai-language/kai-c/branches{/branch}","tags_url":"https://api.github.com/repos/kai-language/kai-c/tags","blobs_url":"https://api.github.com/repos/kai-language/kai-c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kai-language/kai-c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kai-language/kai-c/git/refs{/sha}","trees_url":"https://api.github.com/repos/kai-language/kai-c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kai-language/kai-c/statuses/{sha}","languages_url":"https://api.github.com/repos/kai-language/kai-c/languages","stargazers_url":"https://api.github.com/repos/kai-language/kai-c/stargazers","contributors_url":"https://api.github.com/repos/kai-language/kai-c/contributors","subscribers_url":"https://api.github.com/repos/kai-language/kai-c/subscribers","subscription_url":"https://api.github.com/repos/kai-language/kai-c/subscription","commits_url":"https://api.github.com/repos/kai-language/kai-c/commits{/sha}","git_commits_url":"https://api.github.com/repos/kai-language/kai-c/git/commits{/sha}","comments_url":"https://api.github.com/repos/kai-language/kai-c/comments{/number}","issue_comment_url":"https://api.github.com/repos/kai-language/kai-c/issues/comments{/number}","contents_url":"https://api.github.com/repos/kai-language/kai-c/contents/{+path}","compare_url":"https://api.github.com/repos/kai-language/kai-c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kai-language/kai-c/merges","archive_url":"https://api.github.com/repos/kai-language/kai-c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kai-language/kai-c/downloads","issues_url":"https://api.github.com/repos/kai-language/kai-c/issues{/number}","pulls_url":"https://api.github.com/repos/kai-language/kai-c/pulls{/number}","milestones_url":"https://api.github.com/repos/kai-language/kai-c/milestones{/number}","notifications_url":"https://api.github.com/repos/kai-language/kai-c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kai-language/kai-c/labels{/name}","releases_url":"https://api.github.com/repos/kai-language/kai-c/releases{/id}","deployments_url":"https://api.github.com/repos/kai-language/kai-c/deployments","created_at":"2018-05-03T17:49:09Z","updated_at":"2018-06-21T12:53:36Z","pushed_at":"2018-06-21T12:58:36Z","git_url":"git://github.com/kai-language/kai-c.git","ssh_url":"git@github.com:kai-language/kai-c.git","clone_url":"https://github.com/kai-language/kai-c.git","svn_url":"https://github.com/kai-language/kai-c","homepage":"","size":563,"stargazers_count":13,"watchers_count":13,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kai-language/kai-c/pulls/37"},"html":{"href":"https://github.com/kai-language/kai-c/pull/37"},"issue":{"href":"https://api.github.com/repos/kai-language/kai-c/issues/37"},"comments":{"href":"https://api.github.com/repos/kai-language/kai-c/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/kai-language/kai-c/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/kai-language/kai-c/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kai-language/kai-c/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/kai-language/kai-c/statuses/272d322a5ad07f79dcef5ab298a9e36f175703e2"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"vdka","id":7651280,"node_id":"MDQ6VXNlcjc2NTEyODA=","avatar_url":"https://avatars2.githubusercontent.com/u/7651280?v=4","gravatar_id":"","url":"https://api.github.com/users/vdka","html_url":"https://github.com/vdka","followers_url":"https://api.github.com/users/vdka/followers","following_url":"https://api.github.com/users/vdka/following{/other_user}","gists_url":"https://api.github.com/users/vdka/gists{/gist_id}","starred_url":"https://api.github.com/users/vdka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdka/subscriptions","organizations_url":"https://api.github.com/users/vdka/orgs","repos_url":"https://api.github.com/users/vdka/repos","events_url":"https://api.github.com/users/vdka/events{/privacy}","received_events_url":"https://api.github.com/users/vdka/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":57,"deletions":39,"changed_files":7}}
{"actor":{"display_login":"vdka"}}