{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/Phoenard/Phoenard/pulls/2","id":43722692,"html_url":"https://github.com/Phoenard/Phoenard/pull/2","diff_url":"https://github.com/Phoenard/Phoenard/pull/2.diff","patch_url":"https://github.com/Phoenard/Phoenard/pull/2.patch","issue_url":"https://api.github.com/repos/Phoenard/Phoenard/issues/2","number":2,"state":"open","locked":false,"title":"Change to Phoenard.h to support Arduino IDE before 1.0.4","user":{"login":"wrh3c","id":14019199,"avatar_url":"https://avatars.githubusercontent.com/u/14019199?v=3","gravatar_id":"","url":"https://api.github.com/users/wrh3c","html_url":"https://github.com/wrh3c","followers_url":"https://api.github.com/users/wrh3c/followers","following_url":"https://api.github.com/users/wrh3c/following{/other_user}","gists_url":"https://api.github.com/users/wrh3c/gists{/gist_id}","starred_url":"https://api.github.com/users/wrh3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrh3c/subscriptions","organizations_url":"https://api.github.com/users/wrh3c/orgs","repos_url":"https://api.github.com/users/wrh3c/repos","events_url":"https://api.github.com/users/wrh3c/events{/privacy}","received_events_url":"https://api.github.com/users/wrh3c/received_events","type":"User","site_admin":false},"body":"I think this is a reasonable place to put this since most Phoenard sketches include only this header file.  If there is a better place, please let me know.\r\n\r\nIn Phoenard.h, added array operators for new[] and delete[] for Arduino versions before 1.0.4.  (They are already included in versions 1.0.4 and above.)\r\n\r\nVerified that example sketches now compile with Arduino 1.0.1, 1.0.3, 1.0.4, 1.0.6, and 1.6.5-r2.\r\n\r\nWithout this change, in Arduino 1.0.1 and 1.0.3, compilation fails with the following messages:\r\nPhoenard\\PHNWidget.cpp.o: In function `PHN_WidgetContainer::setWidgetCapacity(int)':\r\n...\\libraries\\Phoenard/PHNWidget.cpp:230: undefined reference to `operator new[](unsigned int)'\r\n...\\libraries\\Phoenard/PHNWidget.cpp:241: undefined reference to `operator delete[](void*)'\r\nPhoenard\\PHNWidget.cpp.o: In function `PHN_WidgetContainer::clearSilent()':\r\n...\\libraries\\Phoenard/PHNWidget.cpp:219: undefined reference to `operator delete[](void*)'","created_at":"2015-08-30T23:16:07Z","updated_at":"2015-08-30T23:16:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d92cc60bcc578735d61c7ac16b490de1a77083be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Phoenard/Phoenard/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Phoenard/Phoenard/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Phoenard/Phoenard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Phoenard/Phoenard/issues/2/comments","statuses_url":"https://api.github.com/repos/Phoenard/Phoenard/statuses/8b0d871c7c5752d6501bae8d4e03ed1b1eab5479","head":{"label":"wrh3c:master","ref":"master","sha":"8b0d871c7c5752d6501bae8d4e03ed1b1eab5479","user":{"login":"wrh3c","id":14019199,"avatar_url":"https://avatars.githubusercontent.com/u/14019199?v=3","gravatar_id":"","url":"https://api.github.com/users/wrh3c","html_url":"https://github.com/wrh3c","followers_url":"https://api.github.com/users/wrh3c/followers","following_url":"https://api.github.com/users/wrh3c/following{/other_user}","gists_url":"https://api.github.com/users/wrh3c/gists{/gist_id}","starred_url":"https://api.github.com/users/wrh3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrh3c/subscriptions","organizations_url":"https://api.github.com/users/wrh3c/orgs","repos_url":"https://api.github.com/users/wrh3c/repos","events_url":"https://api.github.com/users/wrh3c/events{/privacy}","received_events_url":"https://api.github.com/users/wrh3c/received_events","type":"User","site_admin":false},"repo":{"id":41563170,"name":"Phoenard","full_name":"wrh3c/Phoenard","owner":{"login":"wrh3c","id":14019199,"avatar_url":"https://avatars.githubusercontent.com/u/14019199?v=3","gravatar_id":"","url":"https://api.github.com/users/wrh3c","html_url":"https://github.com/wrh3c","followers_url":"https://api.github.com/users/wrh3c/followers","following_url":"https://api.github.com/users/wrh3c/following{/other_user}","gists_url":"https://api.github.com/users/wrh3c/gists{/gist_id}","starred_url":"https://api.github.com/users/wrh3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrh3c/subscriptions","organizations_url":"https://api.github.com/users/wrh3c/orgs","repos_url":"https://api.github.com/users/wrh3c/repos","events_url":"https://api.github.com/users/wrh3c/events{/privacy}","received_events_url":"https://api.github.com/users/wrh3c/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wrh3c/Phoenard","description":"Phoenard is an open source phone-arduino platform","fork":true,"url":"https://api.github.com/repos/wrh3c/Phoenard","forks_url":"https://api.github.com/repos/wrh3c/Phoenard/forks","keys_url":"https://api.github.com/repos/wrh3c/Phoenard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrh3c/Phoenard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrh3c/Phoenard/teams","hooks_url":"https://api.github.com/repos/wrh3c/Phoenard/hooks","issue_events_url":"https://api.github.com/repos/wrh3c/Phoenard/issues/events{/number}","events_url":"https://api.github.com/repos/wrh3c/Phoenard/events","assignees_url":"https://api.github.com/repos/wrh3c/Phoenard/assignees{/user}","branches_url":"https://api.github.com/repos/wrh3c/Phoenard/branches{/branch}","tags_url":"https://api.github.com/repos/wrh3c/Phoenard/tags","blobs_url":"https://api.github.com/repos/wrh3c/Phoenard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrh3c/Phoenard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrh3c/Phoenard/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrh3c/Phoenard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrh3c/Phoenard/statuses/{sha}","languages_url":"https://api.github.com/repos/wrh3c/Phoenard/languages","stargazers_url":"https://api.github.com/repos/wrh3c/Phoenard/stargazers","contributors_url":"https://api.github.com/repos/wrh3c/Phoenard/contributors","subscribers_url":"https://api.github.com/repos/wrh3c/Phoenard/subscribers","subscription_url":"https://api.github.com/repos/wrh3c/Phoenard/subscription","commits_url":"https://api.github.com/repos/wrh3c/Phoenard/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrh3c/Phoenard/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrh3c/Phoenard/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrh3c/Phoenard/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrh3c/Phoenard/contents/{+path}","compare_url":"https://api.github.com/repos/wrh3c/Phoenard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrh3c/Phoenard/merges","archive_url":"https://api.github.com/repos/wrh3c/Phoenard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrh3c/Phoenard/downloads","issues_url":"https://api.github.com/repos/wrh3c/Phoenard/issues{/number}","pulls_url":"https://api.github.com/repos/wrh3c/Phoenard/pulls{/number}","milestones_url":"https://api.github.com/repos/wrh3c/Phoenard/milestones{/number}","notifications_url":"https://api.github.com/repos/wrh3c/Phoenard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrh3c/Phoenard/labels{/name}","releases_url":"https://api.github.com/repos/wrh3c/Phoenard/releases{/id}","created_at":"2015-08-28T18:40:04Z","updated_at":"2015-08-28T18:40:05Z","pushed_at":"2015-08-30T22:18:07Z","git_url":"git://github.com/wrh3c/Phoenard.git","ssh_url":"git@github.com:wrh3c/Phoenard.git","clone_url":"https://github.com/wrh3c/Phoenard.git","svn_url":"https://github.com/wrh3c/Phoenard","homepage":"http://phoenard.com","size":524,"stargazers_count":0,"watchers_count":0,"language":"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":"master"}},"base":{"label":"Phoenard:master","ref":"master","sha":"e49b8527b231c863bb791a4a5b27b95019080528","user":{"login":"Phoenard","id":7601574,"avatar_url":"https://avatars.githubusercontent.com/u/7601574?v=3","gravatar_id":"","url":"https://api.github.com/users/Phoenard","html_url":"https://github.com/Phoenard","followers_url":"https://api.github.com/users/Phoenard/followers","following_url":"https://api.github.com/users/Phoenard/following{/other_user}","gists_url":"https://api.github.com/users/Phoenard/gists{/gist_id}","starred_url":"https://api.github.com/users/Phoenard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phoenard/subscriptions","organizations_url":"https://api.github.com/users/Phoenard/orgs","repos_url":"https://api.github.com/users/Phoenard/repos","events_url":"https://api.github.com/users/Phoenard/events{/privacy}","received_events_url":"https://api.github.com/users/Phoenard/received_events","type":"Organization","site_admin":false},"repo":{"id":17922627,"name":"Phoenard","full_name":"Phoenard/Phoenard","owner":{"login":"Phoenard","id":7601574,"avatar_url":"https://avatars.githubusercontent.com/u/7601574?v=3","gravatar_id":"","url":"https://api.github.com/users/Phoenard","html_url":"https://github.com/Phoenard","followers_url":"https://api.github.com/users/Phoenard/followers","following_url":"https://api.github.com/users/Phoenard/following{/other_user}","gists_url":"https://api.github.com/users/Phoenard/gists{/gist_id}","starred_url":"https://api.github.com/users/Phoenard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phoenard/subscriptions","organizations_url":"https://api.github.com/users/Phoenard/orgs","repos_url":"https://api.github.com/users/Phoenard/repos","events_url":"https://api.github.com/users/Phoenard/events{/privacy}","received_events_url":"https://api.github.com/users/Phoenard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Phoenard/Phoenard","description":"Phoenard is an open source phone-arduino platform","fork":false,"url":"https://api.github.com/repos/Phoenard/Phoenard","forks_url":"https://api.github.com/repos/Phoenard/Phoenard/forks","keys_url":"https://api.github.com/repos/Phoenard/Phoenard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Phoenard/Phoenard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Phoenard/Phoenard/teams","hooks_url":"https://api.github.com/repos/Phoenard/Phoenard/hooks","issue_events_url":"https://api.github.com/repos/Phoenard/Phoenard/issues/events{/number}","events_url":"https://api.github.com/repos/Phoenard/Phoenard/events","assignees_url":"https://api.github.com/repos/Phoenard/Phoenard/assignees{/user}","branches_url":"https://api.github.com/repos/Phoenard/Phoenard/branches{/branch}","tags_url":"https://api.github.com/repos/Phoenard/Phoenard/tags","blobs_url":"https://api.github.com/repos/Phoenard/Phoenard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Phoenard/Phoenard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Phoenard/Phoenard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Phoenard/Phoenard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Phoenard/Phoenard/statuses/{sha}","languages_url":"https://api.github.com/repos/Phoenard/Phoenard/languages","stargazers_url":"https://api.github.com/repos/Phoenard/Phoenard/stargazers","contributors_url":"https://api.github.com/repos/Phoenard/Phoenard/contributors","subscribers_url":"https://api.github.com/repos/Phoenard/Phoenard/subscribers","subscription_url":"https://api.github.com/repos/Phoenard/Phoenard/subscription","commits_url":"https://api.github.com/repos/Phoenard/Phoenard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Phoenard/Phoenard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Phoenard/Phoenard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Phoenard/Phoenard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Phoenard/Phoenard/contents/{+path}","compare_url":"https://api.github.com/repos/Phoenard/Phoenard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Phoenard/Phoenard/merges","archive_url":"https://api.github.com/repos/Phoenard/Phoenard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Phoenard/Phoenard/downloads","issues_url":"https://api.github.com/repos/Phoenard/Phoenard/issues{/number}","pulls_url":"https://api.github.com/repos/Phoenard/Phoenard/pulls{/number}","milestones_url":"https://api.github.com/repos/Phoenard/Phoenard/milestones{/number}","notifications_url":"https://api.github.com/repos/Phoenard/Phoenard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Phoenard/Phoenard/labels{/name}","releases_url":"https://api.github.com/repos/Phoenard/Phoenard/releases{/id}","created_at":"2014-03-19T22:22:49Z","updated_at":"2015-08-28T20:50:55Z","pushed_at":"2015-08-30T23:16:07Z","git_url":"git://github.com/Phoenard/Phoenard.git","ssh_url":"git@github.com:Phoenard/Phoenard.git","clone_url":"https://github.com/Phoenard/Phoenard.git","svn_url":"https://github.com/Phoenard/Phoenard","homepage":"http://phoenard.com","size":984,"stargazers_count":8,"watchers_count":8,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Phoenard/Phoenard/pulls/2"},"html":{"href":"https://github.com/Phoenard/Phoenard/pull/2"},"issue":{"href":"https://api.github.com/repos/Phoenard/Phoenard/issues/2"},"comments":{"href":"https://api.github.com/repos/Phoenard/Phoenard/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Phoenard/Phoenard/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Phoenard/Phoenard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Phoenard/Phoenard/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Phoenard/Phoenard/statuses/8b0d871c7c5752d6501bae8d4e03ed1b1eab5479"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":0,"changed_files":1}}