Skip to content

Commit cf1b587

Browse files
committed
sv.h Convert _SV_HEAD to legal name
1 parent 9693fc5 commit cf1b587

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sv.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ typedef struct hek HEK;
205205
/* Using C's structural equivalence to help emulate C++ inheritance here... */
206206

207207
/* start with 2 sv-head building blocks */
208-
#define _SV_HEAD(ptrtype) \
208+
#define SV_HEAD_(ptrtype) \
209209
ptrtype sv_any; /* pointer to body */ \
210210
U32 sv_refcnt; /* how many references to us */ \
211211
U32 sv_flags /* what we are */
@@ -243,51 +243,51 @@ typedef struct hek HEK;
243243
#endif
244244

245245
struct STRUCT_SV { /* struct sv { */
246-
_SV_HEAD(void*);
246+
SV_HEAD_(void*);
247247
SV_HEAD_UNION_;
248248
};
249249

250250
struct gv {
251-
_SV_HEAD(XPVGV*); /* pointer to xpvgv body */
251+
SV_HEAD_(XPVGV*); /* pointer to xpvgv body */
252252
SV_HEAD_UNION_;
253253
};
254254

255255
struct cv {
256-
_SV_HEAD(XPVCV*); /* pointer to xpvcv body */
256+
SV_HEAD_(XPVCV*); /* pointer to xpvcv body */
257257
SV_HEAD_UNION_;
258258
};
259259

260260
struct av {
261-
_SV_HEAD(XPVAV*); /* pointer to xpvav body */
261+
SV_HEAD_(XPVAV*); /* pointer to xpvav body */
262262
SV_HEAD_UNION_;
263263
};
264264

265265
struct hv {
266-
_SV_HEAD(XPVHV*); /* pointer to xpvhv body */
266+
SV_HEAD_(XPVHV*); /* pointer to xpvhv body */
267267
SV_HEAD_UNION_;
268268
};
269269

270270
struct io {
271-
_SV_HEAD(XPVIO*); /* pointer to xpvio body */
271+
SV_HEAD_(XPVIO*); /* pointer to xpvio body */
272272
SV_HEAD_UNION_;
273273
};
274274

275275
struct p5rx {
276-
_SV_HEAD(struct regexp*); /* pointer to regexp body */
276+
SV_HEAD_(struct regexp*); /* pointer to regexp body */
277277
SV_HEAD_UNION_;
278278
};
279279

280280
struct invlist {
281-
_SV_HEAD(XINVLIST*); /* pointer to xpvinvlist body */
281+
SV_HEAD_(XINVLIST*); /* pointer to xpvinvlist body */
282282
SV_HEAD_UNION_;
283283
};
284284

285285
struct object {
286-
_SV_HEAD(XPVOBJ*); /* pointer to xobject body */
286+
SV_HEAD_(XPVOBJ*); /* pointer to xobject body */
287287
SV_HEAD_UNION_;
288288
};
289289

290-
#undef _SV_HEAD
290+
#undef SV_HEAD_
291291
#undef SV_HEAD_UNION_ /* ensure no pollution */
292292

293293
/*

0 commit comments

Comments
 (0)