diff options
Diffstat (limited to 'gnu/lib/libg++/libio')
-rw-r--r-- | gnu/lib/libg++/libio/filedoalloc.c | 4 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/fileops.c | 16 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/floatconv.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/genops.c | 12 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iofclose.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iofgetpos.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iofread.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iofscanf.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iofsetpos.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iogetdelim.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iogetline.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/ioignore.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iopadn.c | 6 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iopopen.c | 4 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/ioprims.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/ioprintf.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/ioseekoff.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/ioseekpos.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/ioungetc.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iovfprintf.c | 4 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/iovfscanf.c | 2 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/outfloat.c | 10 | ||||
-rw-r--r-- | gnu/lib/libg++/libio/strops.c | 4 |
23 files changed, 45 insertions, 45 deletions
diff --git a/gnu/lib/libg++/libio/filedoalloc.c b/gnu/lib/libg++/libio/filedoalloc.c index a85b846..92c5105 100644 --- a/gnu/lib/libg++/libio/filedoalloc.c +++ b/gnu/lib/libg++/libio/filedoalloc.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free @@ -74,7 +74,7 @@ _IO_file_doallocate(fp) if (_IO_cleanup_registration_needed) (*_IO_cleanup_registration_needed)(); - + if (fp->_fileno < 0 || fp->_jumps->__stat(fp, &st) < 0) { couldbetty = 0; diff --git a/gnu/lib/libg++/libio/fileops.c b/gnu/lib/libg++/libio/fileops.c index 2bd7c24..332a0da 100644 --- a/gnu/lib/libg++/libio/fileops.c +++ b/gnu/lib/libg++/libio/fileops.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free @@ -68,14 +68,14 @@ extern int errno; (The pointers save_gptr() and save_egptr() are the values of gptr() and egptr() at the time putback mode was entered.) The OS position corresponds to that of save_egptr(). - + LINE BUFFERED OUTPUT: During line buffered output, pbase()==base() && epptr()==base(). However, ptr() may be anywhere between base() and ebuf(). This forces a call to filebuf::overflow(int C) on every put. If there is more space in the buffer, and C is not a '\n', then C is inserted, and pptr() incremented. - + UNBUFFERED STREAMS: If a filebuf is unbuffered(), the _shortbuf[1] is used as the buffer. */ @@ -108,7 +108,7 @@ _IO_file_close_it(fp) _IO_unsave_markers(fp); status = fp->_jumps->__close(fp); - + /* Free buffer. */ _IO_setb(fp, NULL, NULL, 0); _IO_setg(fp, NULL, NULL, NULL); @@ -228,7 +228,7 @@ _IO_do_write(fp, data, to_do) unpredictable. */ fp->_offset = _IO_pos_BAD; else if (fp->_IO_read_end != fp->_IO_write_base) - { + { _IO_pos_t new_pos = fp->_jumps->__seek(fp, fp->_IO_write_base - fp->_IO_read_end, 1); if (new_pos == _IO_pos_BAD) return EOF; @@ -337,7 +337,7 @@ _IO_file_sync(fp) /* char* ptr = cur_ptr(); */ if (fp->_IO_write_ptr > fp->_IO_write_base) if (_IO_do_flush(fp)) return EOF; - delta = fp->_IO_read_ptr - fp->_IO_read_end; + delta = fp->_IO_read_ptr - fp->_IO_read_end; if (delta != 0) { #ifdef TODO @@ -643,7 +643,7 @@ _IO_file_xsputn(f, data, n) if (_IO_do_write(f, s, count) == EOF) return n - to_do; to_do = dont_write; - + /* Now write out the remainder. Normally, this will fit in the buffer, but it's somewhat messier for line-buffered files, so we let _IO_default_xsputn handle the general case. */ @@ -710,7 +710,7 @@ _IO_file_xsgetn(fp, data, n) else fp->_flags |= _IO_ERR_SEEN, count = 0; } - + s += count; more -= count; } diff --git a/gnu/lib/libg++/libio/floatconv.c b/gnu/lib/libg++/libio/floatconv.c index ff300bb..acd6998 100644 --- a/gnu/lib/libg++/libio/floatconv.c +++ b/gnu/lib/libg++/libio/floatconv.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/genops.c b/gnu/lib/libg++/libio/genops.c index 469694c..71989a5 100644 --- a/gnu/lib/libg++/libio/genops.c +++ b/gnu/lib/libg++/libio/genops.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free @@ -589,7 +589,7 @@ int _IO_get_column(fp) register _IO_FILE *fp; { - if (fp->_cur_column) + if (fp->_cur_column) return _IO_adjust_column(fp->_cur_column - 1, fp->_IO_write_base, fp->_IO_write_ptr - fp->_IO_write_base); @@ -636,7 +636,7 @@ _IO_cleanup () So it is possible that other static destructord might want to write to cout - and they're supposed to be able to do so. - The following will make the standard streambufs be unbuffered, + The following will make the standard streambufs be unbuffered, which forces any output from late destructors to be written out. */ _IO_unbuffer_all (); } @@ -652,7 +652,7 @@ void _IO_init_marker(marker, fp) marker->_pos = fp->_IO_read_ptr - fp->_IO_read_end; else marker->_pos = fp->_IO_read_ptr - fp->_IO_read_base; - + /* Should perhaps sort the chain? */ marker->_next = fp->_markers; fp->_markers = marker; @@ -776,7 +776,7 @@ _IO_default_pbackfail(fp, c) /* Need to handle a filebuf in write mode (switch to read mode). FIXME!*/ if (_IO_have_backup(fp) && !_IO_in_backup(fp)) _IO_switch_to_backup_area(fp); - + if (!_IO_have_backup(fp)) { /* No backup buffer: allocate one. */ @@ -860,7 +860,7 @@ _IO_default_write(fp, data, n) struct __io_defs { __io_defs() { } ~__io_defs() { _IO_cleanup(); } -}; +}; __io_defs io_defs__; #endif diff --git a/gnu/lib/libg++/libio/iofclose.c b/gnu/lib/libg++/libio/iofclose.c index 03be451..d8ad3a6 100644 --- a/gnu/lib/libg++/libio/iofclose.c +++ b/gnu/lib/libg++/libio/iofclose.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/iofgetpos.c b/gnu/lib/libg++/libio/iofgetpos.c index ac417f5..f345463 100644 --- a/gnu/lib/libg++/libio/iofgetpos.c +++ b/gnu/lib/libg++/libio/iofgetpos.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/iofread.c b/gnu/lib/libg++/libio/iofread.c index 4bfe717..9cb633e 100644 --- a/gnu/lib/libg++/libio/iofread.c +++ b/gnu/lib/libg++/libio/iofread.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/iofscanf.c b/gnu/lib/libg++/libio/iofscanf.c index 5daef91..fc43d7e 100644 --- a/gnu/lib/libg++/libio/iofscanf.c +++ b/gnu/lib/libg++/libio/iofscanf.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/iofsetpos.c b/gnu/lib/libg++/libio/iofsetpos.c index 0a6fff2..5f2023b 100644 --- a/gnu/lib/libg++/libio/iofsetpos.c +++ b/gnu/lib/libg++/libio/iofsetpos.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/iogetdelim.c b/gnu/lib/libg++/libio/iogetdelim.c index 3dc5cd1..42527ff 100644 --- a/gnu/lib/libg++/libio/iogetdelim.c +++ b/gnu/lib/libg++/libio/iogetdelim.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1994 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/iogetline.c b/gnu/lib/libg++/libio/iogetline.c index dcaa4a1..9ca1b70 100644 --- a/gnu/lib/libg++/libio/iogetline.c +++ b/gnu/lib/libg++/libio/iogetline.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/ioignore.c b/gnu/lib/libg++/libio/ioignore.c index 1b26503..70479e2 100644 --- a/gnu/lib/libg++/libio/ioignore.c +++ b/gnu/lib/libg++/libio/ioignore.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/iopadn.c b/gnu/lib/libg++/libio/iopadn.c index 84dcee6..77b7af7 100644 --- a/gnu/lib/libg++/libio/iopadn.c +++ b/gnu/lib/libg++/libio/iopadn.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free @@ -40,7 +40,7 @@ _IO_padn(fp, pad, count) const char *padptr; register int i; _IO_size_t written = 0, w; - + if (pad == ' ') padptr = blanks; else if (pad == '0') @@ -57,7 +57,7 @@ _IO_padn(fp, pad, count) if (w != PADSIZE) return written; } - + if (i > 0) { w = _IO_sputn(fp, padptr, i); diff --git a/gnu/lib/libg++/libio/iopopen.c b/gnu/lib/libg++/libio/iopopen.c index dfa3482..99a9145 100644 --- a/gnu/lib/libg++/libio/iopopen.c +++ b/gnu/lib/libg++/libio/iopopen.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free @@ -170,7 +170,7 @@ _IO_proc_close(fp) _IO_proc_file **ptr = &proc_file_chain; _IO_pid_t wait_pid; int status = -1; - + /* Unlink from proc_file_chain. */ for ( ; *ptr != NULL; ptr = &(*ptr)->next) { diff --git a/gnu/lib/libg++/libio/ioprims.c b/gnu/lib/libg++/libio/ioprims.c index 4c41ed8..8164ba3 100644 --- a/gnu/lib/libg++/libio/ioprims.c +++ b/gnu/lib/libg++/libio/ioprims.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/ioprintf.c b/gnu/lib/libg++/libio/ioprintf.c index 519785a..69dce3e 100644 --- a/gnu/lib/libg++/libio/ioprintf.c +++ b/gnu/lib/libg++/libio/ioprintf.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/ioseekoff.c b/gnu/lib/libg++/libio/ioseekoff.c index 7ebf183..c409586 100644 --- a/gnu/lib/libg++/libio/ioseekoff.c +++ b/gnu/lib/libg++/libio/ioseekoff.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/ioseekpos.c b/gnu/lib/libg++/libio/ioseekpos.c index a99b703..54a36b2 100644 --- a/gnu/lib/libg++/libio/ioseekpos.c +++ b/gnu/lib/libg++/libio/ioseekpos.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/ioungetc.c b/gnu/lib/libg++/libio/ioungetc.c index b52e4a2..0b13e6d 100644 --- a/gnu/lib/libg++/libio/ioungetc.c +++ b/gnu/lib/libg++/libio/ioungetc.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/iovfprintf.c b/gnu/lib/libg++/libio/iovfprintf.c index e3fb2da..4ee12e0 100644 --- a/gnu/lib/libg++/libio/iovfprintf.c +++ b/gnu/lib/libg++/libio/iovfprintf.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free @@ -132,7 +132,7 @@ helper_vfprintf(fp, fmt0, ap) hp->_IO_write_end = buf+_IO_BUFSIZ; hp->_IO_file_flags = _IO_MAGIC|_IO_NO_READS; hp->_jumps = &_IO_helper_jumps; - + /* Now print to helper instead. */ result = _IO_vfprintf(hp, fmt0, ap); diff --git a/gnu/lib/libg++/libio/iovfscanf.c b/gnu/lib/libg++/libio/iovfscanf.c index 85168af..909f1ac 100644 --- a/gnu/lib/libg++/libio/iovfscanf.c +++ b/gnu/lib/libg++/libio/iovfscanf.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free diff --git a/gnu/lib/libg++/libio/outfloat.c b/gnu/lib/libg++/libio/outfloat.c index 7f4559b..83101b5 100644 --- a/gnu/lib/libg++/libio/outfloat.c +++ b/gnu/lib/libg++/libio/outfloat.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free @@ -132,7 +132,7 @@ int _IO_outfloat(value, sb, type, width, precision, flags, precision = 0; show_dot = 0; } - + /* dtoa truncates trailing zeroes. Set the variable trailing_zeroes to the number of 0's we have to add (after the decimal point). */ if (skip_zeroes) @@ -146,7 +146,7 @@ int _IO_outfloat(value, sb, type, width, precision, flags, trailing_zeroes = useful_digits <= decpt ? precision - decpt : precision-useful_digits; if (trailing_zeroes < 0) trailing_zeroes = 0; - + if (trailing_zeroes != 0 || useful_digits > decpt) show_dot = 1; if (sign_mode == 0) @@ -155,14 +155,14 @@ int _IO_outfloat(value, sb, type, width, precision, flags, print_sign = sign ? '-' : '+'; else /* if (sign_mode == ' ') */ print_sign = sign ? '-' : ' '; - + /* Calculate the width (before padding). */ unpadded_width = (print_sign != 0) + trailing_zeroes + exponent_size + show_dot + useful_digits + (decpt > useful_digits ? decpt - useful_digits : decpt > 0 ? 0 : 1 - decpt); - + padding = width > unpadded_width ? width - unpadded_width : 0; if (padding > 0 && pad_kind != _IO_LEFT && pad_kind != _IO_INTERNAL) PADN(fill, padding); /* Default (right) adjust */ diff --git a/gnu/lib/libg++/libio/strops.c b/gnu/lib/libg++/libio/strops.c index f507343..1332d0b 100644 --- a/gnu/lib/libg++/libio/strops.c +++ b/gnu/lib/libg++/libio/strops.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1993 Free Software Foundation This file is part of the GNU IO Library. This library is free @@ -195,7 +195,7 @@ _IO_str_count (fp) if (put_len < ((_IO_strfile*)fp)->_s._len) put_len = ((_IO_strfile*)fp)->_s._len; return put_len; -} +} _IO_pos_t _IO_str_seekoff(fp, offset, mode) |