{"action":"closed","issue":{"url":"https://api.github.com/repos/diegonehab/luasocket/issues/103","labels_url":"https://api.github.com/repos/diegonehab/luasocket/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/diegonehab/luasocket/issues/103/comments","events_url":"https://api.github.com/repos/diegonehab/luasocket/issues/103/events","html_url":"https://github.com/diegonehab/luasocket/issues/103","id":37888684,"number":103,"title":"create amalgamative version of luasocket.","user":{"login":"starwing","id":114483,"avatar_url":"https://avatars.githubusercontent.com/u/114483?v=3","gravatar_id":"","url":"https://api.github.com/users/starwing","html_url":"https://github.com/starwing","followers_url":"https://api.github.com/users/starwing/followers","following_url":"https://api.github.com/users/starwing/following{/other_user}","gists_url":"https://api.github.com/users/starwing/gists{/gist_id}","starred_url":"https://api.github.com/users/starwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starwing/subscriptions","organizations_url":"https://api.github.com/users/starwing/orgs","repos_url":"https://api.github.com/users/starwing/repos","events_url":"https://api.github.com/users/starwing/events{/privacy}","received_events_url":"https://api.github.com/users/starwing/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-07-15T14:30:32Z","updated_at":"2015-08-24T19:11:34Z","closed_at":"2015-08-24T19:11:34Z","body":"Hi,\r\n\r\nI'm try to make luasocket build easily, in such way:\r\n- using #ifdef but not -D from makefile\r\n- add a amalgamative file to allow one-command build luasocket.\r\n\r\nbut I meet some issue with the second way, because so many functions in luasocket's source has the same name, they prefixed by `global_` and `meth_`, so I hope to do these changes:\r\n- first, move static `luaL_Reg func[]` array and `optset`/`optget` array to function, so it can not conflict any more.\r\n- then, I hope to add more spec prefix to functions, such as `tcp_` or `udp_`, I just think it needn't split global function or method function.\r\n\r\nif that change is acceptable, I will make a pull request for review and merge, thanks!"}}