Use the file opened from argv[1] in preparser-process.cc
Review URL: http://codereview.chromium.org/5612006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5948 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
e868984077
commit
967a0e304b
@ -193,8 +193,8 @@ int main(int argc, char* argv[]) {
|
||||
FILE* input = stdin;
|
||||
if (argc > 1) {
|
||||
char* arg = argv[1];
|
||||
FILE* file = fopen(arg, "rb");
|
||||
if (!file) return EXIT_FAILURE;
|
||||
input = fopen(arg, "rb");
|
||||
if (input == NULL) return EXIT_FAILURE;
|
||||
}
|
||||
int status = 0;
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user