Skip to content

Commit

Permalink
fix various typos, use FLOATVAL_FMT directly in imcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Sep 12, 2012
1 parent eca83f5 commit a38401c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions compilers/imcc/optimizer.c
Expand Up @@ -928,7 +928,6 @@ IMCC_subst_constants(ARGMOD(imc_info_t *imcc), ARGMOD(IMC_Unit *unit),

size_t i;
char op[20];
const char *fmt = FLOATVAL_FMT;
const char *debug_fmt = NULL; /* gcc -O uninit warn */
int found, branched;

Expand Down Expand Up @@ -1040,7 +1039,7 @@ IMCC_subst_constants(ARGMOD(imc_info_t *imcc), ARGMOD(IMC_Unit *unit),
r[1] = mk_const(imcc, b, r[0]->set);
break;
case 'N':
snprintf(b, sizeof (b), fmt, REG_NUM(imcc->interp, 0));
snprintf(b, sizeof (b), FLOATVAL_FMT, REG_NUM(imcc->interp, 0));
r[1] = mk_const(imcc, b, r[0]->set);
break;
case 'S':
Expand Down
4 changes: 2 additions & 2 deletions src/call/context.c
Expand Up @@ -235,7 +235,7 @@ init_context(ARGMOD(PMC *pmcctx), ARGIN_NULLOK(PMC *pmcold))
PARROT_ASSERT(PMC_IS_NULL(pmcold) || pmcold->vtable->base_type == enum_class_CallContext);

/*
* FIXME Invoking corotine shouldn't initialise context. So just
* FIXME Invoking coroutine shouldn't initialise context. So just
* check ctx->current_sub. If it's not null return from here
*/
if (!PMC_IS_NULL(ctx->current_sub))
Expand Down Expand Up @@ -757,7 +757,7 @@ Parrot_pcc_get_regs_used(SHIM_INTERP, ARGIN(const PMC *ctx), int type)
=item C<Regs_ni* Parrot_pcc_get_regs_ni(PARROT_INTERP, const PMC *ctx)>
Get pointer to FLOANFAL and INTVAL registers.
Get pointer to FLOATVAL and INTVAL registers.
=cut
Expand Down
2 changes: 1 addition & 1 deletion src/io/api.c
Expand Up @@ -1374,7 +1374,7 @@ Parrot_io_pprintf(PARROT_INTERP, PIOHANDLE os_handle, ARGIN(const char *s), ...)
=item C<INTVAL Parrot_io_printf(PARROT_INTERP, const char *s, ...)>
Writes a C string format with varargs to C<stdout>. This routine uses
Parrot_io_write_s to perform the actual right, and is therefore subject to
Parrot_io_write_s to perform the actual write, and is therefore subject to
all the same semantics and limitations.
=cut
Expand Down

0 comments on commit a38401c

Please sign in to comment.