{"action":"created","comment":{"url":"https://api.github.com/repos/apple/swift/pulls/comments/51018496","id":51018496,"diff_hunk":"@@ -326,10 +326,33 @@ internal func _usesNativeSwiftReferenceCounting(theClass: AnyClass) -> Bool {\n #endif\n }\n \n+#if os(Windows)\n+// If the return type of a C/C++ function is a structure,\n+// the calling convension is different from caller's.  \n+// A wrapper function is introduced.\n+struct PrivPair {\n+  var negative : UInt\n+  var positive : UInt\n+}\n+\n+@_silgen_name(\"swift_class_getInstanceExtents\")\n+private func swift_class_getInstanceExtents_raw(inout pair: PrivPair,\n+                                                theClass: AnyClass)\n+\n+@warn_unused_result\n+func swift_class_getInstanceExtents(theClass: AnyClass)\n+  -> (negative: UInt, positive: UInt) {\n+  var pair = PrivPair(negative : 0, positive : 0)","path":"stdlib/public/core/Builtin.swift","position":20,"original_position":20,"commit_id":"6dfd69f2157fb65d8c2c85b5cc91df3e089ff098","original_commit_id":"6dfd69f2157fb65d8c2c85b5cc91df3e089ff098","user":{"login":"gribozavr","id":1120569,"avatar_url":"https://avatars.githubusercontent.com/u/1120569?v=3","gravatar_id":"","url":"https://api.github.com/users/gribozavr","html_url":"https://github.com/gribozavr","followers_url":"https://api.github.com/users/gribozavr/followers","following_url":"https://api.github.com/users/gribozavr/following{/other_user}","gists_url":"https://api.github.com/users/gribozavr/gists{/gist_id}","starred_url":"https://api.github.com/users/gribozavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gribozavr/subscriptions","organizations_url":"https://api.github.com/users/gribozavr/orgs","repos_url":"https://api.github.com/users/gribozavr/repos","events_url":"https://api.github.com/users/gribozavr/events{/privacy}","received_events_url":"https://api.github.com/users/gribozavr/received_events","type":"User","site_admin":false},"body":"Please drop the spaces before the colons.","created_at":"2016-01-27T17:31:17Z","updated_at":"2016-01-27T17:31:17Z","html_url":"https://github.com/apple/swift/pull/1108#discussion_r51018496","pull_request_url":"https://api.github.com/repos/apple/swift/pulls/1108","_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/comments/51018496"},"html":{"href":"https://github.com/apple/swift/pull/1108#discussion_r51018496"},"pull_request":{"href":"https://api.github.com/repos/apple/swift/pulls/1108"}}},"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/1108","id":57287750,"html_url":"https://github.com/apple/swift/pull/1108","diff_url":"https://github.com/apple/swift/pull/1108.diff","patch_url":"https://github.com/apple/swift/pull/1108.patch","issue_url":"https://api.github.com/repos/apple/swift/issues/1108","number":1108,"state":"open","locked":false,"title":"Porting to cygwin","user":{"login":"tinysun212","id":12603793,"avatar_url":"https://avatars.githubusercontent.com/u/12603793?v=3","gravatar_id":"","url":"https://api.github.com/users/tinysun212","html_url":"https://github.com/tinysun212","followers_url":"https://api.github.com/users/tinysun212/followers","following_url":"https://api.github.com/users/tinysun212/following{/other_user}","gists_url":"https://api.github.com/users/tinysun212/gists{/gist_id}","starred_url":"https://api.github.com/users/tinysun212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinysun212/subscriptions","organizations_url":"https://api.github.com/users/tinysun212/orgs","repos_url":"https://api.github.com/users/tinysun212/repos","events_url":"https://api.github.com/users/tinysun212/events{/privacy}","received_events_url":"https://api.github.com/users/tinysun212/received_events","type":"User","site_admin":false},"body":"Rebased PR from previous.\r\nI made several changes set for cygwin64 port.\r\n\r\nThe standard library can be used and It is possible to compile and run or interpret a simple hello swift source, but REPL, swift-build and swift-lldb does not work.\r\nCurrently, build process is not good, and many bugs may exist in. \r\n ","created_at":"2016-01-26T23:04:32Z","updated_at":"2016-01-27T17:31:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d51320e43ffeb13835b522176c139c27495a568b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift/pulls/1108/commits","review_comments_url":"https://api.github.com/repos/apple/swift/pulls/1108/comments","review_comment_url":"https://api.github.com/repos/apple/swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift/issues/1108/comments","statuses_url":"https://api.github.com/repos/apple/swift/statuses/6dfd69f2157fb65d8c2c85b5cc91df3e089ff098","head":{"label":"tinysun212:porting-to-cygwin","ref":"porting-to-cygwin","sha":"6dfd69f2157fb65d8c2c85b5cc91df3e089ff098","user":{"login":"tinysun212","id":12603793,"avatar_url":"https://avatars.githubusercontent.com/u/12603793?v=3","gravatar_id":"","url":"https://api.github.com/users/tinysun212","html_url":"https://github.com/tinysun212","followers_url":"https://api.github.com/users/tinysun212/followers","following_url":"https://api.github.com/users/tinysun212/following{/other_user}","gists_url":"https://api.github.com/users/tinysun212/gists{/gist_id}","starred_url":"https://api.github.com/users/tinysun212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinysun212/subscriptions","organizations_url":"https://api.github.com/users/tinysun212/orgs","repos_url":"https://api.github.com/users/tinysun212/repos","events_url":"https://api.github.com/users/tinysun212/events{/privacy}","received_events_url":"https://api.github.com/users/tinysun212/received_events","type":"User","site_admin":false},"repo":{"id":48312409,"name":"swift-cygwin","full_name":"tinysun212/swift-cygwin","owner":{"login":"tinysun212","id":12603793,"avatar_url":"https://avatars.githubusercontent.com/u/12603793?v=3","gravatar_id":"","url":"https://api.github.com/users/tinysun212","html_url":"https://github.com/tinysun212","followers_url":"https://api.github.com/users/tinysun212/followers","following_url":"https://api.github.com/users/tinysun212/following{/other_user}","gists_url":"https://api.github.com/users/tinysun212/gists{/gist_id}","starred_url":"https://api.github.com/users/tinysun212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinysun212/subscriptions","organizations_url":"https://api.github.com/users/tinysun212/orgs","repos_url":"https://api.github.com/users/tinysun212/repos","events_url":"https://api.github.com/users/tinysun212/events{/privacy}","received_events_url":"https://api.github.com/users/tinysun212/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tinysun212/swift-cygwin","description":"The Swift Programming Language ported on Windows using Cygwin","fork":true,"url":"https://api.github.com/repos/tinysun212/swift-cygwin","forks_url":"https://api.github.com/repos/tinysun212/swift-cygwin/forks","keys_url":"https://api.github.com/repos/tinysun212/swift-cygwin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tinysun212/swift-cygwin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tinysun212/swift-cygwin/teams","hooks_url":"https://api.github.com/repos/tinysun212/swift-cygwin/hooks","issue_events_url":"https://api.github.com/repos/tinysun212/swift-cygwin/issues/events{/number}","events_url":"https://api.github.com/repos/tinysun212/swift-cygwin/events","assignees_url":"https://api.github.com/repos/tinysun212/swift-cygwin/assignees{/user}","branches_url":"https://api.github.com/repos/tinysun212/swift-cygwin/branches{/branch}","tags_url":"https://api.github.com/repos/tinysun212/swift-cygwin/tags","blobs_url":"https://api.github.com/repos/tinysun212/swift-cygwin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tinysun212/swift-cygwin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tinysun212/swift-cygwin/git/refs{/sha}","trees_url":"https://api.github.com/repos/tinysun212/swift-cygwin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tinysun212/swift-cygwin/statuses/{sha}","languages_url":"https://api.github.com/repos/tinysun212/swift-cygwin/languages","stargazers_url":"https://api.github.com/repos/tinysun212/swift-cygwin/stargazers","contributors_url":"https://api.github.com/repos/tinysun212/swift-cygwin/contributors","subscribers_url":"https://api.github.com/repos/tinysun212/swift-cygwin/subscribers","subscription_url":"https://api.github.com/repos/tinysun212/swift-cygwin/subscription","commits_url":"https://api.github.com/repos/tinysun212/swift-cygwin/commits{/sha}","git_commits_url":"https://api.github.com/repos/tinysun212/swift-cygwin/git/commits{/sha}","comments_url":"https://api.github.com/repos/tinysun212/swift-cygwin/comments{/number}","issue_comment_url":"https://api.github.com/repos/tinysun212/swift-cygwin/issues/comments{/number}","contents_url":"https://api.github.com/repos/tinysun212/swift-cygwin/contents/{+path}","compare_url":"https://api.github.com/repos/tinysun212/swift-cygwin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tinysun212/swift-cygwin/merges","archive_url":"https://api.github.com/repos/tinysun212/swift-cygwin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tinysun212/swift-cygwin/downloads","issues_url":"https://api.github.com/repos/tinysun212/swift-cygwin/issues{/number}","pulls_url":"https://api.github.com/repos/tinysun212/swift-cygwin/pulls{/number}","milestones_url":"https://api.github.com/repos/tinysun212/swift-cygwin/milestones{/number}","notifications_url":"https://api.github.com/repos/tinysun212/swift-cygwin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tinysun212/swift-cygwin/labels{/name}","releases_url":"https://api.github.com/repos/tinysun212/swift-cygwin/releases{/id}","deployments_url":"https://api.github.com/repos/tinysun212/swift-cygwin/deployments","created_at":"2015-12-20T08:16:08Z","updated_at":"2016-01-18T20:27:41Z","pushed_at":"2016-01-26T22:55:03Z","git_url":"git://github.com/tinysun212/swift-cygwin.git","ssh_url":"git@github.com:tinysun212/swift-cygwin.git","clone_url":"https://github.com/tinysun212/swift-cygwin.git","svn_url":"https://github.com/tinysun212/swift-cygwin","homepage":"https://swift.org/","size":73970,"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":"apple:master","ref":"master","sha":"2344969520a1035d75a91c30ef30bb7162eeb7be","user":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":44838949,"name":"swift","full_name":"apple/swift","owner":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apple/swift","description":"The Swift Programming Language","fork":false,"url":"https://api.github.com/repos/apple/swift","forks_url":"https://api.github.com/repos/apple/swift/forks","keys_url":"https://api.github.com/repos/apple/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift/teams","hooks_url":"https://api.github.com/repos/apple/swift/hooks","issue_events_url":"https://api.github.com/repos/apple/swift/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift/events","assignees_url":"https://api.github.com/repos/apple/swift/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift/tags","blobs_url":"https://api.github.com/repos/apple/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift/languages","stargazers_url":"https://api.github.com/repos/apple/swift/stargazers","contributors_url":"https://api.github.com/repos/apple/swift/contributors","subscribers_url":"https://api.github.com/repos/apple/swift/subscribers","subscription_url":"https://api.github.com/repos/apple/swift/subscription","commits_url":"https://api.github.com/repos/apple/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift/merges","archive_url":"https://api.github.com/repos/apple/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift/downloads","issues_url":"https://api.github.com/repos/apple/swift/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift/releases{/id}","deployments_url":"https://api.github.com/repos/apple/swift/deployments","created_at":"2015-10-23T21:15:07Z","updated_at":"2016-01-27T17:10:28Z","pushed_at":"2016-01-27T17:19:02Z","git_url":"git://github.com/apple/swift.git","ssh_url":"git@github.com:apple/swift.git","clone_url":"https://github.com/apple/swift.git","svn_url":"https://github.com/apple/swift","homepage":"https://swift.org/","size":97203,"stargazers_count":26147,"watchers_count":26147,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3311,"mirror_url":null,"open_issues_count":52,"forks":3311,"open_issues":52,"watchers":26147,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/1108"},"html":{"href":"https://github.com/apple/swift/pull/1108"},"issue":{"href":"https://api.github.com/repos/apple/swift/issues/1108"},"comments":{"href":"https://api.github.com/repos/apple/swift/issues/1108/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift/pulls/1108/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift/pulls/1108/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift/statuses/6dfd69f2157fb65d8c2c85b5cc91df3e089ff098"}}}}