#define SOME_RECURSION 1
#define TOTAL_SIZE_RECURSION 2
-static void sv_size(pTHX_ struct state *, pPATH, const SV *const, const int recurse);
+static bool sv_size(pTHX_ struct state *, pPATH, const SV *const, const int recurse);
typedef enum {
OPc_NULL, /* 0 */
}
-static void
+static bool
sv_size(pTHX_ struct state *const st, pPATH, const SV * const orig_thing,
const int recurse) {
const SV *thing = orig_thing;
U32 type;
if(!check_new(st, orig_thing))
- return;
+ return 0;
type = SvTYPE(thing);
if (type > SVt_LAST) {
warn("Devel::Size: Unknown variable type: %d encountered\n", type);
- return;
+ return 1;
}
NPathPushNode(thing, NPtype_SV);
ADD_SIZE(st, "sv_head", sizeof(SV));
magic_size(aTHX_ thing, st, NPathLink("MG"));
}
- return;
+ return 1;
}
static void