Skip to content

Commit

Permalink
Renaming Parrot_register_HLL() to Parrot_hll_register_HLL()
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandobrito committed Nov 29, 2010
1 parent 5e02476 commit 82337d1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion compilers/imcc/imcc.y
Expand Up @@ -1152,7 +1152,7 @@ hll_def:
{
STRING * const hll_name = Parrot_str_unescape(interp, $2 + 1, '"', NULL);
Parrot_pcc_set_HLL(interp, CURRENT_CONTEXT(interp),
Parrot_register_HLL(interp, hll_name));
Parrot_hll_register_HLL(interp, hll_name));

IMCC_INFO(interp)->cur_namespace = NULL;
mem_sys_free($2);
Expand Down
2 changes: 1 addition & 1 deletion compilers/imcc/imcparser.c
Expand Up @@ -3277,7 +3277,7 @@ YYSTYPE yylval;
{
STRING * const hll_name = Parrot_str_unescape(interp, (yyvsp[(2) - (2)].s) + 1, '"', NULL);
Parrot_pcc_set_HLL(interp, CURRENT_CONTEXT(interp),
Parrot_register_HLL(interp, hll_name));
Parrot_hll_register_HLL(interp, hll_name));

IMCC_INFO(interp)->cur_namespace = NULL;
mem_sys_free((yyvsp[(2) - (2)].s));
Expand Down
2 changes: 1 addition & 1 deletion docs/embed.pod
Expand Up @@ -1360,7 +1360,7 @@ The list may also be augmented if additional functionality is required.

=item C<Parrot_register_encoding>

=item C<Parrot_register_HLL>
=item C<Parrot_hll_register_HLL>

=item C<Parrot_register_HLL_type>

Expand Down
4 changes: 2 additions & 2 deletions include/parrot/hll.h
Expand Up @@ -56,7 +56,7 @@ void Parrot_regenerate_HLL_namespaces(PARROT_INTERP)
__attribute__nonnull__(1);

PARROT_EXPORT
INTVAL Parrot_register_HLL(PARROT_INTERP, ARGIN(STRING *hll_name))
INTVAL Parrot_hll_register_HLL(PARROT_INTERP, ARGIN(STRING *hll_name))
__attribute__nonnull__(1)
__attribute__nonnull__(2);

Expand Down Expand Up @@ -85,7 +85,7 @@ void Parrot_hll_init_HLL(PARROT_INTERP)
#define ASSERT_ARGS_Parrot_regenerate_HLL_namespaces \
__attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_register_HLL __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
#define ASSERT_ARGS_Parrot_hll_register_HLL __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(hll_name))
#define ASSERT_ARGS_Parrot_register_HLL_type __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
Expand Down
12 changes: 6 additions & 6 deletions src/hll.c
Expand Up @@ -60,7 +60,7 @@ static PMC* new_hll_entry(PARROT_INTERP, ARGIN_NULLOK(STRING *entry_name))
Create a new HLL information table entry.
Takes an interpreter name and (optional) entry name.
Returns a pointer to the new entry.
Used by Parrot_register_HLL.
Used by Parrot_hll_register_HLL.
=cut
Expand Down Expand Up @@ -113,12 +113,12 @@ Parrot_hll_init_HLL(PARROT_INTERP)
interp->HLL_namespace =
Parrot_pmc_new_constant(interp, enum_class_ResizablePMCArray);

Parrot_register_HLL(interp, CONST_STRING(interp, "parrot"));
Parrot_hll_register_HLL(interp, CONST_STRING(interp, "parrot"));
}

/*
=item C<INTVAL Parrot_register_HLL(PARROT_INTERP, STRING *hll_name)>
=item C<INTVAL Parrot_hll_register_HLL(PARROT_INTERP, STRING *hll_name)>
Register the HLL with the given STRING name C<hll_name> in the interpreter.
Expand All @@ -134,9 +134,9 @@ If there is an error, C<-1> is returned.

PARROT_EXPORT
INTVAL
Parrot_register_HLL(PARROT_INTERP, ARGIN(STRING *hll_name))
Parrot_hll_register_HLL(PARROT_INTERP, ARGIN(STRING *hll_name))
{
ASSERT_ARGS(Parrot_register_HLL)
ASSERT_ARGS(Parrot_hll_register_HLL)
PMC *entry, *name, *type_hash, *ns_hash, *hll_info;
INTVAL idx;

Expand Down Expand Up @@ -451,7 +451,7 @@ Parrot_regenerate_HLL_namespaces(PARROT_INTERP)

hll_name = Parrot_str_downcase(interp, hll_name);

/* XXX as in Parrot_register_HLL() this needs to be fixed to use
/* XXX as in Parrot_hll_register_HLL() this needs to be fixed to use
* the correct type of namespace. It's relatively easy to do that
* here because the typemap already exists, but it is not currently
* done for consistency.
Expand Down
2 changes: 1 addition & 1 deletion src/pmc/sub.pmc
Expand Up @@ -757,7 +757,7 @@ Unarchives the subroutine.
sub->method_name = VTABLE_shift_string(INTERP, info);
sub->ns_entry_name = VTABLE_shift_string(INTERP, info);
/* lookup or create HLL */
sub->HLL_id = Parrot_register_HLL(INTERP,
sub->HLL_id = Parrot_hll_register_HLL(INTERP,
VTABLE_shift_string(INTERP, info));
sub->comp_flags = VTABLE_shift_integer(INTERP, info);
sub->vtable_index = VTABLE_shift_integer(INTERP, info);
Expand Down

0 comments on commit 82337d1

Please sign in to comment.