From 55cdf110de7152509d57171d34eab5d635186d34 Mon Sep 17 00:00:00 2001 From: "James K. Lowden" <jklowden@symas.com> Date: Fri, 14 Feb 2025 16:41:56 -0500 Subject: [PATCH] whitepace --- gcc/cobol/cbldiag.h | 6 +++--- gcc/cobol/cdf-copy.cc | 8 ++++---- gcc/cobol/copybook.h | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gcc/cobol/cbldiag.h b/gcc/cobol/cbldiag.h index 7fc479da151e..9ca23b4150b0 100644 --- a/gcc/cobol/cbldiag.h +++ b/gcc/cobol/cbldiag.h @@ -103,10 +103,10 @@ template <typename LOC> static void location_dump( const char func[], int line, const char tag[], const LOC& loc) { extern int yy_flex_debug; - if( yy_flex_debug && getenv("update_location") ) + if( yy_flex_debug && getenv("update_location") ) fprintf(stderr, "%s:%d: %s location (%d,%d) to (%d,%d)\n", - func, line, tag, - loc.first_line, loc.first_column, loc.last_line, loc.last_column); + func, line, tag, + loc.first_line, loc.first_column, loc.last_line, loc.last_column); } #endif // defined(yy_flex_debug) diff --git a/gcc/cobol/cdf-copy.cc b/gcc/cobol/cdf-copy.cc index a7c95e1db75e..6b1901e90dac 100644 --- a/gcc/cobol/cdf-copy.cc +++ b/gcc/cobol/cdf-copy.cc @@ -278,20 +278,20 @@ copybook_elem_t::open_file( const char directory[], bool literally ) { } else { const char *dir = directory? directory : library.name; path = xasprintf( "%s/%s", dir, source.name ); - } + } } else { path = xasprintf( "%s", source.name ); } gcc_assert(path); - + if( literally ) { dbgmsg("copybook_elem_t::open_file: trying %s", path); if( (this->fd = open(path, O_RDONLY)) == -1 ) { dbgmsg("could not open %s: %m", path); return fd; - } + } this->source.name = path; if( ! cobol_filename(this->source.name, inode_of(fd)) ) { error_msg(source.loc, "recursive copybook: '%s' includes itself", path); @@ -301,7 +301,7 @@ copybook_elem_t::open_file( const char directory[], bool literally ) { return fd; } gcc_assert( ! literally ); - + if( extensions ) { pattern = xasprintf("%s{,.cpy,.CPY,.cbl,.CBL,.cob,.COB,%s}", path, this->extensions); diff --git a/gcc/cobol/copybook.h b/gcc/cobol/copybook.h index 81a2b27eda1e..3e2cf9d934e8 100644 --- a/gcc/cobol/copybook.h +++ b/gcc/cobol/copybook.h @@ -92,7 +92,7 @@ class copybook_elem_t { int open_file( const char dir[], bool literally = false ); void extensions_add( const char ext[], const char alt[] ); - + static inline bool is_quote( const char ch ) { return ch == '\'' || ch == '"'; } @@ -145,7 +145,7 @@ class copybook_t { } if( false && value != uname ) { dbgmsg("using copybook file '%s' from environment variable '%s'", - value, name); + value, name); } return xstrdup(value); } @@ -184,9 +184,9 @@ class copybook_t { for( auto dir : directories ) { if( true ) { dbgmsg("copybook_t::open '%s' OF '%s' %s", - book.source.name, - dir? dir: ".", - book.literally.source? ", literally" : "" ); + book.source.name, + dir? dir: ".", + book.literally.source? ", literally" : "" ); } if( (fd = book.open_file(dir, book.literally.source)) != -1 ) break; } -- GitLab