version 1.33, 2014/11/03 12:48:37 |
version 1.34, 2015/12/05 18:31:17 |
|
|
static void |
static void |
free_input_stream(struct input_stream *istream) |
free_input_stream(struct input_stream *istream) |
{ |
{ |
if (istream->F && fileno(istream->F) != STDIN_FILENO) |
if (istream->F) { |
(void)fclose(istream->F); |
if (ferror(istream->F)) |
|
Parse_Error(PARSE_FATAL, "Read error"); |
|
if (fileno(istream->F) != STDIN_FILENO) |
|
(void)fclose(istream->F); |
|
} |
free(istream->str); |
free(istream->str); |
/* Note we can't free the file names, as they are embedded in GN |
/* Note we can't free the file names, as they are embedded in GN |
* for error reports. */ |
* for error reports. */ |