Skip to content

Commit

Permalink
Make src/embed/pmc.c & src/embed/api.c compile with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Wahlmann committed Nov 24, 2010
1 parent b574648 commit 99428c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/embed/api.c
Expand Up @@ -156,7 +156,7 @@ PARROT_API
Parrot_Int
Parrot_api_load_bytecode_bytes(ARGMOD(PMC *interp_pmc), ARGIN(const unsigned char * const pbc), Parrot_Int bytecode_size, ARGOUT(PMC **pbcpmc))
{
EMBED_API_CALLIN(interp_pmc, interp);
EMBED_API_CALLIN(interp_pmc, interp)
PackFile * const pf = PackFile_new(interp, 0);
if (!pf)
Parrot_ex_throw_from_c_args(interp, NULL, 1, "Could not create packfile");
Expand Down
6 changes: 3 additions & 3 deletions src/embed/pmc.c
Expand Up @@ -8,7 +8,7 @@ PARROT_API
Parrot_Int
Parrot_api_pmc_deserialize(Parrot_PMC interp_pmc, Parrot_String fpmc, ARGOUT(Parrot_PMC * pmc))
{
EMBED_API_CALLIN(interp_pmc, interp);
EMBED_API_CALLIN(interp_pmc, interp)
PMC * const config = Parrot_thaw(interp, fpmc);
Parrot_set_config_hash_pmc(interp, config);
EMBED_API_CALLOUT(interp_pmc, interp);
Expand All @@ -18,7 +18,7 @@ PARROT_API
Parrot_Int
Parrot_api_pmc_deserialize_bytes(Parrot_PMC interp_pmc, ARGIN(const unsigned char * const fpmc), Parrot_Int length, ARGOUT(Parrot_PMC * pmc))
{
EMBED_API_CALLIN(interp_pmc, interp);
EMBED_API_CALLIN(interp_pmc, interp)
STRING * const fpmc_str = Parrot_str_new(interp, fpmc, length);
PMC * const config = Parrot_thaw(interp, fpmc_str);
Parrot_set_config_hash_pmc(interp, config);
Expand All @@ -29,7 +29,7 @@ PARROT_API
Parrot_Int
Parrot_api_pmc_null(Parrot_PMC interp_pmc, ARGMOD(Parrot_PMC *pmctonull))
{
EMBED_API_CALLIN(interp_pmc, interp);
EMBED_API_CALLIN(interp_pmc, interp)
*pmctonull = PMCNULL;
EMBED_API_CALLOUT(interp_pmc, interp);
}

0 comments on commit 99428c2

Please sign in to comment.