Browse Source

change: zbuff,有2个函数应该是私有的(add_bytes/get_framebuffer_point)

Wendal Chen 8 months ago
parent
commit
2212914428
1 changed files with 2 additions and 2 deletions
  1. 2 2
      luat/modules/luat_lib_zbuff.c

+ 2 - 2
luat/modules/luat_lib_zbuff.c

@@ -14,7 +14,7 @@
 #include "luat_log.h"
 
 //在buff对象后添加数据,返回增加的字节数
-int add_bytes(luat_zbuff_t *buff, const char *source, size_t len)
+static int add_bytes(luat_zbuff_t *buff, const char *source, size_t len)
 {
     if (buff->len - buff->cursor < len)
         len = buff->len - buff->cursor;
@@ -76,7 +76,7 @@ int add_bytes(luat_zbuff_t *buff, const char *source, size_t len)
         return GET_POINT_##n(buff, point); \
 
 //获取某点的颜色
-uint32_t get_framebuffer_point(luat_zbuff_t *buff,uint32_t point)
+static uint32_t get_framebuffer_point(luat_zbuff_t *buff,uint32_t point)
 {
     switch (buff->bit)
     {