Skip to content

Commit

Permalink
Renaming Parrot_get_HLL_name() to Parrot_hll_get_HLL_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandobrito committed Nov 29, 2010
1 parent f7134de commit f89a69a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/embed.pod
Expand Up @@ -682,7 +682,7 @@ The list may also be augmented if additional functionality is required.

=item C<Parrot_get_HLL_id>

=item C<Parrot_get_HLL_name>
=item C<Parrot_hll_get_HLL_name>

=item C<Parrot_hll_get_HLL_namespace>

Expand Down
4 changes: 2 additions & 2 deletions include/parrot/hll.h
Expand Up @@ -38,7 +38,7 @@ INTVAL Parrot_get_HLL_id(PARROT_INTERP, ARGIN_NULLOK(STRING *hll_name))
PARROT_EXPORT
PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
STRING * Parrot_get_HLL_name(PARROT_INTERP, INTVAL id)
STRING * Parrot_hll_get_HLL_name(PARROT_INTERP, INTVAL id)
__attribute__nonnull__(1);

PARROT_EXPORT
Expand Down Expand Up @@ -76,7 +76,7 @@ void Parrot_hll_init_HLL(PARROT_INTERP)
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_get_HLL_id __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_get_HLL_name __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
#define ASSERT_ARGS_Parrot_hll_get_HLL_name __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_hll_get_HLL_namespace __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
Expand Down
8 changes: 4 additions & 4 deletions src/hll.c
Expand Up @@ -222,7 +222,7 @@ Parrot_get_HLL_id(PARROT_INTERP, ARGIN_NULLOK(STRING *hll_name))

/*
=item C<STRING * Parrot_get_HLL_name(PARROT_INTERP, INTVAL id)>
=item C<STRING * Parrot_hll_get_HLL_name(PARROT_INTERP, INTVAL id)>
Returns the STRING name of the HLL with the given C<id> number. If the id
is out of range or does not exist, the NULL value is returned instead. Note
Expand All @@ -236,9 +236,9 @@ PARROT_EXPORT
PARROT_WARN_UNUSED_RESULT
PARROT_CAN_RETURN_NULL
STRING *
Parrot_get_HLL_name(PARROT_INTERP, INTVAL id)
Parrot_hll_get_HLL_name(PARROT_INTERP, INTVAL id)
{
ASSERT_ARGS(Parrot_get_HLL_name)
ASSERT_ARGS(Parrot_hll_get_HLL_name)
PMC * const hll_info = interp->HLL_info;
const INTVAL nelements = VTABLE_elements(interp, hll_info);

Expand Down Expand Up @@ -445,7 +445,7 @@ Parrot_hll_regenerate_HLL_namespaces(PARROT_INTERP)
if (PMC_IS_NULL(ns_hash) ||
ns_hash->vtable->base_type == enum_class_Undef)
{
STRING * hll_name = Parrot_get_HLL_name(interp, hll_id);
STRING * hll_name = Parrot_hll_get_HLL_name(interp, hll_id);
if (!hll_name)
continue;

Expand Down
2 changes: 1 addition & 1 deletion src/pmc/callcontext.pmc
Expand Up @@ -994,7 +994,7 @@ return current Namespace
else if (STRING_equal(INTERP, key, CONST_STRING(INTERP, "current_hll"))) {
GET_ATTR_current_HLL(INTERP, SELF, hll);
value = Parrot_pmc_new(interp, Parrot_hll_get_ctx_HLL_type(interp, enum_class_String));
VTABLE_set_string_native(interp, value, Parrot_get_HLL_name(INTERP, hll));
VTABLE_set_string_native(interp, value, Parrot_hll_get_HLL_name(INTERP, hll));
}
else
Parrot_ex_throw_from_c_args(INTERP, NULL,
Expand Down
2 changes: 1 addition & 1 deletion src/pmc/sub.pmc
Expand Up @@ -709,7 +709,7 @@ Archives the subroutine.
sub->ns_entry_name = CONST_STRING(INTERP, "");
VTABLE_push_string(INTERP, info, sub->ns_entry_name);

hll_name = Parrot_get_HLL_name(INTERP, sub->HLL_id);
hll_name = Parrot_hll_get_HLL_name(INTERP, sub->HLL_id);
if (!hll_name)
hll_name = CONST_STRING(INTERP, "");
VTABLE_push_string(INTERP, info, hll_name);
Expand Down

0 comments on commit f89a69a

Please sign in to comment.