Update README.md
This commit is contained in:
parent
2fa773fd84
commit
f733d2f2b3
@ -3,6 +3,12 @@
|
|||||||
## Documentation
|
## Documentation
|
||||||
[API](http://moteus.github.com/lcurl)
|
[API](http://moteus.github.com/lcurl)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```
|
||||||
|
luarocks install lcurl --server=https://rocks.moonscript.org/dev
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```Lua
|
```Lua
|
||||||
|
@ -98,7 +98,7 @@ void lcurl_util_slist_to_table(lua_State *L, struct curl_slist* list){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void lcurl_util_set_const(lua_State *L, const lcurl_const_t *reg){
|
void lcurl_util_set_const(lua_State *L, const lcurl_const_t *reg){
|
||||||
lcurl_const_t *p;
|
const lcurl_const_t *p;
|
||||||
for(p = reg; p->name; ++p){
|
for(p = reg; p->name; ++p){
|
||||||
lua_pushstring(L, p->name);
|
lua_pushstring(L, p->name);
|
||||||
lua_pushnumber(L, p->value);
|
lua_pushnumber(L, p->value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user