Skip to content

Commit a158835

Browse files
refactor more
1 parent 8f62067 commit a158835

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -183,49 +183,37 @@ typedef enum _JitSymType {
183183

184184

185185
typedef struct _jit_opt_known_class {
186-
struct {
187-
uint8_t tag;
188-
};
186+
uint8_t tag;
189187
uint32_t version;
190188
PyTypeObject *type;
191189
} JitOptKnownClass;
192190

193191
typedef struct _jit_opt_known_version {
194-
struct {
195-
uint8_t tag;
196-
};
192+
uint8_t tag;
197193
uint32_t version;
198194
} JitOptKnownVersion;
199195

200196
typedef struct _jit_opt_known_value {
201-
struct {
202-
uint8_t tag;
203-
};
197+
uint8_t tag;
204198
PyObject *value;
205199
} JitOptKnownValue;
206200

207201
#define MAX_SYMBOLIC_TUPLE_SIZE 7
208202

209203
typedef struct _jit_opt_tuple {
210-
struct {
211-
uint8_t tag;
212-
};
204+
uint8_t tag;
213205
uint8_t length;
214206
uint16_t items[MAX_SYMBOLIC_TUPLE_SIZE];
215207
} JitOptTuple;
216208

217209
typedef struct {
218-
struct {
219-
uint8_t tag;
220-
};
210+
uint8_t tag;
221211
bool invert;
222212
uint16_t value;
223213
} JitOptTruthiness;
224214

225215
typedef union _jit_opt_symbol {
226-
struct {
227-
uint8_t tag;
228-
};
216+
uint8_t tag;
229217
JitOptKnownClass cls;
230218
JitOptKnownValue value;
231219
JitOptKnownVersion version;

0 commit comments

Comments
 (0)