Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
[cage] drop no longer useful "if (pass)" conditions from class_init f…
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Aug 14, 2009
1 parent 5eb1e9e commit 053512d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 56 deletions.
22 changes: 10 additions & 12 deletions src/pmc/wmlsboolean.pmc
Expand Up @@ -62,18 +62,16 @@ pmclass WmlsBoolean
/* Class initialization. Caches constant strings that will be used later.
*/
void class_init() {
if (pass) {
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsFloat = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsFloat"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
dynpmc_WmlsString = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsString"));
}
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsFloat = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsFloat"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
dynpmc_WmlsString = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsString"));
}

/*
Expand Down
22 changes: 10 additions & 12 deletions src/pmc/wmlsfloat.pmc
Expand Up @@ -48,18 +48,16 @@ pmclass WmlsFloat
/* Class initialization. Caches constant strings that will be used later.
*/
void class_init() {
if (pass) {
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsFloat = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsFloat"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
dynpmc_WmlsString = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsString"));
}
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsFloat = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsFloat"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
dynpmc_WmlsString = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsString"));
}

/*
Expand Down
22 changes: 10 additions & 12 deletions src/pmc/wmlsinteger.pmc
Expand Up @@ -61,18 +61,16 @@ pmclass WmlsInteger
/* Class initialization. Caches constant strings that will be used later.
*/
void class_init() {
if (pass) {
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsFloat = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsFloat"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
dynpmc_WmlsString = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsString"));
}
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsFloat = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsFloat"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
dynpmc_WmlsString = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsString"));
}

/*
Expand Down
14 changes: 6 additions & 8 deletions src/pmc/wmlsinvalid.pmc
Expand Up @@ -31,14 +31,12 @@ pmclass WmlsInvalid
/* Class initialization. Caches constant strings that will be used later.
*/
void class_init() {
if (pass) {
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
}
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
}

/*
Expand Down
22 changes: 10 additions & 12 deletions src/pmc/wmlsstring.pmc
Expand Up @@ -34,18 +34,16 @@ pmclass WmlsString
/* Class initialization. Caches constant strings that will be used later.
*/
void class_init() {
if (pass) {
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsFloat = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsFloat"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
dynpmc_WmlsString = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsString"));
}
dynpmc_WmlsBoolean = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsBoolean"));
dynpmc_WmlsFloat = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsFloat"));
dynpmc_WmlsInteger = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInteger"));
dynpmc_WmlsInvalid = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsInvalid"));
dynpmc_WmlsString = pmc_type(INTERP,
Parrot_str_new_constant(INTERP, "WmlsString"));
}

/*
Expand Down

0 comments on commit 053512d

Please sign in to comment.