{"action":"opened","issue":{"url":"https://api.github.com/repos/lloyd/yajl/issues/176","labels_url":"https://api.github.com/repos/lloyd/yajl/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/lloyd/yajl/issues/176/comments","events_url":"https://api.github.com/repos/lloyd/yajl/issues/176/events","html_url":"https://github.com/lloyd/yajl/issues/176","id":115562873,"number":176,"title":"Request: Alternative non-vararg functions to set options","user":{"login":"nncarlson","id":7231327,"avatar_url":"https://avatars.githubusercontent.com/u/7231327?v=3","gravatar_id":"","url":"https://api.github.com/users/nncarlson","html_url":"https://github.com/nncarlson","followers_url":"https://api.github.com/users/nncarlson/followers","following_url":"https://api.github.com/users/nncarlson/following{/other_user}","gists_url":"https://api.github.com/users/nncarlson/gists{/gist_id}","starred_url":"https://api.github.com/users/nncarlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nncarlson/subscriptions","organizations_url":"https://api.github.com/users/nncarlson/orgs","repos_url":"https://api.github.com/users/nncarlson/repos","events_url":"https://api.github.com/users/nncarlson/events{/privacy}","received_events_url":"https://api.github.com/users/nncarlson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-06T18:39:08Z","updated_at":"2015-11-06T18:39:08Z","closed_at":null,"body":"The existing yajl_config() and yajl_gen_config() vararg interfaces are very nice for C/C++ code, but they are a problem to interface to from some other languages.  In my case I had been treating yajl_config as if its interace were (yajl_handle_h, yajl_option, int) and this worked for awhile, but then broke for one new compiler.  To fix this, I'm now carrying around a tiny bit of extra C code (yajl_ext.c) in my project [yajl-fort](https://github.com/nncarlson/yajl-fort) that provides alternative non-vararg functions to set options.  It would be very nice if something like those could be incorporated into yajl directly.  I'm not suggesting changing yajl_config/yajl_gen_config, only *adding* some non-vararg alternatives that can be used by those writing yajl bindings for other languages."}}