Permalink
Browse files

Code cleanups

  • Loading branch information...
2 parents 40d9cee + 81774d0 commit 31b8edb15175f0e9c232adb8f566d4a267c4d389 @Whiteknight Whiteknight committed Nov 27, 2011
Showing with 83 additions and 204 deletions.
  1. +2 −10 frontend/parrot2/main.c
  2. +70 −194 frontend/parrot2/prt0.pir
  3. +11 −0 frontend/parrot2/prt0.winxed
View
@@ -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;
Oops, something went wrong.

0 comments on commit 31b8edb

Please sign in to comment.