* cppfiles.c: Fix formatting.

From-SVN: r59245
This commit is contained in:
Kazu Hirata 2002-11-19 06:55:04 +00:00 committed by Kazu Hirata
parent f3226a9001
commit dc65cd609e
2 changed files with 16 additions and 15 deletions

View File

@ -1,3 +1,7 @@
2002-11-19 Kazu Hirata <kazu@cs.umass.edu>
* cppfiles.c: Fix formatting.
2002-11-19 Jason Thorpe <thorpej@wasabisystems.com>
* gcc.c (The Specs Language): Document spec functions.

View File

@ -77,8 +77,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#undef strcmp
/* This structure is used for the table of all includes. */
struct include_file
{
struct include_file {
const char *name; /* actual path name of file */
const cpp_hashnode *cmacro; /* macro, if any, preventing reinclusion. */
const struct search_path *foundhere;
@ -106,7 +105,7 @@ struct include_file
included again. If it's NEVER_REREAD, the file is never to be
included again. Otherwise it is a macro hashnode, and the file is
to be included again if the macro is defined. */
#define NEVER_REREAD ((const cpp_hashnode *)-1)
#define NEVER_REREAD ((const cpp_hashnode *) -1)
#define DO_NOT_REREAD(inc) \
((inc)->cmacro && ((inc)->cmacro == NEVER_REREAD \
|| (inc)->cmacro->type == NT_MACRO))
@ -168,7 +167,7 @@ static void
destroy_node (v)
splay_tree_value v;
{
struct include_file *f = (struct include_file *)v;
struct include_file *f = (struct include_file *) v;
if (f)
{
@ -416,7 +415,7 @@ read_include_file (pfile, inc)
if (SHOULD_MMAP (size, pagesize))
{
buf = (uchar *) mmap (0, size, PROT_READ, MAP_PRIVATE, inc->fd, 0);
if (buf == (uchar *)-1)
if (buf == (uchar *) -1)
goto perror_fail;
inc->mapped = 1;
}
@ -642,7 +641,7 @@ report_missing_guard (n, b)
void *b;
{
struct include_file *f = (struct include_file *) n->value;
int *bannerp = (int *)b;
int *bannerp = (int *) b;
if (f && f->cmacro == 0 && f->include_count == 1)
{
@ -830,8 +829,7 @@ search_from (pfile, type)
such as DOS. The format of the file name map file is just a series
of lines with two tokens on each line. The first token is the name
to map, and the second token is the actual name to use. */
struct file_name_map
{
struct file_name_map {
struct file_name_map *map_next;
char *map_from;
char *map_to;
@ -851,10 +849,10 @@ read_filename_string (ch, f)
len = 20;
set = alloc = xmalloc (len + 1);
if (! is_space(ch))
if (! is_space (ch))
{
*set++ = ch;
while ((ch = getc (f)) != EOF && ! is_space(ch))
while ((ch = getc (f)) != EOF && ! is_space (ch))
{
if (set - alloc == len)
{
@ -871,8 +869,7 @@ read_filename_string (ch, f)
}
/* This structure holds a linked list of file name maps, one per directory. */
struct file_name_map_list
{
struct file_name_map_list {
struct file_name_map_list *map_list_next;
char *map_list_name;
struct file_name_map *map_list_map;
@ -918,10 +915,10 @@ read_name_map (pfile, dirname)
char *from, *to;
struct file_name_map *ptr;
if (is_space(ch))
if (is_space (ch))
continue;
from = read_filename_string (ch, f);
while ((ch = getc (f)) != EOF && is_hspace(ch))
while ((ch = getc (f)) != EOF && is_hspace (ch))
;
to = read_filename_string (ch, f);