diff options
| author | Diego Nehab <diego.nehab@gmail.com> | 2019-03-11 00:08:41 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-11 00:08:41 -0300 |
| commit | c89a931cc31f219d51dd32a8a253d5ee3fbd31be (patch) | |
| tree | 1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/buffer.h | |
| parent | 2af4872a401cbd0c1255e19ee26620f0431dd9f5 (diff) | |
| parent | 21514304be9e98a4386cb18542582068a59c5586 (diff) | |
| download | luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.gz luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.bz2 luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.zip | |
Merge pull request #271 from ewestbrook/pragmavisibility
Use visibility pragma around declarations instead of attributes on definitions
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/buffer.h b/src/buffer.h index 1281bb3..a0901fc 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -15,8 +15,7 @@ | |||
| 15 | * The module is built on top of the I/O abstraction defined in io.h and the | 15 | * The module is built on top of the I/O abstraction defined in io.h and the |
| 16 | * timeout management is done with the timeout.h interface. | 16 | * timeout management is done with the timeout.h interface. |
| 17 | \*=========================================================================*/ | 17 | \*=========================================================================*/ |
| 18 | #include "lua.h" | 18 | #include "luasocket.h" |
| 19 | |||
| 20 | #include "io.h" | 19 | #include "io.h" |
| 21 | #include "timeout.h" | 20 | #include "timeout.h" |
| 22 | 21 | ||
| @@ -34,12 +33,20 @@ typedef struct t_buffer_ { | |||
| 34 | } t_buffer; | 33 | } t_buffer; |
| 35 | typedef t_buffer *p_buffer; | 34 | typedef t_buffer *p_buffer; |
| 36 | 35 | ||
| 36 | #ifndef _WIN32 | ||
| 37 | #pragma GCC visibility push(hidden) | ||
| 38 | #endif | ||
| 39 | |||
| 37 | int buffer_open(lua_State *L); | 40 | int buffer_open(lua_State *L); |
| 38 | void buffer_init(p_buffer buf, p_io io, p_timeout tm); | 41 | void buffer_init(p_buffer buf, p_io io, p_timeout tm); |
| 39 | int buffer_meth_send(lua_State *L, p_buffer buf); | ||
| 40 | int buffer_meth_receive(lua_State *L, p_buffer buf); | ||
| 41 | int buffer_meth_getstats(lua_State *L, p_buffer buf); | 42 | int buffer_meth_getstats(lua_State *L, p_buffer buf); |
| 42 | int buffer_meth_setstats(lua_State *L, p_buffer buf); | 43 | int buffer_meth_setstats(lua_State *L, p_buffer buf); |
| 44 | int buffer_meth_send(lua_State *L, p_buffer buf); | ||
| 45 | int buffer_meth_receive(lua_State *L, p_buffer buf); | ||
| 43 | int buffer_isempty(p_buffer buf); | 46 | int buffer_isempty(p_buffer buf); |
| 44 | 47 | ||
| 48 | #ifndef _WIN32 | ||
| 49 | #pragma GCC visibility pop | ||
| 50 | #endif | ||
| 51 | |||
| 45 | #endif /* BUF_H */ | 52 | #endif /* BUF_H */ |
