{"action":"created","issue":{"url":"https://api.github.com/repos/jbangert/nail/issues/3","labels_url":"https://api.github.com/repos/jbangert/nail/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jbangert/nail/issues/3/comments","events_url":"https://api.github.com/repos/jbangert/nail/issues/3/events","html_url":"https://github.com/jbangert/nail/issues/3","id":65970090,"number":3,"title":"last version that builds successfully","user":{"login":"smherwig","id":1203656,"avatar_url":"https://avatars.githubusercontent.com/u/1203656?v=3","gravatar_id":"","url":"https://api.github.com/users/smherwig","html_url":"https://github.com/smherwig","followers_url":"https://api.github.com/users/smherwig/followers","following_url":"https://api.github.com/users/smherwig/following{/other_user}","gists_url":"https://api.github.com/users/smherwig/gists{/gist_id}","starred_url":"https://api.github.com/users/smherwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smherwig/subscriptions","organizations_url":"https://api.github.com/users/smherwig/orgs","repos_url":"https://api.github.com/users/smherwig/repos","events_url":"https://api.github.com/users/smherwig/events{/privacy}","received_events_url":"https://api.github.com/users/smherwig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T17:10:03Z","updated_at":"2015-04-02T18:10:02Z","closed_at":null,"body":"Hi, I'm a graduate student at UMD and using NAIL for a class project.  It looks really cool.\r\n\r\nI cloned the most recent version and successfully built nail.  I started writing an HTTP parser, but, when compiling it, the linker complains of an undefined reference to parse_request(NailArena_*, NailStream).  (request is a struct I have in http.nail)\r\n\r\nIt looks like the signature for parse_request used to be generated as parse_http(NailArea *, uint8_t *, ssize_t) (i.e., took a buffer); but now the signature is parse_foo(Nail_Arena *, NailStream *).  Correct me if I'm wrong, but it doesn't look like all of the NailStream code has been written.\r\n\r\nWhat was the last version that was just in C, before introducing the C++ templating?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/jbangert/nail/issues/comments/88995438","html_url":"https://github.com/jbangert/nail/issues/3#issuecomment-88995438","issue_url":"https://api.github.com/repos/jbangert/nail/issues/3","id":88995438,"user":{"login":"jbangert","id":748071,"avatar_url":"https://avatars.githubusercontent.com/u/748071?v=3","gravatar_id":"","url":"https://api.github.com/users/jbangert","html_url":"https://github.com/jbangert","followers_url":"https://api.github.com/users/jbangert/followers","following_url":"https://api.github.com/users/jbangert/following{/other_user}","gists_url":"https://api.github.com/users/jbangert/gists{/gist_id}","starred_url":"https://api.github.com/users/jbangert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbangert/subscriptions","organizations_url":"https://api.github.com/users/jbangert/orgs","repos_url":"https://api.github.com/users/jbangert/repos","events_url":"https://api.github.com/users/jbangert/events{/privacy}","received_events_url":"https://api.github.com/users/jbangert/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T18:10:02Z","updated_at":"2015-04-02T18:10:02Z","body":"Hello,\n\nnice to hear from you! The old 'c-style' code generator is still in the \ngithub - just 'ln -s nail cnail' and invoke nail as cnail. For an \nexample using C++, look at /examples/dns_cpp which uses NailMemStream \n(include include/nail/memstream.hh). The issue is that the generator \ncode will be in C no matter what (I hacked together most of the C++ \nsupport to do IPv6 better and support different types of input streams).\n\nA lot of transforms haven't been ported and the build system in general \nis a bit wonky - sorry about that.\n\nRegards,\nJulian\n\nOn 02/04/15 13:10, smherwig wrote:\n>\n> Hi, I'm a graduate student at UMD and using NAIL for a class project. \n> It looks really cool.\n>\n> I cloned the most recent version and successfully built nail. I \n> started writing an HTTP parser, but, when compiling it, the linker \n> complains of an undefined reference to parse_request(NailArena_*, \n> NailStream). (request is a struct I have in http.nail)\n>\n> It looks like the signature for parse_request used to be generated as \n> parse_http(NailArea *, uint8_t *, ssize_t) (i.e., took a buffer); but \n> now the signature is parse_foo(Nail_Arena *, NailStream *). Correct me \n> if I'm wrong, but it doesn't look like all of the NailStream code has \n> been written.\n>\n> What was the last version that was just in C, before introducing the \n> C++ templating?\n>\n> Thanks\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/jbangert/nail/issues/3>.\n>\n\n"}}