Skip to content

Commit

Permalink
remove duplicate declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Dec 30, 2023
1 parent 0a4fa77 commit 1f08729
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions lupa/_lupa.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2544,6 +2544,7 @@ cdef int byte_writer(lua_State* L, void* new_data, size_t new_size, void* desc)
bd.data = data
bd.length = bd.length + new_size
else:
bd.length = 0
free(data)
return 1
return 0
4 changes: 0 additions & 4 deletions lupa/luaapi.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -273,22 +273,18 @@ cdef extern from "lua.h" nogil:
cdef extern from "lstate.h" nogil:
cppclass Proto:
pass
ctypedef Proto Proto

ctypedef struct LClosure:
Proto* p

union Closure:
LClosure l
ctypedef Closure Closure

union GCObject:
Closure cl
ctypedef GCObject GCObject

union Value:
GCObject* gc
ctypedef Value Value

ctypedef struct lua_TValue:
Value value
Expand Down

0 comments on commit 1f08729

Please sign in to comment.