Skip to content

Commit

Permalink
Use Cython enum for __PREALLOCED_BUFS
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Oct 15, 2024
1 parent 2e8feae commit a61ed1f
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 a61ed1f

Please sign in to comment.