Skip to content

Commit

Permalink
[extend] more Parrot_get_root_namespace cleanup
Browse files Browse the repository at this point in the history
make headerizer.
  • Loading branch information
Reini Urban committed Dec 5, 2014
1 parent 47186a0 commit d31acc8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion compilers/imcc/imc.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ void IMCC_push_parser_state(imc_info_t *info, STRING *filename, int is_file,
int is_pasm);
void IMCC_pop_parser_state(imc_info_t *info, void *yyscanner);

/* globals store the state between individual e_pbc_emit calls */
typedef struct subs_t {
IMC_Unit *unit;
struct subs_t *prev;
Expand All @@ -416,6 +415,7 @@ typedef struct code_segment_t {
SymHash key_consts; /* this seg's cached key constants */
} code_segment_t;

/* globals store the state between individual e_pbc_emit calls */
typedef struct _imcc_globals_t {
code_segment_t *cs; /* current code segment */
code_segment_t *first; /* first code segment */
Expand Down
3 changes: 1 addition & 2 deletions compilers/imcc/pbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ imcc_globals_destroy(SHIM_INTERP, SHIM(int ex), ARGMOD(void *param))
ASSERT_ARGS(imcc_globals_destroy)
imc_info_t * const imcc = (imc_info_t*)param;

/* This is an allowed condition? See TT #629 */
/* In an exit within :immediate there will no globals. See TT #629 */
if (imcc->globals) {
code_segment_t *cs = imcc->globals->cs;

Expand All @@ -408,7 +408,6 @@ imcc_globals_destroy(SHIM_INTERP, SHIM(int ex), ARGMOD(void *param))
}
imcc->globals->cs = NULL;
}

}


Expand Down
6 changes: 0 additions & 6 deletions include/parrot/extend.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ void Parrot_ext_try(PARROT_INTERP,
ARGIN_NULLOK(void *data))
__attribute__nonnull__(1);

PARROT_EXPORT
Parrot_PMC Parrot_get_root_namespace(PARROT_INTERP)
__attribute__nonnull__(1);

PARROT_EXPORT
Parrot_Int Parrot_PMC_typenum(PARROT_INTERP,
ARGIN_NULLOK(const char *_class))
Expand All @@ -93,8 +89,6 @@ Parrot_Int Parrot_PMC_typenum(PARROT_INTERP,
, PARROT_ASSERT_ARG(signature))
#define ASSERT_ARGS_Parrot_ext_try __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_get_root_namespace __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_PMC_typenum __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
Expand Down
7 changes: 4 additions & 3 deletions src/interp/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,14 @@ Parrot_interp_really_destroy(PARROT_INTERP, SHIM(int exit_code), SHIM(void *arg)

/*
* now all objects that need timely destruction should be finalized
* so terminate the event loop
* so terminate the event loop.
*/
/* if (!interp->parent_interpreter) {
#if 0
if (!interp->parent_interpreter) {
PIO_internal_shutdown(interp);
Parrot_kill_event_loop(interp);
}
*/
#endif

/* we destroy all child interpreters and the last one too,
* if the --leak-test commandline was given, and there is no
Expand Down

0 comments on commit d31acc8

Please sign in to comment.