Skip to content

Commit 9ed5048

Browse files
committed
Setup cstring methods
1 parent e3c8007 commit 9ed5048

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cstring.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ static PyMappingMethods cstring_as_mapping = {
192192
.mp_subscript = cstring_subscript,
193193
};
194194

195+
static PyMethodDef cstring_methods[] = {
196+
{0},
197+
};
198+
195199
static PyTypeObject cstring_type = {
196200
PyVarObject_HEAD_INIT(NULL, 0)
197201
.tp_name = "cstring",
@@ -207,6 +211,7 @@ static PyTypeObject cstring_type = {
207211
.tp_hash = cstring_hash,
208212
.tp_as_sequence = &cstring_as_sequence,
209213
.tp_as_mapping = &cstring_as_mapping,
214+
.tp_methods = cstring_methods,
210215
};
211216

212217
static struct PyModuleDef module = {

0 commit comments

Comments
 (0)