Skip to content

Commit

Permalink
Use Cython enum for __PREALLOCED_BUFS (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham authored Oct 15, 2024
1 parent 2e8feae commit 7bb12a1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions uvloop/handles/stream.pyx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
cdef extern from *:
'''
enum {__PREALLOCED_BUFS = 4};
'''
const bint __PREALLOCED_BUFS
cdef enum:
__PREALLOCED_BUFS = 4


@cython.no_gc_clear
Expand Down

0 comments on commit 7bb12a1

Please sign in to comment.