diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2000-09-09 20:23:15 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2000-09-09 20:23:15 +0000 |
commit | c488923f169eed9ac1f7cb8e7d15e53eee97681d (patch) | |
tree | 08de5c944c25973e230b8845d118bc4c38ce6c76 /gas/input-file.c | |
parent | 27985c55a4696863ba25242f76b92845ff643c5c (diff) | |
download | gdb-c488923f169eed9ac1f7cb8e7d15e53eee97681d.zip gdb-c488923f169eed9ac1f7cb8e7d15e53eee97681d.tar.gz gdb-c488923f169eed9ac1f7cb8e7d15e53eee97681d.tar.bz2 |
2000-09-09 Kazu Hirata <kazu@hxi.com>
* input-file.c: Fix formatting.
* itbl-ops.c: Likewise.
* messages.c: Likewise.
Diffstat (limited to 'gas/input-file.c')
-rw-r--r-- | gas/input-file.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gas/input-file.c b/gas/input-file.c index 634f6f7..339c4da 100644 --- a/gas/input-file.c +++ b/gas/input-file.c @@ -65,27 +65,27 @@ struct saved_file char *app_save; }; -/* These hooks accomodate most operating systems. */ +/* These hooks accomodate most operating systems. */ -void +void input_file_begin () { f_in = (FILE *) 0; } -void +void input_file_end () { } -/* Return BUFFER_SIZE. */ -unsigned int +/* Return BUFFER_SIZE. */ +unsigned int input_file_buffer_size () { return (BUFFER_SIZE); } -int +int input_file_is_open () { return f_in != (FILE *) 0; @@ -130,7 +130,7 @@ input_file_pop (arg) void input_file_open (filename, pre) - char *filename; /* "" means use stdin. Must not be 0. */ + char *filename; /* "" means use stdin. Must not be 0. */ int pre; { int c; @@ -138,16 +138,16 @@ input_file_open (filename, pre) preprocess = pre; - assert (filename != 0); /* Filename may not be NULL. */ + assert (filename != 0); /* Filename may not be NULL. */ if (filename[0]) - { /* We have a file name. Suck it and see. */ + { /* We have a file name. Suck it and see. */ f_in = fopen (filename, "r"); file_name = filename; } else - { /* use stdin for the input file. */ + { /* use stdin for the input file. */ f_in = stdin; - file_name = _("{standard input}"); /* For error messages. */ + file_name = _("{standard input}"); /* For error messages. */ } if (f_in == (FILE *) 0) { @@ -180,7 +180,7 @@ input_file_open (filename, pre) } /* Close input file. */ -void +void input_file_close () { if (f_in != NULL) @@ -212,9 +212,9 @@ input_file_get (buf, buflen) char * input_file_give_next_buffer (where) - char *where; /* Where to place 1st character of new buffer. */ + char *where; /* Where to place 1st character of new buffer. */ { - char *return_value; /* -> Last char of what we read, + 1. */ + char *return_value; /* -> Last char of what we read, + 1. */ register int size; if (f_in == (FILE *) 0) |