From: Jesse Luehrs Date: Sun, 14 Nov 2010 17:53:54 +0000 (-0600) Subject: we never use sigil for anything X-Git-Tag: 0.14~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0d56d35ee3ca35d5532184fbc62e8902a0423fac;p=gitmo%2FPackage-Stash-XS.git we never use sigil for anything --- diff --git a/Stash.xs b/Stash.xs index e1d66e1..142fa52 100644 --- a/Stash.xs +++ b/Stash.xs @@ -99,7 +99,6 @@ typedef enum { typedef struct { vartype_t type; - char sigil; char *name; } varspec_t; @@ -184,12 +183,10 @@ void _deconstruct_variable_name(char *variable, varspec_t *varspec) } if (varspec->type != VAR_NONE) { - varspec->sigil = variable[0]; varspec->name = &variable[1]; } else { varspec->type = VAR_IO; - varspec->sigil = '\0'; varspec->name = variable; } } @@ -205,12 +202,6 @@ void _deconstruct_variable_hash(HV *variable, varspec_t *varspec) varspec->name = savesvpv(*val); SAVEFREEPV(varspec->name); - val = hv_fetch(variable, "sigil", 5, 0); - if (!val) - croak("The 'sigil' key is required in variable specs"); - - varspec->sigil = (SvPV_nolen(*val))[0]; - val = hv_fetch(variable, "type", 4, 0); if (!val) croak("The 'type' key is required in variable specs");