{"action":"created","comment":{"url":"https://api.github.com/repos/troydhanson/uthash/pulls/comments/70510989","id":70510989,"diff_hunk":"@@ -26,9 +26,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n \n #define UTHASH_VERSION 2.0.1\n \n+#ifndef uthash_noheaders","path":"src/uthash.h","position":4,"original_position":4,"commit_id":"ef5c5236d1ec4a82493121f0c70ca49aa51ece45","original_commit_id":"ef5c5236d1ec4a82493121f0c70ca49aa51ece45","user":{"login":"veselov","id":2555513,"avatar_url":"https://avatars.githubusercontent.com/u/2555513?v=3","gravatar_id":"","url":"https://api.github.com/users/veselov","html_url":"https://github.com/veselov","followers_url":"https://api.github.com/users/veselov/followers","following_url":"https://api.github.com/users/veselov/following{/other_user}","gists_url":"https://api.github.com/users/veselov/gists{/gist_id}","starred_url":"https://api.github.com/users/veselov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veselov/subscriptions","organizations_url":"https://api.github.com/users/veselov/orgs","repos_url":"https://api.github.com/users/veselov/repos","events_url":"https://api.github.com/users/veselov/events{/privacy}","received_events_url":"https://api.github.com/users/veselov/received_events","type":"User","site_admin":false},"body":"I'll rename it to free-standing, because that's what it's supposed to be. However, I will still snip out `<stdint.h>` (I'll have to check what out of stdint does uthash need though), as this can be documented and developer can include it if they need to. As my understanding goes so far, the world of embedded things don't follow the standards all too well. For example, Micirum has functions like Str_Len() and such, I'm not sure is it because they don't trust the compiler builtins or what not. At the same time, their headers override standard types left and right, so including things like `<stddef.h>` just generates a slough of warnings, and at worse may result into compiler referencing something from builtin library that has ends in libc, which in turn fails linking.","created_at":"2016-07-12T20:01:42Z","updated_at":"2016-07-12T20:01:42Z","html_url":"https://github.com/troydhanson/uthash/pull/85#discussion_r70510989","pull_request_url":"https://api.github.com/repos/troydhanson/uthash/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/troydhanson/uthash/pulls/comments/70510989"},"html":{"href":"https://github.com/troydhanson/uthash/pull/85#discussion_r70510989"},"pull_request":{"href":"https://api.github.com/repos/troydhanson/uthash/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/troydhanson/uthash/pulls/85","id":77075222,"html_url":"https://github.com/troydhanson/uthash/pull/85","diff_url":"https://github.com/troydhanson/uthash/pull/85.diff","patch_url":"https://github.com/troydhanson/uthash/pull/85.patch","issue_url":"https://api.github.com/repos/troydhanson/uthash/issues/85","number":85,"state":"open","locked":false,"title":"Support targets without standard functions","user":{"login":"veselov","id":2555513,"avatar_url":"https://avatars.githubusercontent.com/u/2555513?v=3","gravatar_id":"","url":"https://api.github.com/users/veselov","html_url":"https://github.com/veselov","followers_url":"https://api.github.com/users/veselov/followers","following_url":"https://api.github.com/users/veselov/following{/other_user}","gists_url":"https://api.github.com/users/veselov/gists{/gist_id}","starred_url":"https://api.github.com/users/veselov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veselov/subscriptions","organizations_url":"https://api.github.com/users/veselov/orgs","repos_url":"https://api.github.com/users/veselov/repos","events_url":"https://api.github.com/users/veselov/events{/privacy}","received_events_url":"https://api.github.com/users/veselov/received_events","type":"User","site_admin":false},"body":"\r\nHi Arthur,\r\n\r\nI've been using uthash for a while now, and recently had to port some of my code to an RTOS (Micrium to be specific). Apparently, these things don't quite often provide even standard headers (like stdio), and have a completely alien set of both headers and functions available.\r\n\r\nuthash has some portability, as one can override what is used for malloc and etc., but it does insist on including certain headers, and some functions like strlen/memcmp.\r\n\r\nI've provided this PR so that one can use uthash on such platforms.\r\n\r\nThank you,\r\n  Pawel.\r\n","created_at":"2016-07-12T07:48:19Z","updated_at":"2016-07-12T20:01:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1aa58ec3c6e023fd6ff9fd4a4b1b0ea478b9fe06","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/troydhanson/uthash/pulls/85/commits","review_comments_url":"https://api.github.com/repos/troydhanson/uthash/pulls/85/comments","review_comment_url":"https://api.github.com/repos/troydhanson/uthash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/troydhanson/uthash/issues/85/comments","statuses_url":"https://api.github.com/repos/troydhanson/uthash/statuses/ef5c5236d1ec4a82493121f0c70ca49aa51ece45","head":{"label":"veselov:master","ref":"master","sha":"ef5c5236d1ec4a82493121f0c70ca49aa51ece45","user":{"login":"veselov","id":2555513,"avatar_url":"https://avatars.githubusercontent.com/u/2555513?v=3","gravatar_id":"","url":"https://api.github.com/users/veselov","html_url":"https://github.com/veselov","followers_url":"https://api.github.com/users/veselov/followers","following_url":"https://api.github.com/users/veselov/following{/other_user}","gists_url":"https://api.github.com/users/veselov/gists{/gist_id}","starred_url":"https://api.github.com/users/veselov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veselov/subscriptions","organizations_url":"https://api.github.com/users/veselov/orgs","repos_url":"https://api.github.com/users/veselov/repos","events_url":"https://api.github.com/users/veselov/events{/privacy}","received_events_url":"https://api.github.com/users/veselov/received_events","type":"User","site_admin":false},"repo":{"id":63133938,"name":"uthash","full_name":"veselov/uthash","owner":{"login":"veselov","id":2555513,"avatar_url":"https://avatars.githubusercontent.com/u/2555513?v=3","gravatar_id":"","url":"https://api.github.com/users/veselov","html_url":"https://github.com/veselov","followers_url":"https://api.github.com/users/veselov/followers","following_url":"https://api.github.com/users/veselov/following{/other_user}","gists_url":"https://api.github.com/users/veselov/gists{/gist_id}","starred_url":"https://api.github.com/users/veselov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veselov/subscriptions","organizations_url":"https://api.github.com/users/veselov/orgs","repos_url":"https://api.github.com/users/veselov/repos","events_url":"https://api.github.com/users/veselov/events{/privacy}","received_events_url":"https://api.github.com/users/veselov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/veselov/uthash","description":"C macros for hash tables and more","fork":true,"url":"https://api.github.com/repos/veselov/uthash","forks_url":"https://api.github.com/repos/veselov/uthash/forks","keys_url":"https://api.github.com/repos/veselov/uthash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/veselov/uthash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/veselov/uthash/teams","hooks_url":"https://api.github.com/repos/veselov/uthash/hooks","issue_events_url":"https://api.github.com/repos/veselov/uthash/issues/events{/number}","events_url":"https://api.github.com/repos/veselov/uthash/events","assignees_url":"https://api.github.com/repos/veselov/uthash/assignees{/user}","branches_url":"https://api.github.com/repos/veselov/uthash/branches{/branch}","tags_url":"https://api.github.com/repos/veselov/uthash/tags","blobs_url":"https://api.github.com/repos/veselov/uthash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/veselov/uthash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/veselov/uthash/git/refs{/sha}","trees_url":"https://api.github.com/repos/veselov/uthash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/veselov/uthash/statuses/{sha}","languages_url":"https://api.github.com/repos/veselov/uthash/languages","stargazers_url":"https://api.github.com/repos/veselov/uthash/stargazers","contributors_url":"https://api.github.com/repos/veselov/uthash/contributors","subscribers_url":"https://api.github.com/repos/veselov/uthash/subscribers","subscription_url":"https://api.github.com/repos/veselov/uthash/subscription","commits_url":"https://api.github.com/repos/veselov/uthash/commits{/sha}","git_commits_url":"https://api.github.com/repos/veselov/uthash/git/commits{/sha}","comments_url":"https://api.github.com/repos/veselov/uthash/comments{/number}","issue_comment_url":"https://api.github.com/repos/veselov/uthash/issues/comments{/number}","contents_url":"https://api.github.com/repos/veselov/uthash/contents/{+path}","compare_url":"https://api.github.com/repos/veselov/uthash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/veselov/uthash/merges","archive_url":"https://api.github.com/repos/veselov/uthash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/veselov/uthash/downloads","issues_url":"https://api.github.com/repos/veselov/uthash/issues{/number}","pulls_url":"https://api.github.com/repos/veselov/uthash/pulls{/number}","milestones_url":"https://api.github.com/repos/veselov/uthash/milestones{/number}","notifications_url":"https://api.github.com/repos/veselov/uthash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/veselov/uthash/labels{/name}","releases_url":"https://api.github.com/repos/veselov/uthash/releases{/id}","deployments_url":"https://api.github.com/repos/veselov/uthash/deployments","created_at":"2016-07-12T06:51:50Z","updated_at":"2016-07-12T06:51:52Z","pushed_at":"2016-07-12T07:45:55Z","git_url":"git://github.com/veselov/uthash.git","ssh_url":"git@github.com:veselov/uthash.git","clone_url":"https://github.com/veselov/uthash.git","svn_url":"https://github.com/veselov/uthash","homepage":null,"size":991,"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":"troydhanson:master","ref":"master","sha":"539b4504b052cfca54ed66b82ca99e3aed403d46","user":{"login":"troydhanson","id":856808,"avatar_url":"https://avatars.githubusercontent.com/u/856808?v=3","gravatar_id":"","url":"https://api.github.com/users/troydhanson","html_url":"https://github.com/troydhanson","followers_url":"https://api.github.com/users/troydhanson/followers","following_url":"https://api.github.com/users/troydhanson/following{/other_user}","gists_url":"https://api.github.com/users/troydhanson/gists{/gist_id}","starred_url":"https://api.github.com/users/troydhanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troydhanson/subscriptions","organizations_url":"https://api.github.com/users/troydhanson/orgs","repos_url":"https://api.github.com/users/troydhanson/repos","events_url":"https://api.github.com/users/troydhanson/events{/privacy}","received_events_url":"https://api.github.com/users/troydhanson/received_events","type":"User","site_admin":false},"repo":{"id":7476948,"name":"uthash","full_name":"troydhanson/uthash","owner":{"login":"troydhanson","id":856808,"avatar_url":"https://avatars.githubusercontent.com/u/856808?v=3","gravatar_id":"","url":"https://api.github.com/users/troydhanson","html_url":"https://github.com/troydhanson","followers_url":"https://api.github.com/users/troydhanson/followers","following_url":"https://api.github.com/users/troydhanson/following{/other_user}","gists_url":"https://api.github.com/users/troydhanson/gists{/gist_id}","starred_url":"https://api.github.com/users/troydhanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troydhanson/subscriptions","organizations_url":"https://api.github.com/users/troydhanson/orgs","repos_url":"https://api.github.com/users/troydhanson/repos","events_url":"https://api.github.com/users/troydhanson/events{/privacy}","received_events_url":"https://api.github.com/users/troydhanson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/troydhanson/uthash","description":"C macros for hash tables and more","fork":false,"url":"https://api.github.com/repos/troydhanson/uthash","forks_url":"https://api.github.com/repos/troydhanson/uthash/forks","keys_url":"https://api.github.com/repos/troydhanson/uthash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/troydhanson/uthash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/troydhanson/uthash/teams","hooks_url":"https://api.github.com/repos/troydhanson/uthash/hooks","issue_events_url":"https://api.github.com/repos/troydhanson/uthash/issues/events{/number}","events_url":"https://api.github.com/repos/troydhanson/uthash/events","assignees_url":"https://api.github.com/repos/troydhanson/uthash/assignees{/user}","branches_url":"https://api.github.com/repos/troydhanson/uthash/branches{/branch}","tags_url":"https://api.github.com/repos/troydhanson/uthash/tags","blobs_url":"https://api.github.com/repos/troydhanson/uthash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/troydhanson/uthash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/troydhanson/uthash/git/refs{/sha}","trees_url":"https://api.github.com/repos/troydhanson/uthash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/troydhanson/uthash/statuses/{sha}","languages_url":"https://api.github.com/repos/troydhanson/uthash/languages","stargazers_url":"https://api.github.com/repos/troydhanson/uthash/stargazers","contributors_url":"https://api.github.com/repos/troydhanson/uthash/contributors","subscribers_url":"https://api.github.com/repos/troydhanson/uthash/subscribers","subscription_url":"https://api.github.com/repos/troydhanson/uthash/subscription","commits_url":"https://api.github.com/repos/troydhanson/uthash/commits{/sha}","git_commits_url":"https://api.github.com/repos/troydhanson/uthash/git/commits{/sha}","comments_url":"https://api.github.com/repos/troydhanson/uthash/comments{/number}","issue_comment_url":"https://api.github.com/repos/troydhanson/uthash/issues/comments{/number}","contents_url":"https://api.github.com/repos/troydhanson/uthash/contents/{+path}","compare_url":"https://api.github.com/repos/troydhanson/uthash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/troydhanson/uthash/merges","archive_url":"https://api.github.com/repos/troydhanson/uthash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/troydhanson/uthash/downloads","issues_url":"https://api.github.com/repos/troydhanson/uthash/issues{/number}","pulls_url":"https://api.github.com/repos/troydhanson/uthash/pulls{/number}","milestones_url":"https://api.github.com/repos/troydhanson/uthash/milestones{/number}","notifications_url":"https://api.github.com/repos/troydhanson/uthash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/troydhanson/uthash/labels{/name}","releases_url":"https://api.github.com/repos/troydhanson/uthash/releases{/id}","deployments_url":"https://api.github.com/repos/troydhanson/uthash/deployments","created_at":"2013-01-07T04:41:52Z","updated_at":"2016-07-12T03:21:03Z","pushed_at":"2016-07-12T07:48:19Z","git_url":"git://github.com/troydhanson/uthash.git","ssh_url":"git@github.com:troydhanson/uthash.git","clone_url":"https://github.com/troydhanson/uthash.git","svn_url":"https://github.com/troydhanson/uthash","homepage":null,"size":1257,"stargazers_count":779,"watchers_count":779,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":222,"mirror_url":null,"open_issues_count":5,"forks":222,"open_issues":5,"watchers":779,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/troydhanson/uthash/pulls/85"},"html":{"href":"https://github.com/troydhanson/uthash/pull/85"},"issue":{"href":"https://api.github.com/repos/troydhanson/uthash/issues/85"},"comments":{"href":"https://api.github.com/repos/troydhanson/uthash/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/troydhanson/uthash/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/troydhanson/uthash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/troydhanson/uthash/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/troydhanson/uthash/statuses/ef5c5236d1ec4a82493121f0c70ca49aa51ece45"}}}}
{"actor":{"display_login":"veselov"}}