{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/WinObjC/pulls/comments/80341299","id":80341299,"diff_hunk":"@@ -0,0 +1,589 @@\n+//******************************************************************************\n+//\n+// Copyright (c) Microsoft. All rights reserved.\n+//\n+// This code is licensed under the MIT License (MIT).\n+//\n+// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+// THE SOFTWARE.\n+//\n+//******************************************************************************\n+\n+#import <Starboard.h>\n+#import <StubReturn.h>\n+#import <Foundation/NSDecimal.h>\n+\n+#define IS_NEGATIVE(decimal) (decimal)->_isNegative\n+\n+#define IS_POSITIVE(decimal) !IS_NEGATIVE(decimal)\n+\n+#define IS_ZERO(decimal) (((decimal)->_length == 0) && IS_POSITIVE(decimal))\n+\n+#define INVALIDATE_DECIMAL(decimal) \\\n+    \\","path":"Frameworks/Foundation/NSDecimal.mm","position":28,"original_position":28,"commit_id":"362c049edbd4306aca6e17eba954ca9993d0aff2","original_commit_id":"362c049edbd4306aca6e17eba954ca9993d0aff2","user":{"login":"msft-Jeyaram","id":18413092,"avatar_url":"https://avatars.githubusercontent.com/u/18413092?v=3","gravatar_id":"","url":"https://api.github.com/users/msft-Jeyaram","html_url":"https://github.com/msft-Jeyaram","followers_url":"https://api.github.com/users/msft-Jeyaram/followers","following_url":"https://api.github.com/users/msft-Jeyaram/following{/other_user}","gists_url":"https://api.github.com/users/msft-Jeyaram/gists{/gist_id}","starred_url":"https://api.github.com/users/msft-Jeyaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msft-Jeyaram/subscriptions","organizations_url":"https://api.github.com/users/msft-Jeyaram/orgs","repos_url":"https://api.github.com/users/msft-Jeyaram/repos","events_url":"https://api.github.com/users/msft-Jeyaram/events{/privacy}","received_events_url":"https://api.github.com/users/msft-Jeyaram/received_events","type":"User","site_admin":false},"body":"It's automatically adding it for some reason.\r\n\r\n---\r\nIn reply to: [80341159](https://github.com/Microsoft/WinObjC/pull/1032#discussion_r80341159) [](ancestors = 80341159)","created_at":"2016-09-23T23:01:46Z","updated_at":"2016-09-23T23:01:46Z","html_url":"https://github.com/Microsoft/WinObjC/pull/1032#discussion_r80341299","pull_request_url":"https://api.github.com/repos/Microsoft/WinObjC/pulls/1032","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/WinObjC/pulls/comments/80341299"},"html":{"href":"https://github.com/Microsoft/WinObjC/pull/1032#discussion_r80341299"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/WinObjC/pulls/1032"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/WinObjC/pulls/1032","id":86593643,"html_url":"https://github.com/Microsoft/WinObjC/pull/1032","diff_url":"https://github.com/Microsoft/WinObjC/pull/1032.diff","patch_url":"https://github.com/Microsoft/WinObjC/pull/1032.patch","issue_url":"https://api.github.com/repos/Microsoft/WinObjC/issues/1032","number":1032,"state":"open","locked":false,"title":"Implementation of NSDecimalNumber and NSDecimal functionality:","user":{"login":"msft-Jeyaram","id":18413092,"avatar_url":"https://avatars.githubusercontent.com/u/18413092?v=3","gravatar_id":"","url":"https://api.github.com/users/msft-Jeyaram","html_url":"https://github.com/msft-Jeyaram","followers_url":"https://api.github.com/users/msft-Jeyaram/followers","following_url":"https://api.github.com/users/msft-Jeyaram/following{/other_user}","gists_url":"https://api.github.com/users/msft-Jeyaram/gists{/gist_id}","starred_url":"https://api.github.com/users/msft-Jeyaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msft-Jeyaram/subscriptions","organizations_url":"https://api.github.com/users/msft-Jeyaram/orgs","repos_url":"https://api.github.com/users/msft-Jeyaram/repos","events_url":"https://api.github.com/users/msft-Jeyaram/events{/privacy}","received_events_url":"https://api.github.com/users/msft-Jeyaram/received_events","type":"User","site_admin":false},"body":"Implementation of NSDecimalNumber and NSDecimal functionality:\r\n- Compact\r\n- Normalize\r\n- Addition\r\n- Subtraction\r\n- Helper functions for:\r\n\t- Division, Multiplication","created_at":"2016-09-23T22:55:17Z","updated_at":"2016-09-23T23:01:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e782c638c9c0d59eead2020c6ccd5874d07b7d94","assignee":{"login":"DHowett-MSFT","id":14316954,"avatar_url":"https://avatars.githubusercontent.com/u/14316954?v=3","gravatar_id":"","url":"https://api.github.com/users/DHowett-MSFT","html_url":"https://github.com/DHowett-MSFT","followers_url":"https://api.github.com/users/DHowett-MSFT/followers","following_url":"https://api.github.com/users/DHowett-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/DHowett-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/DHowett-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DHowett-MSFT/subscriptions","organizations_url":"https://api.github.com/users/DHowett-MSFT/orgs","repos_url":"https://api.github.com/users/DHowett-MSFT/repos","events_url":"https://api.github.com/users/DHowett-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/DHowett-MSFT/received_events","type":"User","site_admin":false},"assignees":[{"login":"DHowett-MSFT","id":14316954,"avatar_url":"https://avatars.githubusercontent.com/u/14316954?v=3","gravatar_id":"","url":"https://api.github.com/users/DHowett-MSFT","html_url":"https://github.com/DHowett-MSFT","followers_url":"https://api.github.com/users/DHowett-MSFT/followers","following_url":"https://api.github.com/users/DHowett-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/DHowett-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/DHowett-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DHowett-MSFT/subscriptions","organizations_url":"https://api.github.com/users/DHowett-MSFT/orgs","repos_url":"https://api.github.com/users/DHowett-MSFT/repos","events_url":"https://api.github.com/users/DHowett-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/DHowett-MSFT/received_events","type":"User","site_admin":false},{"login":"rajsesh-msft","id":15148713,"avatar_url":"https://avatars.githubusercontent.com/u/15148713?v=3","gravatar_id":"","url":"https://api.github.com/users/rajsesh-msft","html_url":"https://github.com/rajsesh-msft","followers_url":"https://api.github.com/users/rajsesh-msft/followers","following_url":"https://api.github.com/users/rajsesh-msft/following{/other_user}","gists_url":"https://api.github.com/users/rajsesh-msft/gists{/gist_id}","starred_url":"https://api.github.com/users/rajsesh-msft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajsesh-msft/subscriptions","organizations_url":"https://api.github.com/users/rajsesh-msft/orgs","repos_url":"https://api.github.com/users/rajsesh-msft/repos","events_url":"https://api.github.com/users/rajsesh-msft/events{/privacy}","received_events_url":"https://api.github.com/users/rajsesh-msft/received_events","type":"User","site_admin":false},{"login":"ms-jihua","id":16024095,"avatar_url":"https://avatars.githubusercontent.com/u/16024095?v=3","gravatar_id":"","url":"https://api.github.com/users/ms-jihua","html_url":"https://github.com/ms-jihua","followers_url":"https://api.github.com/users/ms-jihua/followers","following_url":"https://api.github.com/users/ms-jihua/following{/other_user}","gists_url":"https://api.github.com/users/ms-jihua/gists{/gist_id}","starred_url":"https://api.github.com/users/ms-jihua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ms-jihua/subscriptions","organizations_url":"https://api.github.com/users/ms-jihua/orgs","repos_url":"https://api.github.com/users/ms-jihua/repos","events_url":"https://api.github.com/users/ms-jihua/events{/privacy}","received_events_url":"https://api.github.com/users/ms-jihua/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/WinObjC/pulls/1032/commits","review_comments_url":"https://api.github.com/repos/Microsoft/WinObjC/pulls/1032/comments","review_comment_url":"https://api.github.com/repos/Microsoft/WinObjC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/WinObjC/issues/1032/comments","statuses_url":"https://api.github.com/repos/Microsoft/WinObjC/statuses/362c049edbd4306aca6e17eba954ca9993d0aff2","head":{"label":"msft-Jeyaram:NSDecimal_Imp_","ref":"NSDecimal_Imp_","sha":"362c049edbd4306aca6e17eba954ca9993d0aff2","user":{"login":"msft-Jeyaram","id":18413092,"avatar_url":"https://avatars.githubusercontent.com/u/18413092?v=3","gravatar_id":"","url":"https://api.github.com/users/msft-Jeyaram","html_url":"https://github.com/msft-Jeyaram","followers_url":"https://api.github.com/users/msft-Jeyaram/followers","following_url":"https://api.github.com/users/msft-Jeyaram/following{/other_user}","gists_url":"https://api.github.com/users/msft-Jeyaram/gists{/gist_id}","starred_url":"https://api.github.com/users/msft-Jeyaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msft-Jeyaram/subscriptions","organizations_url":"https://api.github.com/users/msft-Jeyaram/orgs","repos_url":"https://api.github.com/users/msft-Jeyaram/repos","events_url":"https://api.github.com/users/msft-Jeyaram/events{/privacy}","received_events_url":"https://api.github.com/users/msft-Jeyaram/received_events","type":"User","site_admin":false},"repo":{"id":62348752,"name":"WinObjC","full_name":"msft-Jeyaram/WinObjC","owner":{"login":"msft-Jeyaram","id":18413092,"avatar_url":"https://avatars.githubusercontent.com/u/18413092?v=3","gravatar_id":"","url":"https://api.github.com/users/msft-Jeyaram","html_url":"https://github.com/msft-Jeyaram","followers_url":"https://api.github.com/users/msft-Jeyaram/followers","following_url":"https://api.github.com/users/msft-Jeyaram/following{/other_user}","gists_url":"https://api.github.com/users/msft-Jeyaram/gists{/gist_id}","starred_url":"https://api.github.com/users/msft-Jeyaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msft-Jeyaram/subscriptions","organizations_url":"https://api.github.com/users/msft-Jeyaram/orgs","repos_url":"https://api.github.com/users/msft-Jeyaram/repos","events_url":"https://api.github.com/users/msft-Jeyaram/events{/privacy}","received_events_url":"https://api.github.com/users/msft-Jeyaram/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msft-Jeyaram/WinObjC","description":"Objective-C for Windows","fork":true,"url":"https://api.github.com/repos/msft-Jeyaram/WinObjC","forks_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/forks","keys_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/teams","hooks_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/hooks","issue_events_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/issues/events{/number}","events_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/events","assignees_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/assignees{/user}","branches_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/branches{/branch}","tags_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/tags","blobs_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/git/refs{/sha}","trees_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/statuses/{sha}","languages_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/languages","stargazers_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/stargazers","contributors_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/contributors","subscribers_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/subscribers","subscription_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/subscription","commits_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/commits{/sha}","git_commits_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/git/commits{/sha}","comments_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/comments{/number}","issue_comment_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/issues/comments{/number}","contents_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/contents/{+path}","compare_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/merges","archive_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/downloads","issues_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/issues{/number}","pulls_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/pulls{/number}","milestones_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/milestones{/number}","notifications_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/labels{/name}","releases_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/releases{/id}","deployments_url":"https://api.github.com/repos/msft-Jeyaram/WinObjC/deployments","created_at":"2016-06-30T23:38:58Z","updated_at":"2016-06-30T23:39:12Z","pushed_at":"2016-09-23T22:54:51Z","git_url":"git://github.com/msft-Jeyaram/WinObjC.git","ssh_url":"git@github.com:msft-Jeyaram/WinObjC.git","clone_url":"https://github.com/msft-Jeyaram/WinObjC.git","svn_url":"https://github.com/msft-Jeyaram/WinObjC","homepage":"","size":331311,"stargazers_count":0,"watchers_count":0,"language":"Objective-C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Microsoft:develop","ref":"develop","sha":"90200b997fc131ce7450b39b2bd2cd3e512797e0","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":37950166,"name":"WinObjC","full_name":"Microsoft/WinObjC","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/WinObjC","description":"Objective-C for Windows","fork":false,"url":"https://api.github.com/repos/Microsoft/WinObjC","forks_url":"https://api.github.com/repos/Microsoft/WinObjC/forks","keys_url":"https://api.github.com/repos/Microsoft/WinObjC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/WinObjC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/WinObjC/teams","hooks_url":"https://api.github.com/repos/Microsoft/WinObjC/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/WinObjC/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/WinObjC/events","assignees_url":"https://api.github.com/repos/Microsoft/WinObjC/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/WinObjC/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/WinObjC/tags","blobs_url":"https://api.github.com/repos/Microsoft/WinObjC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/WinObjC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/WinObjC/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/WinObjC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/WinObjC/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/WinObjC/languages","stargazers_url":"https://api.github.com/repos/Microsoft/WinObjC/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/WinObjC/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/WinObjC/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/WinObjC/subscription","commits_url":"https://api.github.com/repos/Microsoft/WinObjC/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/WinObjC/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/WinObjC/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/WinObjC/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/WinObjC/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/WinObjC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/WinObjC/merges","archive_url":"https://api.github.com/repos/Microsoft/WinObjC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/WinObjC/downloads","issues_url":"https://api.github.com/repos/Microsoft/WinObjC/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/WinObjC/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/WinObjC/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/WinObjC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/WinObjC/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/WinObjC/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/WinObjC/deployments","created_at":"2015-06-23T23:14:58Z","updated_at":"2016-09-23T03:49:57Z","pushed_at":"2016-09-23T22:55:17Z","git_url":"git://github.com/Microsoft/WinObjC.git","ssh_url":"git@github.com:Microsoft/WinObjC.git","clone_url":"https://github.com/Microsoft/WinObjC.git","svn_url":"https://github.com/Microsoft/WinObjC","homepage":"","size":336553,"stargazers_count":5456,"watchers_count":5456,"language":"Objective-C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":696,"mirror_url":null,"open_issues_count":228,"forks":696,"open_issues":228,"watchers":5456,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/WinObjC/pulls/1032"},"html":{"href":"https://github.com/Microsoft/WinObjC/pull/1032"},"issue":{"href":"https://api.github.com/repos/Microsoft/WinObjC/issues/1032"},"comments":{"href":"https://api.github.com/repos/Microsoft/WinObjC/issues/1032/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/WinObjC/pulls/1032/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/WinObjC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/WinObjC/pulls/1032/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/WinObjC/statuses/362c049edbd4306aca6e17eba954ca9993d0aff2"}}}}
{"actor":{"display_login":"msft-Jeyaram"}}