{"action":"created","comment":{"url":"https://api.github.com/repos/baylej/tmx/pulls/comments/30645616","id":30645616,"diff_hunk":"@@ -205,39 +207,164 @@ static int pjson_tile(json_t *tile_el, tmx_tile **tile_headaddr) {\n \treturn 1;\r\n }\r\n \r\n+\r\n+/* This is a rather slow solution - anyone with more spare time, feel free to rework the whole structure of\r\n+   the tiles list to make this faster */\r","path":"src/tmx_json.c","position":34,"original_position":34,"commit_id":"d0d5ec0028feac20802f44a5f4f3b6654b89084d","original_commit_id":"d0d5ec0028feac20802f44a5f4f3b6654b89084d","user":{"login":"RPGHacker","id":5788868,"avatar_url":"https://avatars.githubusercontent.com/u/5788868?v=3","gravatar_id":"","url":"https://api.github.com/users/RPGHacker","html_url":"https://github.com/RPGHacker","followers_url":"https://api.github.com/users/RPGHacker/followers","following_url":"https://api.github.com/users/RPGHacker/following{/other_user}","gists_url":"https://api.github.com/users/RPGHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/RPGHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RPGHacker/subscriptions","organizations_url":"https://api.github.com/users/RPGHacker/orgs","repos_url":"https://api.github.com/users/RPGHacker/repos","events_url":"https://api.github.com/users/RPGHacker/events{/privacy}","received_events_url":"https://api.github.com/users/RPGHacker/received_events","type":"User","site_admin":false},"body":"I've been looking into this just now. Is there any implementation of a hash table in the standard C library? I can't use std::set (or anything like that) since that is C++ code. Adding an external library for hash tables would be a bit over the top. And implementing my own hash table class in C seems difficult, too, unless I'm overcomplicating things and it's actually really easy. I could give it a try, but I don't want to bloat the code too much, so maybe there is a simple and light-weight way to implement a hash table in C?","created_at":"2015-05-19T20:54:07Z","updated_at":"2015-05-19T20:54:07Z","html_url":"https://github.com/baylej/tmx/pull/7#discussion_r30645616","pull_request_url":"https://api.github.com/repos/baylej/tmx/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/baylej/tmx/pulls/comments/30645616"},"html":{"href":"https://github.com/baylej/tmx/pull/7#discussion_r30645616"},"pull_request":{"href":"https://api.github.com/repos/baylej/tmx/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/baylej/tmx/pulls/7","id":35226970,"html_url":"https://github.com/baylej/tmx/pull/7","diff_url":"https://github.com/baylej/tmx/pull/7.diff","patch_url":"https://github.com/baylej/tmx/pull/7.patch","issue_url":"https://api.github.com/repos/baylej/tmx/issues/7","number":7,"state":"open","locked":false,"title":"Some additions & fixes (see details)","user":{"login":"RPGHacker","id":5788868,"avatar_url":"https://avatars.githubusercontent.com/u/5788868?v=3","gravatar_id":"","url":"https://api.github.com/users/RPGHacker","html_url":"https://github.com/RPGHacker","followers_url":"https://api.github.com/users/RPGHacker/followers","following_url":"https://api.github.com/users/RPGHacker/following{/other_user}","gists_url":"https://api.github.com/users/RPGHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/RPGHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RPGHacker/subscriptions","organizations_url":"https://api.github.com/users/RPGHacker/orgs","repos_url":"https://api.github.com/users/RPGHacker/repos","events_url":"https://api.github.com/users/RPGHacker/events{/privacy}","received_events_url":"https://api.github.com/users/RPGHacker/received_events","type":"User","site_admin":false},"body":"-Fixed: tmx_tileset properties x_offset/y_offset were \"unsigned int\"\r\ninstead of \"int\" (this was a bug because tilesets can have negative\r\noffsets in Tiled)\r\n-Added x_offset/y_offset properties to tmx_layer (these are needed for\r\npositioning image layers which was previously not supported)\r\n-Added support for image collection tilesets (tmx_tiles now contain\r\ntmx_image to source image)\r\n-Fixed: JSON parser didn't set x_offset/y_offset of tmx_tileset\r\n-Fixed: JSON parser didn't set trans of tmx_image","created_at":"2015-05-12T13:40:32Z","updated_at":"2015-05-19T20:54:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7230f0e2a0deb43e8b6644fa8985fa6f0c262c07","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/baylej/tmx/pulls/7/commits","review_comments_url":"https://api.github.com/repos/baylej/tmx/pulls/7/comments","review_comment_url":"https://api.github.com/repos/baylej/tmx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/baylej/tmx/issues/7/comments","statuses_url":"https://api.github.com/repos/baylej/tmx/statuses/d0d5ec0028feac20802f44a5f4f3b6654b89084d","head":{"label":"RPGHacker:master","ref":"master","sha":"d0d5ec0028feac20802f44a5f4f3b6654b89084d","user":{"login":"RPGHacker","id":5788868,"avatar_url":"https://avatars.githubusercontent.com/u/5788868?v=3","gravatar_id":"","url":"https://api.github.com/users/RPGHacker","html_url":"https://github.com/RPGHacker","followers_url":"https://api.github.com/users/RPGHacker/followers","following_url":"https://api.github.com/users/RPGHacker/following{/other_user}","gists_url":"https://api.github.com/users/RPGHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/RPGHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RPGHacker/subscriptions","organizations_url":"https://api.github.com/users/RPGHacker/orgs","repos_url":"https://api.github.com/users/RPGHacker/repos","events_url":"https://api.github.com/users/RPGHacker/events{/privacy}","received_events_url":"https://api.github.com/users/RPGHacker/received_events","type":"User","site_admin":false},"repo":{"id":35441565,"name":"tmx","full_name":"RPGHacker/tmx","owner":{"login":"RPGHacker","id":5788868,"avatar_url":"https://avatars.githubusercontent.com/u/5788868?v=3","gravatar_id":"","url":"https://api.github.com/users/RPGHacker","html_url":"https://github.com/RPGHacker","followers_url":"https://api.github.com/users/RPGHacker/followers","following_url":"https://api.github.com/users/RPGHacker/following{/other_user}","gists_url":"https://api.github.com/users/RPGHacker/gists{/gist_id}","starred_url":"https://api.github.com/users/RPGHacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RPGHacker/subscriptions","organizations_url":"https://api.github.com/users/RPGHacker/orgs","repos_url":"https://api.github.com/users/RPGHacker/repos","events_url":"https://api.github.com/users/RPGHacker/events{/privacy}","received_events_url":"https://api.github.com/users/RPGHacker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RPGHacker/tmx","description":"C tmx map loader","fork":true,"url":"https://api.github.com/repos/RPGHacker/tmx","forks_url":"https://api.github.com/repos/RPGHacker/tmx/forks","keys_url":"https://api.github.com/repos/RPGHacker/tmx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RPGHacker/tmx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RPGHacker/tmx/teams","hooks_url":"https://api.github.com/repos/RPGHacker/tmx/hooks","issue_events_url":"https://api.github.com/repos/RPGHacker/tmx/issues/events{/number}","events_url":"https://api.github.com/repos/RPGHacker/tmx/events","assignees_url":"https://api.github.com/repos/RPGHacker/tmx/assignees{/user}","branches_url":"https://api.github.com/repos/RPGHacker/tmx/branches{/branch}","tags_url":"https://api.github.com/repos/RPGHacker/tmx/tags","blobs_url":"https://api.github.com/repos/RPGHacker/tmx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RPGHacker/tmx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RPGHacker/tmx/git/refs{/sha}","trees_url":"https://api.github.com/repos/RPGHacker/tmx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RPGHacker/tmx/statuses/{sha}","languages_url":"https://api.github.com/repos/RPGHacker/tmx/languages","stargazers_url":"https://api.github.com/repos/RPGHacker/tmx/stargazers","contributors_url":"https://api.github.com/repos/RPGHacker/tmx/contributors","subscribers_url":"https://api.github.com/repos/RPGHacker/tmx/subscribers","subscription_url":"https://api.github.com/repos/RPGHacker/tmx/subscription","commits_url":"https://api.github.com/repos/RPGHacker/tmx/commits{/sha}","git_commits_url":"https://api.github.com/repos/RPGHacker/tmx/git/commits{/sha}","comments_url":"https://api.github.com/repos/RPGHacker/tmx/comments{/number}","issue_comment_url":"https://api.github.com/repos/RPGHacker/tmx/issues/comments{/number}","contents_url":"https://api.github.com/repos/RPGHacker/tmx/contents/{+path}","compare_url":"https://api.github.com/repos/RPGHacker/tmx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RPGHacker/tmx/merges","archive_url":"https://api.github.com/repos/RPGHacker/tmx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RPGHacker/tmx/downloads","issues_url":"https://api.github.com/repos/RPGHacker/tmx/issues{/number}","pulls_url":"https://api.github.com/repos/RPGHacker/tmx/pulls{/number}","milestones_url":"https://api.github.com/repos/RPGHacker/tmx/milestones{/number}","notifications_url":"https://api.github.com/repos/RPGHacker/tmx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RPGHacker/tmx/labels{/name}","releases_url":"https://api.github.com/repos/RPGHacker/tmx/releases{/id}","created_at":"2015-05-11T18:18:59Z","updated_at":"2015-05-11T18:19:00Z","pushed_at":"2015-05-14T17:59:14Z","git_url":"git://github.com/RPGHacker/tmx.git","ssh_url":"git@github.com:RPGHacker/tmx.git","clone_url":"https://github.com/RPGHacker/tmx.git","svn_url":"https://github.com/RPGHacker/tmx","homepage":null,"size":365,"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":"baylej:master","ref":"master","sha":"a83a47fc1568889287192bc37c1c1d310e73dd7c","user":{"login":"baylej","id":3799637,"avatar_url":"https://avatars.githubusercontent.com/u/3799637?v=3","gravatar_id":"","url":"https://api.github.com/users/baylej","html_url":"https://github.com/baylej","followers_url":"https://api.github.com/users/baylej/followers","following_url":"https://api.github.com/users/baylej/following{/other_user}","gists_url":"https://api.github.com/users/baylej/gists{/gist_id}","starred_url":"https://api.github.com/users/baylej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baylej/subscriptions","organizations_url":"https://api.github.com/users/baylej/orgs","repos_url":"https://api.github.com/users/baylej/repos","events_url":"https://api.github.com/users/baylej/events{/privacy}","received_events_url":"https://api.github.com/users/baylej/received_events","type":"User","site_admin":false},"repo":{"id":8659490,"name":"tmx","full_name":"baylej/tmx","owner":{"login":"baylej","id":3799637,"avatar_url":"https://avatars.githubusercontent.com/u/3799637?v=3","gravatar_id":"","url":"https://api.github.com/users/baylej","html_url":"https://github.com/baylej","followers_url":"https://api.github.com/users/baylej/followers","following_url":"https://api.github.com/users/baylej/following{/other_user}","gists_url":"https://api.github.com/users/baylej/gists{/gist_id}","starred_url":"https://api.github.com/users/baylej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baylej/subscriptions","organizations_url":"https://api.github.com/users/baylej/orgs","repos_url":"https://api.github.com/users/baylej/repos","events_url":"https://api.github.com/users/baylej/events{/privacy}","received_events_url":"https://api.github.com/users/baylej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/baylej/tmx","description":"C tmx map loader","fork":false,"url":"https://api.github.com/repos/baylej/tmx","forks_url":"https://api.github.com/repos/baylej/tmx/forks","keys_url":"https://api.github.com/repos/baylej/tmx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baylej/tmx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baylej/tmx/teams","hooks_url":"https://api.github.com/repos/baylej/tmx/hooks","issue_events_url":"https://api.github.com/repos/baylej/tmx/issues/events{/number}","events_url":"https://api.github.com/repos/baylej/tmx/events","assignees_url":"https://api.github.com/repos/baylej/tmx/assignees{/user}","branches_url":"https://api.github.com/repos/baylej/tmx/branches{/branch}","tags_url":"https://api.github.com/repos/baylej/tmx/tags","blobs_url":"https://api.github.com/repos/baylej/tmx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baylej/tmx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baylej/tmx/git/refs{/sha}","trees_url":"https://api.github.com/repos/baylej/tmx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baylej/tmx/statuses/{sha}","languages_url":"https://api.github.com/repos/baylej/tmx/languages","stargazers_url":"https://api.github.com/repos/baylej/tmx/stargazers","contributors_url":"https://api.github.com/repos/baylej/tmx/contributors","subscribers_url":"https://api.github.com/repos/baylej/tmx/subscribers","subscription_url":"https://api.github.com/repos/baylej/tmx/subscription","commits_url":"https://api.github.com/repos/baylej/tmx/commits{/sha}","git_commits_url":"https://api.github.com/repos/baylej/tmx/git/commits{/sha}","comments_url":"https://api.github.com/repos/baylej/tmx/comments{/number}","issue_comment_url":"https://api.github.com/repos/baylej/tmx/issues/comments{/number}","contents_url":"https://api.github.com/repos/baylej/tmx/contents/{+path}","compare_url":"https://api.github.com/repos/baylej/tmx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baylej/tmx/merges","archive_url":"https://api.github.com/repos/baylej/tmx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baylej/tmx/downloads","issues_url":"https://api.github.com/repos/baylej/tmx/issues{/number}","pulls_url":"https://api.github.com/repos/baylej/tmx/pulls{/number}","milestones_url":"https://api.github.com/repos/baylej/tmx/milestones{/number}","notifications_url":"https://api.github.com/repos/baylej/tmx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baylej/tmx/labels{/name}","releases_url":"https://api.github.com/repos/baylej/tmx/releases{/id}","created_at":"2013-03-08T20:44:05Z","updated_at":"2015-05-11T10:40:14Z","pushed_at":"2015-05-14T17:59:15Z","git_url":"git://github.com/baylej/tmx.git","ssh_url":"git@github.com:baylej/tmx.git","clone_url":"https://github.com/baylej/tmx.git","svn_url":"https://github.com/baylej/tmx","homepage":null,"size":897,"stargazers_count":14,"watchers_count":14,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/baylej/tmx/pulls/7"},"html":{"href":"https://github.com/baylej/tmx/pull/7"},"issue":{"href":"https://api.github.com/repos/baylej/tmx/issues/7"},"comments":{"href":"https://api.github.com/repos/baylej/tmx/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/baylej/tmx/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/baylej/tmx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/baylej/tmx/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/baylej/tmx/statuses/d0d5ec0028feac20802f44a5f4f3b6654b89084d"}}}}