Skip to content

Commit 908b7cf

Browse files
committed
Do not add implicit semicolon for struct base
1 parent 8e7820a commit 908b7cf

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def CPyExtType(name, code, **kwargs):
509509
{includes}
510510
511511
typedef struct {{
512-
{struct_base};
512+
{struct_base}
513513
{cmembers}
514514
}} {name}Object;
515515

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_bytes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __iter__(self):
8686
BytesSubclass = CPyExtType(
8787
"BytesSubclass",
8888
'',
89-
struct_base='PyBytesObject bytes',
89+
struct_base='PyBytesObject bytes;',
9090
tp_itemsize='sizeof(char)',
9191
tp_base='&PyBytes_Type',
9292
tp_new='0',
@@ -97,7 +97,7 @@ def __iter__(self):
9797
ByteArraySubclass = CPyExtType(
9898
"ByteArraySubclass",
9999
'',
100-
struct_base='PyByteArrayObject bytes',
100+
struct_base='PyByteArrayObject bytes;',
101101
tp_itemsize='sizeof(char)',
102102
tp_base='&PyByteArray_Type',
103103
tp_new='0',

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_err.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def raise_erorr():
203203
ExceptionSubclass = CPyExtType(
204204
"ExceptionSubclass",
205205
'',
206-
struct_base='PyBaseExceptionObject base',
206+
struct_base='PyBaseExceptionObject base;',
207207
tp_new='0',
208208
tp_alloc='0',
209209
tp_free='0',

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_float.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __float__(self):
8181
NativeFloatSubclass = CPyExtType(
8282
'TestFloatNativeFloatSubclass',
8383
'',
84-
struct_base='PyFloatObject base',
84+
struct_base='PyFloatObject base;',
8585
tp_base="&PyFloat_Type",
8686
tp_new='0',
8787
tp_alloc='0',

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ def test_float_subclass2(self):
686686
return PyUnicode_FromFormat("native %S", PyFloat_FromDouble(nfs->myobval));
687687
}
688688
""",
689-
struct_base="PyFloatObject base",
689+
struct_base="PyFloatObject base;",
690690
cmembers="double myobval;",
691691
tp_base="&PyFloat_Type",
692692
tp_new="fp_tp_new",

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_tuple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __repr__(self):
8989
return result;
9090
}
9191
""",
92-
struct_base='PyTupleObject tuple',
92+
struct_base='PyTupleObject tuple;',
9393
tp_base='&PyTuple_Type',
9494
tp_new='tuple_subclass_new',
9595
tp_alloc='0',

0 commit comments

Comments
 (0)