antirez/lua-cmsgpack — pull request #37 by mattsta (2014-12-12 22:50:30+00:00)
Title: Remove static function declarations

:heart: `gsed -i 's/^static //' *.c` :heart:

All tests pass: https://travis-ci.org/mattsta/lua-cmsgpack/builds/43889542

Before:
```haskell
matt@ununoctium:~/repos/lua-cmsgpack% git blame lua_cmsgpack.c |grep static
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 69) static void memrevifle(void *ptr, size_t len) {
067a2581 lua_cmsgpack.c (Matt Stancliff 2014-04-06 22:14:08 -0400 99) static void *mp_realloc(lua_State *L, void *target, size_t osize,size_t nsize) {
067a2581 lua_cmsgpack.c (Matt Stancliff 2014-04-06 22:14:08 -0400 108) static mp_buf *mp_buf_new(lua_State *L) {
067a2581 lua_cmsgpack.c (Matt Stancliff 2014-04-06 22:14:08 -0400 120) static void mp_buf_append(mp_buf *buf, const unsigned char *s, size_t len) {
6deb4496 lua_cmsgpack.c (Francois Perrad 2012-11-02 10:12:15 +0100 156) static void mp_cur_init(mp_cur *cursor, const unsigned char *s, size_t len) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 176) static void mp_encode_bytes(mp_buf *buf, const unsigned char *s, size_t len) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 201) static void mp_encode_double(mp_buf *buf, double d) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 219) static void mp_encode_int(mp_buf *buf, int64_t n) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 291) static void mp_encode_array(mp_buf *buf, int64_t n) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 314) static void mp_encode_map(mp_buf *buf, int64_t n) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 339) static void mp_encode_lua_string(lua_State *L, mp_buf *buf) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 347) static void mp_encode_lua_bool(lua_State *L, mp_buf *buf) {
155a6bac lua_cmsgpack.c (Matt Stancliff 2014-04-05 15:16:10 -0400 353) static void mp_encode_lua_integer(lua_State *L, mp_buf *buf) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 365) static void mp_encode_lua_number(lua_State *L, mp_buf *buf) {
1a25f5c5 lua_msgpack.c (antirez 2012-02-20 13:29:50 +0100 375) static void mp_encode_lua_type(lua_State *L, mp_buf *buf, int level);
1a25f5c5 lua_msgpack.c (antirez 2012-02-20 13:29:50 +0100 378) static void mp_encode_lua_table_as_array(lua_State *L, mp_buf *buf, int level) {
1a25f5c5 lua_msgpack.c (antirez 2012-02-20 13:29:50 +0100 394) static void mp_encode_lua_table_as_map(lua_State *L, mp_buf *buf, int level) {
7cac5f59 lua_msgpack.c (antirez 2012-02-20 15:20:07 +0100 421) static int table_is_an_array(lua_State *L) {
1a25f5c5 lua_msgpack.c (antirez 2012-02-20 13:29:50 +0100 464) static void mp_encode_lua_table(lua_State *L, mp_buf *buf, int level) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 471) static void mp_encode_lua_null(lua_State *L, mp_buf *buf) {
1a25f5c5 lua_msgpack.c (antirez 2012-02-20 13:29:50 +0100 479) static void mp_encode_lua_type(lua_State *L, mp_buf *buf, int level) {
^32c6149 lua_msgpack.c (antirez 2012-02-19 17:18:37 +0100 509) static int mp_pack(lua_State *L) {
507f353d lua_cmsgpack.c (Matt Stancliff 2014-04-05 23:26:02 -0400 776) static int mp_unpack_full(lua_State *L, int limit, int offset) {
507f353d lua_cmsgpack.c (Matt Stancliff 2014-04-05 23:26:02 -0400 829) static int mp_unpack(lua_State *L) {
507f353d lua_cmsgpack.c (Matt Stancliff 2014-04-05 23:26:02 -0400 833) static int mp_unpack_one(lua_State *L) {
507f353d lua_cmsgpack.c (Matt Stancliff 2014-04-05 23:26:02 -0400 840) static int mp_unpack_limit(lua_State *L) {
ed6abff9 lua_cmsgpack.c (Matt Stancliff 2014-04-05 14:59:40 -0400 849) static int mp_safe(lua_State *L) {
507f353d lua_cmsgpack.c (Matt Stancliff 2014-04-05 23:26:02 -0400 872) static const struct luaL_Reg cmds[] = {
507f353d lua_cmsgpack.c (Matt Stancliff 2014-04-05 23:26:02 -0400 880) static int luaopen_create(lua_State *L) {
```

After:
```haskell
matt@ununoctium:~/repos/lua-cmsgpack% git blame lua_cmsgpack.c |grep static
matt@ununoctium:~/repos/lua-cmsgpack%
```