{"action":"created","issue":{"url":"https://api.github.com/repos/crystal-lang/crystal_lib/issues/41","repository_url":"https://api.github.com/repos/crystal-lang/crystal_lib","labels_url":"https://api.github.com/repos/crystal-lang/crystal_lib/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/crystal-lang/crystal_lib/issues/41/comments","events_url":"https://api.github.com/repos/crystal-lang/crystal_lib/issues/41/events","html_url":"https://github.com/crystal-lang/crystal_lib/issues/41","id":206187734,"node_id":"MDU6SXNzdWUyMDYxODc3MzQ=","number":41,"title":"va_list type support (stdargs.h)","user":{"login":"olbat","id":96066,"node_id":"MDQ6VXNlcjk2MDY2","avatar_url":"https://avatars3.githubusercontent.com/u/96066?v=4","gravatar_id":"","url":"https://api.github.com/users/olbat","html_url":"https://github.com/olbat","followers_url":"https://api.github.com/users/olbat/followers","following_url":"https://api.github.com/users/olbat/following{/other_user}","gists_url":"https://api.github.com/users/olbat/gists{/gist_id}","starred_url":"https://api.github.com/users/olbat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olbat/subscriptions","organizations_url":"https://api.github.com/users/olbat/orgs","repos_url":"https://api.github.com/users/olbat/repos","events_url":"https://api.github.com/users/olbat/events{/privacy}","received_events_url":"https://api.github.com/users/olbat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-02-08T12:42:51Z","updated_at":"2018-07-20T18:43:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hello,\r\n\r\nI'm trying to port a library that uses a `va_list` type (from [stdargs.h](https://en.wikipedia.org/wiki/Stdarg.h)) using crystal_lib.\r\n\r\nThe problem is that it generates an alias to `LibC::VaList` that doesn't seems to exists in any of crystal's lib C bindings so I get an `undefined constant LibC::VaList` at compile time.\r\n\r\nExample:\r\n```bash\r\n$ cat /tmp/test.h\r\n#include <stdarg.h>\r\nvoid test(va_list vl);\r\n\r\n$ cat test.cr\r\nrequire \"lib_c\"\r\n@[Include(\"/tmp/test.h\", prefix: \"test\", remove_prefix: false)]\r\nlib LibTest\r\nend\r\n\r\n$ crystal src/main.cr -- test.cr\r\nrequire \"lib_c\"\r\nlib LibTest\r\n  fun test(vl : VaList)\r\n  alias X__GnucVaList = LibC::VaList\r\n  alias VaList = X__GnucVaList\r\nend\r\n```\r\n\r\nAm I doing something wrong ?"},"comment":{"url":"https://api.github.com/repos/crystal-lang/crystal_lib/issues/comments/406692722","html_url":"https://github.com/crystal-lang/crystal_lib/issues/41#issuecomment-406692722","issue_url":"https://api.github.com/repos/crystal-lang/crystal_lib/issues/41","id":406692722,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjY5MjcyMg==","user":{"login":"olbat","id":96066,"node_id":"MDQ6VXNlcjk2MDY2","avatar_url":"https://avatars3.githubusercontent.com/u/96066?v=4","gravatar_id":"","url":"https://api.github.com/users/olbat","html_url":"https://github.com/olbat","followers_url":"https://api.github.com/users/olbat/followers","following_url":"https://api.github.com/users/olbat/following{/other_user}","gists_url":"https://api.github.com/users/olbat/gists{/gist_id}","starred_url":"https://api.github.com/users/olbat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olbat/subscriptions","organizations_url":"https://api.github.com/users/olbat/orgs","repos_url":"https://api.github.com/users/olbat/repos","events_url":"https://api.github.com/users/olbat/events{/privacy}","received_events_url":"https://api.github.com/users/olbat/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T18:43:15Z","updated_at":"2018-07-20T18:43:15Z","author_association":"CONTRIBUTOR","body":"Yes, I think it can be closed.\r\n\r\nI'll try to run it on the ICU binding to see how it goes :)"}}
{"actor":{"display_login":"olbat"}}