File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ typedef int Py_ssize_t;
2626#define PY_SSIZE_T_MIN INT_MIN
2727#endif
2828
29+ int buffer_write_bytes (buffer_t buffer , const char * data , int size );
30+
2931int write_dict (buffer_t buffer , PyObject * dict ,
3032 unsigned char check_keys , unsigned char top_level );
3133
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ static long long millis_from_datetime(PyObject* datetime) {
124124}
125125
126126/* Just make this compatible w/ the old API. */
127- static inline int buffer_write_bytes (buffer_t buffer , const char * data , int size ) {
127+ int buffer_write_bytes (buffer_t buffer , const char * data , int size ) {
128128 if (buffer_write (buffer , data , size )) {
129129 PyErr_NoMemory ();
130130 return 0 ;
Original file line number Diff line number Diff line change 2525#include "_cbson.h"
2626#include "buffer.h"
2727
28- /* Just make this compatible w/ the old API. */
29- static inline int buffer_write_bytes (buffer_t buffer , const char * data , int size ) {
30- if (buffer_write (buffer , data , size )) {
31- PyErr_NoMemory ();
32- return 0 ;
33- }
34- return 1 ;
35- }
36-
3728/* Get an error class from the pymongo.errors module.
3829 *
3930 * Returns a new ref */
You can’t perform that action at this time.
0 commit comments