Changeset e5e9888
- Timestamp:
- May 22, 2010, 10:37:26 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 22e02cd
- Parents:
- 98d7757
- git-author:
- Nelson Elhage <nelhage@mit.edu> (05/22/10 18:19:35)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/22/10 22:37:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tester.c
r98d7757 re5e9888 53 53 54 54 if (argc > 1) { 55 char *code;56 FILE *f;55 ENTER; 56 SAVETMPS; 57 57 58 58 if (strcmp(argv[1], "-le") == 0 && argc > 2) { … … 62 62 */ 63 63 moreswitches("l"); 64 code = argv[2];64 eval_pv(argv[2], true); 65 65 } else { 66 f = fopen(argv[1], "r");67 if (!f) {68 perror(argv[1]);69 status = 1;70 goto out;71 }72 code = owl_slurp(f);73 66 sv_setpv(get_sv("0", false), argv[1]); 67 sv_setpv(get_sv("main::test_prog", TRUE), argv[1]); 68 69 eval_pv("do $main::test_prog; die($@) if($@)", true); 74 70 } 75 76 ENTER;77 SAVETMPS;78 79 eval_pv(code, true);80 71 81 72 status = 0;
Note: See TracChangeset
for help on using the changeset viewer.