Skip to content

Commit

Permalink
Code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Nov 27, 2011
2 parents 40d9cee + 81774d0 commit 31b8edb
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 204 deletions.
12 changes: 2 additions & 10 deletions frontend/parrot2/main.c
Expand Up @@ -613,16 +613,8 @@ parseflags(Parrot_PMC interp, int argc, ARGIN(const char *argv[]),
exit(EXIT_FAILURE);
break;
case OPT_RUNTIME_PREFIX:
{
/* TODO Can we do this in prt0.pir? */
Parrot_String runtimepath;
char * runtimepath_c;
Parrot_api_get_runtime_path(interp, &runtimepath);
Parrot_api_string_export_ascii(interp, runtimepath, &runtimepath_c);
fprintf(stdout, "%s", runtimepath_c);
Parrot_api_string_free_exported_ascii(interp, runtimepath_c);
exit(EXIT_SUCCESS);
}
pargs[nargs++] = "--runtime-prefix";
break;
case 'V':
pargs[nargs++] = "-V";
break;
Expand Down

0 comments on commit 31b8edb

Please sign in to comment.