version 1.4, 2016/12/14 21:47:59 |
version 1.4.8.1, 2018/04/16 01:58:53 |
|
|
/* input_file.c - Deal with Input Files - |
/* input_file.c - Deal with Input Files - |
Copyright (C) 1987-2015 Free Software Foundation, Inc. |
Copyright (C) 1987-2016 Free Software Foundation, Inc. |
|
|
This file is part of GAS, the GNU Assembler. |
This file is part of GAS, the GNU Assembler. |
|
|
Line 42 int preprocess = 0; |
|
Line 42 int preprocess = 0; |
|
/* We use static data: the data area is not sharable. */ |
/* We use static data: the data area is not sharable. */ |
|
|
static FILE *f_in; |
static FILE *f_in; |
static char *file_name; |
static const char *file_name; |
|
|
/* Struct for saving the state of this module for file includes. */ |
/* Struct for saving the state of this module for file includes. */ |
struct saved_file |
struct saved_file |
{ |
{ |
FILE * f_in; |
FILE * f_in; |
char * file_name; |
const char * file_name; |
int preprocess; |
int preprocess; |
char * app_save; |
char * app_save; |
}; |
}; |
Line 81 input_file_push (void) |
|
Line 81 input_file_push (void) |
|
{ |
{ |
struct saved_file *saved; |
struct saved_file *saved; |
|
|
saved = (struct saved_file *) xmalloc (sizeof *saved); |
saved = XNEW (struct saved_file); |
|
|
saved->f_in = f_in; |
saved->f_in = f_in; |
saved->file_name = file_name; |
saved->file_name = file_name; |
Line 111 input_file_pop (char *arg) |
|
Line 111 input_file_pop (char *arg) |
|
free (arg); |
free (arg); |
} |
} |
|
|
|
/* Open the specified file, "" means stdin. Filename must not be null. */ |
|
|
void |
void |
input_file_open (char *filename, /* "" means use stdin. Must not be 0. */ |
input_file_open (const char *filename, |
int pre) |
int pre) |
{ |
{ |
int c; |
int c; |