Navigation Menu

Skip to content

Commit

Permalink
Teach PL/Parrot to make Parcel-flavored sausage
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Jun 29, 2010
1 parent 69998ba commit 1dfc30a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plparrot.c
Expand Up @@ -545,6 +545,9 @@ plparrot_make_sausage(Parrot_Interp interp, Parrot_PMC pmc, FunctionCallInfo fci
return Float8GetDatum(Parrot_PMC_get_number(interp,pmc));
} else if (Parrot_PMC_isa(interp,pmc,create_string_const("Rat"))) {
return Float8GetDatum(Parrot_PMC_get_number(interp,pmc));
} else if (Parrot_PMC_isa(interp,pmc,create_string_const("Parcel"))) {
/* XXX TODO: Should check for an empty Parcel, but this works for now */
return (Datum) 0;
} else {
elog(NOTICE,"CANNOT MAKE SAUSAGE");
return (Datum) 0;
Expand Down

0 comments on commit 1dfc30a

Please sign in to comment.