Lines Matching refs:FILE
40 // This file is only used for testing the stand-alone preparser
42 // The first argument must be the path of a JavaScript source file, or
52 // This source file is preparsed and tested against the expectations, and if
55 // The source file must contain only ASCII characters (UTF-8 isn't supported).
56 // The file is read into memory, so it should have a reasonable size.
103 bool ReadBuffer(FILE* source, void* buffer, size_t length) {
109 bool WriteBuffer(FILE* dest, const void* buffer, size_t length) {
327 // Open JS file.
328 FILE* input = fopen(filename, "rb");
330 perror("ERROR: Error opening file");
334 // Find length of JS file.
342 // Read JS file into memory buffer.
345 perror("ERROR: Reading file");
355 // Preparse input file.