/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/_patiencediff_c.c

Add appveyor configuration and fix build of extensions on Windows.

Merged from https://code.launchpad.net/~jelmer/brz/appveyor/+merge/364019

Show diffs side-by-side

added added

removed removed

Lines of Context:
1163
1163
 
1164
1164
 
1165
1165
static PyTypeObject PatienceSequenceMatcherType = {
1166
 
    PyObject_HEAD_INIT(NULL)
1167
 
    .tp_name = "PatienceSequenceMatcher",
1168
 
    .tp_basicsize = sizeof(PatienceSequenceMatcher),
1169
 
    .tp_dealloc = (destructor)PatienceSequenceMatcher_dealloc,
1170
 
    .tp_flags = Py_TPFLAGS_DEFAULT,
1171
 
    .tp_doc = PatienceSequenceMatcher_doc,
1172
 
    .tp_methods = PatienceSequenceMatcher_methods,
1173
 
    .tp_new = PatienceSequenceMatcher_new,
 
1166
    PyVarObject_HEAD_INIT(NULL, 0)
 
1167
    "PatienceSequenceMatcher", /* tp_name */
 
1168
    sizeof(PatienceSequenceMatcher), /* tp_basicsize */
 
1169
    sizeof(PyObject *), /* tp_itemsize */
 
1170
    (destructor)PatienceSequenceMatcher_dealloc, /* tp_dealloc */
 
1171
    0, /* tp_print */
 
1172
    0, /* tp_getattr */
 
1173
    0, /* tp_setattr */
 
1174
    0, /* tp_compare */
 
1175
    0, /* tp_repr */
 
1176
    0, /* tp_as_number */
 
1177
    0, /* tp_as_sequence */
 
1178
    0, /* tp_as_mapping */
 
1179
    0, /* tp_hash */
 
1180
    0, /* tp_call */
 
1181
    0,                                           /* tp_str */
 
1182
    0,                                           /* tp_getattro */
 
1183
    0,                                           /* tp_setattro */
 
1184
    0,                                           /* tp_as_buffer */
 
1185
    Py_TPFLAGS_DEFAULT, /* tp_flags */
 
1186
    PatienceSequenceMatcher_doc, /* tp_doc */
 
1187
    0,          /* tp_traverse */
 
1188
    0,                                           /* tp_clear */
 
1189
    0,                     /* tp_richcompare */
 
1190
    0,                                           /* tp_weaklistoffset */
 
1191
    // without implementing tp_iter, Python will fall back to PySequence*
 
1192
    // which seems to work ok, we may need something faster/lighter in the
 
1193
    // future.
 
1194
    0,                                           /* tp_iter */
 
1195
    0,                                           /* tp_iternext */
 
1196
    PatienceSequenceMatcher_methods, /* tp_methods */
 
1197
    0,                                           /* tp_members */
 
1198
    0,                                           /* tp_getset */
 
1199
    0,                                           /* tp_base */
 
1200
    0,                                           /* tp_dict */
 
1201
    0,                                           /* tp_descr_get */
 
1202
    0,                                           /* tp_descr_set */
 
1203
    0,                                           /* tp_dictoffset */
 
1204
    0,                                           /* tp_init */
 
1205
    0,                                           /* tp_alloc */
 
1206
    PatienceSequenceMatcher_new, /* tp_new */
1174
1207
};
1175
1208
 
1176
1209