]> gcc.gnu.org Git - gcc.git/blob - libio/ChangeLog
iostream.cc, libio.h: Convert other uses of #ifdef _G_HAVE_PRINTF_FP to #if.
[gcc.git] / libio / ChangeLog
1 Fri Oct 3 10:13:13 1997 Jason Merrill <jason@yorick.cygnus.com>
2
3 * iostream.cc, libio.h: Convert other uses of #ifdef
4 _G_HAVE_PRINTF_FP to #if.
5
6 1997-10-02 Brendan Kehoe <brendan@lisa.cygnus.com>
7
8 * iostream.cc (operator<<): Use `#if _G_HAVE_PRINTF_FP', not ifdef.
9
10 Thu Oct 2 10:36:49 1997 Jason Merrill <jason@yorick.cygnus.com>
11
12 * gen-params: Fix __printf_fp test.
13 * config/linuxlibc1.mt (gxx_includedir): Don't define.
14
15 Thu Oct 2 10:36:26 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
16
17 * config/linuxlibc1.mt (_G_CONFIG_H): Don't define.
18 * gen-params: Add test for __printf_fp.
19
20 Sun Sep 28 12:09:04 1997 Mark Mitchell <mmitchell@usa.net>
21
22 * iomanip.h: Use new friend <> syntax.
23
24 Sun Sep 28 12:04:21 1997 Jason Merrill <jason@yorick.cygnus.com>
25
26 * libio.h: Don't use _IO_LOCK_T if it's not defined.
27
28 Fri Sep 26 20:56:41 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
29
30 Based on a patch by H.J. Lu (hjl@gnu.ai.mit.edu).
31
32 * Makefile.in (STDIO_OBJECTS): New. Defined as stdfiles.o.
33 (LIBIO_OBJECTS): Add $(STDIO_OBJECTS).
34 (PICFLAG): New, empty. moved to here from config.shared.
35
36 * config.shared (DISTCLEAN): Add target-mkfrag.
37 (PICFLAG): Removed.
38
39 * configure.in (*-linux-gnulibc1): Remove warning.
40 (*-linux-gnu): Use linux.mt mtsafe.mt.
41 (alpha-*-linux*): Use mh-elfalphapic.
42
43 * gen-params (_G_ullong): Also check unsigned long long int.
44 (_G_llong): Also check long long int.
45
46 * libio.h (_IO_lock_t): Add support for the Linux libc 5.
47 (_IO_peekc): Defined as _IO_peekc_unlocked if _IO_MTSAFE_IO
48 is not defined.
49
50 * iostream.cc (__cvt_double): Fix a typo in declaration.
51 (info): Use expr != 0 to initialize the bit fields. Don't
52 initialize "extra" for the Linux libc 5.
53
54 * streambuf.h (_G_NEED_STDARG_H): Changed from _IO_NEED_STDARG_H.
55
56 * config/linux.mt (STDIO_OBJECTS): New, empty.
57 (MT_CFLAGS): Removed.
58
59 * config/linuxlibc1.mt: Rewrite. it's identical to linux.mt but
60 IO_OBJECTS mentions files not in early libc5 versions.
61
62 * config/mtsafe.mt: New.
63
64 * dbz/Makefile.in (check): Support make -j.
65
66 * tests/tFile.cc (tempfile): Fix a typo.
67
68 Fri Sep 19 11:52:25 1997 Jim Wilson <wilson@cygnus.com>
69
70 * Makefile.in (LIBIO_OBJECTS): Depend on _G_CONFIG_H.
71
72 1997-09-17 04:08 Ulrich Drepper <drepper@cygnus.com>
73
74 * iostream.cc: Add forward declaration for __cvt_double.
75 * libio.h: Define _IO_USE_DTOA is _G_HAVE_PRINTF_FP is not defined.
76 * strops.c (_IO_str_count): Correct last change.
77
78 1997-09-17 02:50 Ulrich Drepper <drepper@cygnus.com>
79
80 * libioP.h: Define __set_errno if not already defined.
81 * fileops.c: Don't try to define __set_errno, it's already defined.
82
83 1997-09-15 02:37 Ulrich Drepper <drepper@cygnus.com>
84
85 * config/linux.mt: Rewrite for use with glibc 2.
86 * config/linuxlibc1.mt: Old content of linux.mt, fir libc4 and
87 libc5.
88
89 * config.shared (COMPILE.c): Allow new flags in MT_CFLAGS be
90 passed.
91 (COMPILE.cc): Likewise.
92
93 * configure.in (*-linux*): Remove goal. We now have...
94 (*-linux-gnulibc1): For libc4 and libc5. Emit warning.
95 (*-linux-gnu)): For glibc 2.
96 Create links to find headers for multi-threading if necessary.
97
98 * fileops.c: Make thread-safe by using _IO_cleanup_region_start
99 etc to handle cancelation. Acquire locks in functions which are
100 called directly.
101 (_IO_file_read, _IO_file_write): Remove dead code.
102
103 * include/empty.h: Define stub macros for locking.
104
105 * iolibio.h: Add prototypes for obstack printing functions.
106
107 * ioseekoff.c (_IO_seekoff): Lock stream before working.
108 * ioseekpos.c (_IO_seekpos): Likewise.
109
110 * iostream.cc: Add support for long double I/O.
111 Use __printf_fp from glibc is available.
112 Use _IO_cleanup_region_start to handle cancelation correctly.
113 * iostream.h (class ostream): Change opfx and osfx to lock/unlock
114 stream
115 (class istream): Likewise for ipfx, ipfx0, ipfx1, and isfx.
116 Declare new function lock and unlock for ostream and istream.
117 * osform.cc: Use _IO_cleanup_region_start to handle cancelation
118 correctly.
119
120 * libio.h: Update from glibc version. Pretty printing.
121 * libioP.h: Likewise.
122
123 * outfloat.c: Only compile if _IO_USE_DTOA is defined.
124
125 * stdio/feof.c: Make thread safe.
126 * stdio/ferror.c: Likewise.
127 * stdio/getc.c : Likewise.
128 * stdio/putc.c : Likewise.
129 * stdio/stdio.h: Declare function of thread-safe API.
130
131 * stdio/obprintf.c: New file.
132 * stdio/vasprintf.c: New file.
133
134 * stdio-lock.h: Removed.
135
136 * stdstrbufs.c: Add definitions for thread-safe streams.
137
138 * streambuf.cc: Initialize lock.
139
140 * strops.c (_IO_str_count): Undo last change.
141
142 * tests/tFile.cc: Support parallel builds by avoiding fixed
143 name for test file.
144
145 Thu Sep 11 18:43:56 1997 Jason Merrill <jason@yorick.cygnus.com>
146
147 * Makefile.in (iostream.list): Remove STDIO_WRAP_OBJECTS.
148
149 Mon Sep 8 01:30:27 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
150
151 * libio.h: Fix typo.
152
153 Sun Sep 7 23:00:18 1997 Jim Wilson (wilson@cygnus.com)
154
155 * linux.mt (LIBIOSTREAM_DEP): Change stdio.list to stmp-stdio.
156
157 Fri Sep 5 09:58:43 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
158
159 * Makefile.in (iostream.list): Instead of adding stdio.list, add
160 STDIO_WRAP_OBJECTS.
161 (iostream.list): Lose dependency on stmp-stdio, not necessary for
162 our stuff. The stdio stuff is present here just for uniformity
163 with glibc.
164
165 Thu Sep 4 17:26:22 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
166
167 * parsestream.cc (general_parsebuf): Cast return of malloc to char*.
168
169 1997-09-04 16:11 Ulrich Drepper <drepper@cygnus.com>
170
171 Change compared to version initially intended to in:
172 * strops.c (_IO_str_count): Still use _IO_write_ptr, not
173 _IO_write_end, for now.
174
175 * iofeof.c, ioferror.c, iofflush_u.c, iogetc.c, ioputc.c, peekc.c,
176 stdio-lock.h: New files.
177
178 * include: New dir.
179 * include/empty.h: New header.
180
181 * filedoalloc.c: Update and reformat copyright.
182 Don't use DEFUN.
183 Use __set_errno throughout the code to support multi-threaded
184 programs.
185 Correct layout to follow the Coding Standard.
186 Add casts to prevent warnings.
187 * fileops.c: Likewise.
188 * genops.c: Likewise.
189 * iofclose.c: Likewise.
190 * iofdopen.c: Likewise.
191 * iofflush.c: Likewise.
192 * iofgetpos.c: Likewise.
193 * iofgets.c: Likewise.
194 * iofopen.c: Likewise.
195 * iofprintf.c: Likewise.
196 * iofputs.c: Likewise.
197 * iofread.c: Likewise.
198 * iofsetpos.c: Likewise.
199 * ioftell.c: Likewise.
200 * iofwrite.c: Likewise.
201 * iogetdelim.c: Likewise.
202 * iogetline.c: Likewise.
203 * iogets.c: Likewise.
204 * iopadn.c: Likewise.
205 * iopopen.c: Likewise.
206 * ioputs.c: Likewise.
207 * ioseekoff.c: Likewise.
208 * iosetbuffer.c: Likewise.
209 * iosetvbuf.c: Likewise.
210 * iosprintf.c: Likewise.
211 * ioungetc.c: Likewise.
212 * iovsprintf.c: Likewise.
213 * iovsscanf.c: Likewise.
214 * libio.h: Likewise.
215 * libioP.h: Likewise.
216 * stdfiles.c: Likewise.
217 * strfile.h: Likewise.
218 * strops.c: Likewise.
219
220 * Makefile.in (IO_OBJECTS): Add peekc.o, iogetc.o, ioputc.o,
221 iofeof.o, and ioferror.o.
222 (iostream.list): Depend upon stmp-stdio. Add the entries
223 from stdio.list to iostream.list.
224 (stmp-stdio): New name for what was the stdio/stdio.list rule.
225 All it now does is cd down into stdio and build stdio.list.
226
227 * configure.in (ALL): Add libiostream.a.
228
229 * libio.h [_IO_MTSFE_IO]: Include header declaring locking code.
230 Otherwise define opaque _IO_lock_t.
231 Define _IO_cookie_file.
232 Rename _IO_getc to _IO_getc_unlocked, _IO_peekc to _IO_peekc_unlocked,
233 _IO_putc to _IO_putc_unlocked, _IO_feof to _IO_feof_unclocked, and
234 _IO_ferror to _IO_ferror_unlocked.
235 Add prototypes for _IO_getc, _IO_putc, _IO_feof, _IO_ferror,
236 and _IO_peekc_locked.
237 Add declarations for _IO_flockfile, _IO_funlockfile, and
238 _IO_ftrylockfile. If !_IO_MTSAFE_IO define _IO_flockfile,
239 _IO_funlockfile, _IO_ftrylockfile, _IO_cleanup_region_start, and
240 _IO_cleanup_region_end as empty macros.
241
242 * libioP.h: Change type of finish function to take an additional int
243 argument and change declaration of finish functions.
244 Add prototypes for _IO_seekoff and _IO_seekpos.
245 If _G_HAVE_MMAP is defined use stream buffers allocated with mmap.
246 Redefine FREE_BUF and ALLOC_BUF macros to help in both situations.
247 (FILEBUF_LITERAL): If we compile for a thread-safe library also
248 initialize lock member.
249
250 * filedoalloc.c: Take care for systems already defining _POSIX_SOURCE.
251 Keep name space clean on systems which require this.
252 (_IO_file_doallocate): Adopt ALLOC_BUF call for changed semantic.
253
254 * fileops.c: Keep name space clean on systems which require this.
255 (_IO_file_attach): Don't fail if seek failed because it's used on a
256 pipe.
257 (_IO_file_underflow): Update buffer pointers before calling `read'
258 since the `read' might not return anymore.
259 (_IO_file_overflow): If stream allows no writes set error flag.
260 (_IO_seekoff): Make sure that after flushing the file pointer in
261 the underlying file is exact.
262 (_IO_file_read): Don't restart `read' syscall if it return EINTR.
263 This violates POSIX.
264 (_IO_file_write): Likewise for `write'.
265 (_IO_cleanup): Install as exit handler in glibc.
266
267 * genops.c (_IO_setb): Correctly use FREE_BUF.
268 (_IO_default_doallocate): Correctly use ALLOC_BUF.
269 (_IO_init): Initialize lock in stream structure.
270 (_IO_default_finish): Destroy lock.
271 (_IO_get_column): Don't compile since it's not needed.
272 (_IO_nobackup_default): Likewise.
273
274 * iopopen.c: Take care for systems already defining _POSIX_SOURCE.
275 Correct _IO_fork and _IO_dup2 prototypes.
276
277 * iofclose.c: Acquire lock before starting the work.
278 * iofflush.c: Likewise.
279 * iofgetpos.c: Likewise.
280 * iofgets.c: Likewise.
281 * iofputs.c: Likewise.
282 * iofread.c: Likewise.
283 * iofsetpos.c: Likewise.
284 * ioftell.c: Likewise.
285 * iofwrite.c: Likewise.
286 * iogetdelim.c: Likewise.
287 * iogets.c: Likewise.
288 * ioputs.c: Likewise.
289 * iosetbuffer.c: Likewise.
290 * iosetvbuf.c: Likewise.
291 * ioungetc.c: Likewise.
292
293 * iofdopen.c: Create and initialize lock for new stream.
294 * iofopen.c: Likewise.
295 * iopopen.c (_IO_popen): Likewise.
296 * iovsprintf.c: Likewise.
297 * iovsscanf.c: Likewise.
298
299 * genops.c: Make weak aliases for various functions.
300 * iofclose.c: Likewise.
301 * iofdopen.c: Likewise.
302 * iofflush.c: Likewise.
303 * iofgetpos.c: Likewise.
304 * iofgets.c: Likewise.
305 * iofopen.c: Likewise.
306 * iofputs.c: Likewise.
307 * iofread.c: Likewise.
308 * iofsetpos.c: Likewise.
309 * ioftell.c: Likewise.
310 * iofwrite.c: Likewise.
311 * iogetdelim.c: Likewise.
312 * iogets.c: Likewise.
313 * ioputs.c: Likewise.
314 * iosetbuffer.c: Likewise.
315 * iosetvbuf.c: Likewise.
316 * ioungetc.c: Likewise.
317 * iovsprintf.c: Likewise.
318 * iovsscanf.c: Likewise.
319
320 * iofflush_u.c: New file. fflush_unlocked implementation.
321
322 * iostream.h [_G_HAVE_LONG_DOUBLE_IO]: Declare real long double
323 output operator.
324
325 * peekc.c: New file. Implement _IO_peekc_locked function.
326
327 * stdfiles.c: If we compile for a thread-safe library also define
328 lock variable.
329
330 Tue Aug 26 12:24:01 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
331
332 * testsuite/Makefile.in (check): Don't depend on site.exp.
333 (just-check): Depend on site.exp.
334
335 Wed Aug 20 02:01:34 1997 Jason Merrill <jason@yorick.cygnus.com>
336
337 * iostream.h: Add copy assignment ops for _IO_?stream_withassign.
338
339 Tue Jul 22 10:31:41 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
340
341 * config.shared (CHECK_SUBDIRS): Use install-sh, not install.sh.
342
343 Wed Jun 25 12:20:55 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
344
345 * config.shared (DOING_GPERF): Look for this, defining TOLIBGXX
346 and LIBS for it.
347
348 Wed Jun 18 11:03:34 1997 Bob Manson <manson@charmed.cygnus.com>
349
350 * config.shared (FLAGS_TO_PASS): Don't include RUNTEST.
351
352 Tue Jun 17 22:23:48 1997 Bob Manson <manson@charmed.cygnus.com>
353
354 * config.shared (FLAGS_TO_PASS): Pass RUNTEST and RUNTESTFLAGS.
355
356 Fri May 16 21:08:53 1997 Bob Manson <manson@charmed.cygnus.com>
357
358 * iovfprintf.c: Declare __cvt_double before use.
359
360 * floatconv.c (d2b): Use _G_int32_t instead of int for the
361 e and bits parameters.
362 (_IO_strtod): Use _G_int32_t.
363
364 * gen-params: Look for NO_USE_DTOA and USE_INT32_FLAGS.
365
366 * strops.c (_IO_str_init_static): use _G_int32_t appropriately.
367
368 * libio.h: If _G_NO_USE_DTOA is set, then don't define
369 _IO_USE_DTOA.
370
371 * config/mn10200.mt: Don't use dtoa, it only works
372 for "real" doubles.
373
374 Thu May 15 17:44:12 1997 Bob Manson <manson@charmed.cygnus.com>
375
376 * configure.in: Set CHECK_SUBDIRS to testsuite if we're doing
377 a cross compile.
378
379 * config.shared(check): Only run make check in the directories
380 specified by CHECK_SUBDIRS. Set CHECK_SUBDIRS to SUBDIRS
381 if it has no previous value.
382
383 Thu May 1 17:35:19 1997 Jason Merrill <jason@yorick.cygnus.com>
384
385 * Makefile.in (test, tpipe): Add $(CFLAGS).
386
387 Wed Apr 30 12:16:29 1997 Jason Merrill <jason@yorick.cygnus.com>
388
389 * configure.in: Don't turn on multilib here.
390
391 Sat Apr 26 13:38:21 1997 Bob Manson <manson@charmed.cygnus.com>
392
393 * configure.in (configdirs): Add testsuite directory.
394
395 * testsuite/ChangeLog:
396 * testsuite/Makefile.in:
397 * testsuite/libio.tests/tiomanip.exp:
398 * testsuite/libio.tests/tstdiomisc.exp:
399 * testsuite/libio.tests/tiomisc.exp:
400 * testsuite/libio.tests/tFile.exp:
401 * testsuite/libio.tests/tfformat.exp:
402 * testsuite/libio.tests/tiformat.exp:
403 * testsuite/libio.tests/hounddog.exp:
404 * testsuite/libio.tests/putbackdog.exp:
405 * testsuite/configure.in:
406 * testsuite/lib/libio.exp:
407 * testsuite/config/default.exp:
408 New files for DejaGnu-style testsuite.
409
410 Fri Apr 4 03:16:44 1997 Ulrich Drepper <drepepr@cygnus.com>
411
412 * configure.in: Enable multilibing by default.
413 Update multilib template to read config-ml.in.
414
415 * floatconv.c: Enable use in cross targets which use the
416 newlib ieeefp.h header.
417
418 Thu Jan 23 09:16:16 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
419
420 * libioP.h (_IO_file_attach): Delete redundant decl.
421
422 Tue Jan 21 22:13:45 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
423
424 * streambuf.h (class ios): Take out STREAMSIZE member, since we
425 only need (and should only have) the global one.
426
427 Tue Jan 7 14:02:40 1997 Jason Merrill <jason@yorick.cygnus.com>
428
429 * iostream.h (long long fns): Use __extension__.
430
431 * gen-params: Use _G_llong and _G_ullong instead of long long for
432 deduced types.
433
434 Fri Dec 6 13:13:30 1996 Jason Merrill <jason@yorick.cygnus.com>
435
436 * dbz/dbz.c: Use off_t.
437
438 Sat Nov 23 15:44:37 1996 Jason Merrill <jason@yorick.cygnus.com>
439
440 * Makefile.in (install): Don't install _G_config.h with other headers.
441
442 Mon Nov 18 17:12:41 1996 Jason Merrill <jason@yorick.cygnus.com>
443
444 * config.shared (SUBDIRS): Use -O instead of -O3 for debugging.
445
446 Sun Nov 3 12:43:34 1996 Jason Merrill <jason@yorick.cygnus.com>
447
448 * iostream.cc (write_int): Treat string literals as const.
449
450 Thu Sep 26 10:09:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
451
452 * depend: Regenerate.
453
454 Wed Sep 25 22:54:45 1996 Jason Merrill <jason@yorick.cygnus.com>
455
456 * config.shared (depend.new): Deal with headers that don't end in .h.
457
458 Thu Aug 29 17:05:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
459
460 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
461
462 Mon Aug 5 01:26:32 1996 Jason Merrill <jason@yorick.cygnus.com>
463
464 * config{ure.in,.shared} (DISTCLEAN): Add multilib.out.
465
466 Fri Aug 2 17:39:35 1996 Jason Merrill <jason@yorick.cygnus.com>
467
468 * libio.h (NULL): Use __null.
469 * libioP.h (NULL): Ditto.
470 * streambuf.h (NULL): Ditto.
471 * ioextend.cc (get_array_element): Use NULL instead of (void*)0.
472
473 Fri Jul 5 18:26:41 1996 Jim Wilson <wilson@cygnus.com>
474
475 * strfile.h (struct _IO_streambuf): New struct type.
476 (struct _IO_strfile): Use it.
477
478 Tue Jun 18 18:24:21 1996 Jason Merrill <jason@yorick.cygnus.com>
479
480 * fstream.h (fstreambase): Make __my_fb mutable.
481 From Joe Buck.
482
483 Tue Jun 18 11:03:53 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
484
485 * dbz/fake.c (main): Set return type to int.
486 * dbz/dbzmain.c (main): Likewise.
487 * dbz/byteflip.c (main): Likewise.
488
489 Mon Jun 17 14:05:36 1996 Jason Merrill <jason@yorick.cygnus.com>
490
491 * gen-params: Check if clog conflicts with system libraries.
492 * stdstreams.cc: If it does, use __IO_clog.
493 * iostream.h: Likewise.
494
495 Tue Jun 11 13:39:31 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
496
497 * stdiostream.h (istdiostream (FILE*)): Put istream base
498 initializer before init for __f.
499 (ostdiostream (FILE*)): Likewise for ostream base init.
500
501 Tue May 14 11:47:21 1996 Per Bothner <bothner@andros.cygnus.com>
502
503 * strfile.h (_IO_str_fields): Removed _len field.
504 (_IO_STR_DYNAMIC, _IO_STR_FROZEN): new macros.
505 * strstream.h (strstreambuf::is_static): Removed.
506 (strstreambuf::frozen): Use _IO_STR_DYNAMIC instead of is_static.
507 * strstream.h, strstream.cc: Remove support for !_IO_NEW_STREAMS.
508 * strstream.cc (strstreambuf::init_dynamic): Don't set _s._len.
509 * strops.c (_IO_str_init_static): Better handling of the
510 negative (== unbounded) size case.
511 (_IO_str_overflow, _IO_str_underflow, _IO_str_count): Re-write
512 to not use _s._len, and otherwise cleanup/fix.
513 * strstream.h, strstream.cc (strstreambase::strstreambase()): Call
514 ios::init here.
515 (other constructors): Simplify - init already called.
516
517 Tue May 14 10:55:21 1996 Per Bothner <bothner@deneb.cygnus.com>
518
519 Change so that strstreambuf default constructor does no allocation.
520 * strstream.h (strstreambuf::init_dynamic): Default initial size = 0.
521 * strstream.cc (strstreambuf::init_dynamic): Don't allocate a
522 buffer (yet) if initial_size is 0.
523 * strops.c (_IO_str_overflow): Add 100 to size of re-allocated
524 buffer, to handle case when initial size is 0.
525
526 * iostdio.h (remove, rename, tmpfile, tempnam): Comment out.
527
528 Mon May 13 23:19:39 1996 Per Bothner <bothner@deneb.cygnus.com>
529
530 * fileops.c (_IO_file_close_it): Just call _IO_do_flush rather
531 than _IO_file_sync, to avoid useless lseek.
532
533 Tue May 14 10:48:48 1996 Jason Merrill <jason@yorick.cygnus.com>
534
535 * floatconv.c (_IO_strtod): Force rv into the stack.
536
537 * config.shared (gxx_includedir): Now $(includedir)/g++.
538
539 Sat Apr 27 02:37:49 1996 Jason Merrill <jason@yorick.cygnus.com>
540
541 * libioP.h (JUMP*): Implement for thunks.
542 (_IO_jump_t): Add second dummy field for thunks.
543
544 Thu Apr 25 13:20:00 1996 Jason Merrill <jason@yorick.cygnus.com>
545
546 * config.shared (CXX): Use gcc, not g++.
547
548 Wed Apr 24 10:29:50 1996 Doug Evans <dje@blues.cygnus.com>
549
550 * config.shared (depend.new): Delete $(srcdir)/ from foo.{c,cc}
551 for SunOS VPATH.
552 * depend: Regenerated.
553
554 Fri Apr 19 17:24:51 1996 Jason Merrill <jason@yorick.cygnus.com>
555
556 * Version 2.8.0b3.
557
558 Wed Apr 10 17:16:01 1996 Jason Merrill <jason@yorick.cygnus.com>
559
560 * configure.in (ALL): Don't build iostream.a.
561
562 Mon Apr 8 14:44:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
563
564 * iosetvbuf.c (_IO_setvbuf): Clear _IO_UNBUFFERED unless _IONBF.
565
566 Mon Apr 8 15:08:23 1996 Ian Lance Taylor <ian@cygnus.com>
567
568 * configure.in: Permit --enable-shared to specify a list of
569 directories.
570
571 Fri Apr 5 17:48:56 1996 Per Bothner <bothner@kalessin.cygnus.com>
572
573 * config.shared (MOSTLYCLEAN): Also remove ${EXTRA_MOSTLYCLEAN}.
574
575 Fri Mar 22 23:25:00 1996 Ulrich Drepper <drepepr@gnu.ai.mit.edu>
576
577 * genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag if putsh
578 back was successful.
579
580 Wed Mar 27 11:54:08 1996 Jason Merrill <jason@yorick.cygnus.com>
581
582 * Version 2.8.0b2.
583
584 Fri Mar 22 15:39:36 1996 Per Bothner <bothner@kalessin.cygnus.com>
585
586 * fileops.c (_IO_do_write): Revert previous fix. (It fails to
587 handle the case that fp->_IO_read_end != fp->_IO_write_base.)
588 (_IO_file_overflow): Instead, if _IO_read_ptr is at the end of
589 the buffer, reset all the read pointers to _IO_buf_base.
590
591 Tue Mar 12 12:03:17 1996 Per Bothner <bothner@kalessin.cygnus.com>
592
593 * fileops.c (_IO_do_write): Even if to_do==0, must re-set buffer
594 pointers. Bug and solution from Luke Blanshard <luke@cs.wisc.edu>.
595
596 Wed Feb 28 10:00:24 1996 Jason Merrill <jason@yorick.cygnus.com>
597
598 * Version 2.8.0b1.
599
600 Tue Feb 27 18:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
601
602 * iopopen.c (_IO_proc_open): Use (char*)0 rather than imprecise NULL.
603
604 * streambuf.h (ios): Add ios::binary; deprecate ios::bin.
605 * filebuf.cc (filebuf::open): Handle ios::binary.
606
607 Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
608
609 * cleanup.c (_IO_cleanup_registration_needed) [!_G_HAVE_ATEXIT]: Init
610 to NULL.
611 * filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
612
613 Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
614
615 * filedoalloc.c (_IO_cleanup_registration_needed): Revert previous
616 change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
617
618 Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
619
620 * filedoalloc.c (_IO_cleanup_registration_needed): Declare as extern.
621
622 Tue Dec 12 17:21:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
623
624 * indstream.h, instream.cc (indirectbuf::uflow): New method.
625 * indstream.cc (indirectbuf::underflow): Fix to use sgetc, not sbumpc.
626 Fixes bug reported by Kevin Beyer <beyer@cs.wisc.edu>.
627
628 * indstream.cc (indirectbuf::seekpos): Add paranoia test.
629
630 Fri Dec 8 14:55:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
631
632 * stream.h: Add warning to not use these functions.
633 * stream.cc (str, chr): Re-implement here (from libg++).
634
635 Tue Nov 28 15:07:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
636
637 * config.shared: Use test instead of [ to avoid DEC Unix lossage.
638
639 Thu Nov 23 14:51:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
640
641 * iopopen.c: Move #include <sys/types.h> ahead of #include <signal.h>
642 to deal with BSDI's literal implementation of Posix.
643
644 Sat Nov 25 11:21:55 1995 Doug Evans <dje@canuck.cygnus.com>
645
646 * Makefile.in (install): Set rootme.
647 * config.shared (TOPDIR): Set with ${foo-...} rather than ${foo=...}.
648 (INSTALL): Handle absolute, dot, relative-not-dot values of srcdir.
649 (TEXIDIR): Likewise.
650
651 Tue Nov 21 14:12:05 1995 Ian Lance Taylor <ian@cygnus.com>
652
653 * configure.in: Check ${with_cross_host} rather than comparing
654 ${host} and ${target}.
655
656 Mon Nov 20 13:55:29 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
657
658 * configure.in: Match *-sco3.2v[45]*.
659
660 Wed Nov 15 20:19:31 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
661
662 * config.shared (FLAGS_TO_PASS): Also pass SHLIB and SHCURSES.
663
664 Tue Nov 14 01:41:08 1995 Doug Evans <dje@canuck.cygnus.com>
665
666 * config.shared (TO_REAL_TOPDIR): Define.
667 (MULTITOP): Deleted.
668 (MULTISRCTOP, MULTIBUILDTOP): New.
669 (TOPDIR): Change MULTITOP to MULTIBUILDTOP, and use TO_REAL_TOPDIR.
670 (INSTALL): Add with_multisrctop, TO_REAL_TOPDIR.
671 (TEXIDIR): Use TO_REAL_TOPDIR.
672 (LIBS): Delete MULTITOP.
673 (FLAGS_TO_PASS): Add NM.
674 (CXXINCLUDES): Delete MULTITOP.
675 (depend.new): Delete adding MULTITOP to ../ build tree references.
676 Add MULTISRCTOP to ../ source tree references.
677 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
678 instead of cfg-ml-pos.in.
679
680 Sun Nov 12 16:30:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
681
682 * Makefile.in (VERSION): Set to 2.7.1.
683 * configure.in: Add warning for Linux.
684 * config.shared (DISTCLEAN): Add EXTRA_DISTCLEAN.
685
686 * editbuf.h (edit_mark::index_in_buffer): Avoid unused param warning.
687
688 * iostream.cc (istream::operator>> (char*)): Improve ANSI compliance.
689
690 Fri Nov 10 08:41:37 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
691
692 * config.shared (check): Add missing semicolon.
693
694 Thu Nov 9 17:27:22 1995 Jason Merrill <jason@yorick.cygnus.com>
695
696 * configure.in (ALL): Remove $(OSPRIM_OBJECTS).
697 * config.shared (check): Set LD_LIBRARY_PATH.
698 * NEWS: Fix typo.
699 * iogetdelim.c (_IO_getdelim): Index *lineptr, rather than lineptr.
700 From alan@spri.levels.unisa.edu.au (Alan Modra).
701
702 Mon Nov 6 15:03:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
703
704 * streambuf.cc, editbuf.cc, isgetline.cc, parsestream.cc:
705 Fixes to avoid -Wall warnings.
706
707 Fri Nov 3 16:41:41 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
708
709 * gen-params [!__STDC__]: Include varargs.h instead of stdarg.h.
710
711 Thu Nov 2 15:04:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
712
713 * config.shared: Re-write if X then Y else true fi to (not X) || Y.
714
715 Wed Nov 1 13:26:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
716
717 * iostream.h (istream::ipfx): Add default argument value.
718 Reported by Yotam Medini <yotam_medini@tmai.com>.
719
720 * libioP.h (_IO_blen): Fix typo.
721 Reported by Bryan T. Vold <btv@ldl.healthpartners.com>.
722
723 Fri Oct 27 19:26:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
724
725 * Makefile.in (_G_config.h): Set CC to $(CC) rather than to $(CXX),
726 now that CXX defaults to g++ and CC default to gcc (when found).
727 * config.shared: Simplify CXX and CC, since they get overridden
728 by ../configure anyway.
729
730 Wed Oct 25 19:45:50 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
731
732 * iostdio.h: Wrap including the file with #ifndef _IOSTDIO_H.
733
734 Wed Oct 25 11:14:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
735
736 * libio.h (_IO_seekoff, _IO_seekpos): New declarations.
737 * libioP.h (_IO_seekoff, _IO_seekpos): Remove declarations.
738 * libioP.h: Cleanup; remove old !_IO_UNIFIED_JUMPTABLES stuff.
739
740 * filebuf.cc (filebuf::~filebuf): Only call SYSYCLOSE if currently
741 open. Bug found by Martin Gerbershagen <ger@ezis-ulm.de>.
742
743 * streambuf.h (streambuf::pubseekoff, streambuf::pubseekpos):
744 Added, from ANSI draft.
745 * filebuf.cc (filebuf::open), iostream.cc (variables places), SFile.cc:
746 Use pubseekoff/pubseekpos rather than sseekoff/sseekpos.
747
748 * Makefile.in (install): Don't install libiostream.a.
749
750 * filedoalloc.c: Also #include <unistd.h>.
751
752 Mon Oct 9 18:09:54 1995 Jason Molenda <crash@phydeaux.cygnus.com>
753
754 * config.shared (SUFFIXES): add .c.
755
756 Tue Sep 26 16:08:01 1995 Per Bothner <bothner@kalessin.cygnus.com>
757
758 * procbuf.cc: Move #pragma implementation to beginning.
759
760 Wed Sep 20 17:53:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
761
762 * procbuf.h, procbuf.cc: Add #pragma interface/implementation stuff.
763
764 Wed Sep 20 18:59:00 1995 John Eaton <jwe@bevo.che.wisc.edu>
765
766 * procbuf.h: Protect from being included multiple times.
767
768 Wed Sep 20 15:47:14 1995 John Eaton <jwe@bevo.che.wisc.edu>
769
770 * procbuf.h (procbuf): Add '_next' pointer field for compatibility
771 with _IO_proc_file.
772
773 Wed Sep 20 13:54:02 1995 Ian Lance Taylor <ian@cygnus.com>
774
775 * config.shared: Add support for maintainer-clean target as a
776 synonym for realclean.
777 * dbz/Makefile.in: Likewise.
778
779 Mon Sep 11 12:11:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
780
781 * iopopen.c: #include <sys/types.h> before <sys/wait.h>.
782 This is in accordance with Posix, and needed for ISC.
783
784 Fri Sep 8 00:11:55 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
785
786 * gen-params: Use double quotes in the eval setting $TYPE to
787 $VALUE, to preserve any single quotes in $VALUE.
788
789 Mon Aug 21 11:39:09 1995 Jason Merrill <jason@phydeaux.cygnus.com>
790
791 * gen-params: Test for an appropriate version of gcc before using
792 mode attributes.
793
794 * config.shared: Add $(PICDIR) to $ALL.
795
796 Mon Aug 7 17:51:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
797
798 * gen-params: Generate new macro _G_HAVE_SYS_CDEFS.
799 * libio.h: If _G_HAVE_SYS_CDEFS, get __P from <sys/cdefs.h>.
800
801 Fri Aug 4 23:21:17 1995 Paul Eggert <eggert@twinsun.com>
802
803 * gen-params: When following typedef changes, allow typedefs
804 that do not have a space before the defined type name,
805 e.g. `typedef void *__gnuc_va_list;' as in Linux. Also,
806 not require a space in the definiens, e.g. `typedef void*foo;'.
807
808 Thu Aug 3 17:54:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
809
810 * iostream.h, iostream.cc (istream::sync): Added missing method.
811
812 Thu Aug 3 17:49:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
813
814 * configure.in: Remove netbsd special case.
815 * config/netbsd.mt: Removed; no longer used.
816
817 Tue Jun 20 16:07:12 1995 Paul Eggert <eggert@twinsun.com>
818
819 * gen-params: Take transitive closure of `typedef' relation.
820 This is needed for BSD/OS 2.0, which has
821 fpos_t -> off_t -> quad_t -> long long.
822
823 Mon Jul 24 18:28:10 1995 Doug Evans <dje@canuck.cygnus.com>
824
825 * config.shared (TOPDIR): Delete extra '/', $rootme may be empty.
826
827 Sat Jul 22 13:27:45 1995 Doug Evans <dje@canuck.cygnus.com>
828
829 * config.shared (depend.new): Fix quoting in DO NOT EDIT line.
830
831 * Makefile.in (_G_config.h): Add multilib support.
832 (install): Likewise.
833 * config.shared: Likewise.
834 * configure.in: Likewise.
835
836 Wed Jun 28 17:40:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
837
838 * PlotFile.h, SFile.h, builtinbuf.h, editbuf.h, fstream.h,
839 indstream.h, iomanip.h, iostream.h, parsestream.h, pfstream.h,
840 procbuf.h, stdiostream.h, stream.h, streambuf.h, strstream.h: Wrap
841 with extern "C++".
842
843 Thu Jun 22 04:34:01 1995 Jason Merrill <jason@phydeaux.cygnus.com>
844
845 * gen-params: Surround attributes with __.
846
847 Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
848
849 * config.shared (SUBDIRS): Massage broken shells that require
850 'else true'.
851
852 Sat Jun 17 11:25:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
853
854 * streambuf.h: Declare inline members inline in class.
855
856 Thu Jun 15 20:45:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
857
858 * Makefile.in (VERSION): Update to version 2.7.0.
859
860 Wed Jun 14 21:41:11 1995 Jason Merrill <jason@python.cygnus.com>
861
862 * Makefile.in (STDIO_WRAP_OBJECTS): Remove stdfiles.o.
863 (LIBIO_OBJECTS): Add stdfiles.o.
864
865 Wed Jun 7 16:11:36 1995 Jason Merrill <jason@python.cygnus.com>
866
867 * config.shared (all): Appease bash.
868
869 Wed Jun 7 11:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
870
871 * configure.in (MOSTLYCLEAN): Remove stamp-picdir.
872
873 * config.shared (MOSTLYCLEAN): Ditto.
874 (CLEAN): Don't.
875
876 Mon Jun 5 18:29:39 1995 Jason Merrill <jason@phydeaux.cygnus.com>
877
878 * config/mh-*pic: Removed.
879
880 * configure.in (MOSTLYCLEAN): Remove pic objects.
881 (frags): Use toplevel pic fragments.
882
883 * config.shared (CXXFLAGS): Use -O3.
884 (PICFLAG, PICDIR): New macros.
885 (all): Depend on $(PICDIR).
886 (FLAGS_TO_PASS): Pass PICFLAG.
887 (.x.o): Also build pic object.
888 (stamp-picdir): Create directory for pic objects.
889 (MOSTLYCLEAN): Remove pic objects.
890 (CLEAN): Remove stamp-picdir.
891
892 * Makefile.in (iostream.list): Depend on stamp-picdir.
893 (c++clean): Don't remove _G_config.h.
894
895 Mon Jun 5 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
896
897 * strstream.h, strstream.cc (strstream::strstream()): Re-implement to
898 be like ostrstream::ostrestream(), and not leak memory.
899
900 * streambuf.h: Use #if !_IO_UNIFIED_JUMPTABLES instead of #ifndef.
901
902 * iolibio.h (_IO_rewind): Add missing flags when calling _IO_seekoff.
903
904 Thu May 25 22:30:21 1995 J.T. Conklin <jtc@rtl.cygnus.com>
905
906 * config/netbsd.mt (G_CONFIG_ARGS): Add defn for off_t. Another
907 layer of typedefs has been added and the gen-params script can
908 not handle it.
909
910 Wed May 10 03:02:58 1995 Jason Merrill <jason@python.cygnus.com>
911
912 * iolibio.h (_IO_rewind): Add new argument to _IO_seekoff.
913
914 * config/linux.mt (LIBIOSTREAM_OBJECTS): Include $(STDIO_WRAP_OBJECTS).
915 (LIBIOSTREAM_DEP): Include stdio.list.
916 (LIBIOSTREAM_USE): Include `cat stdio.list`.
917
918 * Makefile.in (LIBIOSTREAM_DEP): New variable.
919 (LIBIOSTREAM_USE): Ditto.
920 (libiostream.a): Use them.
921 (iostream.list): Ditto.
922 (stdio.list): New rule.
923 (stdio/stdio.list): Ditto.
924
925 Tue May 9 18:29:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
926
927 * libioP.h (_IO_jump_t): Change TYPE for __dummy from int to
928 _G_size_t.
929
930 Sat May 6 13:50:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
931
932 * libio.h (_IO_UNIFIED_JUMPTABLES): #define as true.
933 (_IO_FILE): Remove _jumps field (#if _IO_UNIFIED_JUMPTABLES).
934
935 * libioP.h (enum _IO_seekflags_): Removed.
936
937 * libioP.h (_IO_setbuf_t): Change return value of setpos jumptable
938 function to match C++ streambuf::setpos. (Return NULL on failure.)
939 * fileops.c (_IO_file_setbuf), genops.c (_IO_default_setbuf),
940 filebuf.cc, iosetvbuf.c: Update to use new setbuf conventions.
941
942 * streambuf.h (streambuf): Re-order virtual functions more logically.
943 * streambuf.cc (streambuf::uflow), streambuf.h: New virtual.
944 * libioP.h (struct _IO_jump_t): Define using new JUMP_FIELD macro.
945 And re-order in more logical order consistent with streambuf vtable.
946 * fileops.c (_IO_file_jumps), iopopen.c (_IO_proc_jumps), iovfprintf.c
947 (_IO_helper_jumps), streambuf.cc (_IO_streambuf_jumps), strops.c
948 (_IO_str_jumps): Update accordingly, using JUMP_INIT macro.
949 * stdfiles.c: Set vtable to point to _IO_file_jumps.
950 * filebuf.cc, iopopen.c, iovfprintf.c (helper_vfprintf), iovsprintf.c,
951 iovsscanf.c: Use macros and #if to set jumptables.
952
953 * streambuf.c: _IO_streambuf_jumps and the _IO_sb_* methods are not
954 needed #if _IO_UNIFIED_JUMPTABLES.
955 * filebuf.cc (filebuf::__new): Also no longer needed.
956 * fstream.cc (fstreambase::__fb_init, fstreambase::fstreambase): Fix.
957 * stdstrbufs.c: Use filebuf vtable instead of builtinbuf's.
958 * builtinbuf.h, builtinbuf.cc (builtinbuf): Commented out #if
959 _IO_UNIFIED_JUMPTABLES - no longer needed.
960 * strstream.cc (SET_STR_JUMPS): Does nothing now.
961
962 * builtinbuf.cc, fileops.c, genops.c, iofgetpos.c, iofsetpos.c,
963 ioftell.c, iopopen.c, ioseekoff.c, ioseekpos.c, iosetvbuf.c,
964 iovfprintf.c, iovfscanf.c, strops.c: Use DEFUN and DEFUN_VOID.
965 * filebuf.cc, fileops.c, genops.c, iopopen.c, ioseekoff.c, ioseekpos.c,
966 iosetvbuf.c, iovfscanf.c: Use new JUMP_* and IO_OVERFLOW/... macros.
967
968 * libioP.h (_IO_seekpos_t): Third arg is now an int (using _IOS_INPUT
969 and _IOS_OUTPUT), not an enum _IO_seekflags_. Flags values are
970 changed, and their sense inverted (to match streambuf::seekpos).
971 * libioP.h (_IO_seekoff_t): Similarly match streambuf::seekoff.
972 * filebuf.cc, fileops.c (_IO_file_fopen, _IO_file_seekoff), genops.c
973 (_IO_default_seekpos, _IO_default_seekpos), iofgetpos.c, iofsetpos.c,
974 iolibio.h (_IO_fseek), ioftell.c, ioseekoff.c, ioseekpos.c,
975 iostream.cc, streambuf.cc, strops.c (_IO_str_seekoff), strstream.cc:
976 New seekpos/seekoff conventions.
977 * iostreamP.h (convert_to_seekflags): Removed - no longer needed.
978
979 * iolibio.h (_IO_fread): New declaration.
980
981 * dbz/Makefile.in: Re-arrange for cleaner dependencies.
982
983 Fri May 5 15:55:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
984
985 * libioP.h (_IO_JUMPS. JUMP_FIELD, JUMP0, JUMP1, JUMP2, JUMP3,
986 JUMP_INIT, _IO_FINISH, _IO_OVERFLOW, ... _IO_SYSSTAT): New macros
987 in preparation for new unified jumptable/vtable implementation.
988 * cleanup.c, filedoalloc.c, iofclose.c, iofflush.c, iofiledoalloc.c,
989 ioprims.c, iosetbuffer.c, iostrerror.c, ioungetc.c: Use DEFUN.
990 * filedoalloc.c, iofclose, iofflush, iosetbuffer.c: Use new macros.
991
992 * iofopen.c, iofdopen.c: Use macros and #if for new jumptables.
993
994 * gen-params: Do not #include <sys/types.h>.
995 Add missing quote in 'eval'.
996 Do add #include <sys/types.h> in test for <sys/resource.h>.
997 * config/netbsd.mt: New file, defining _G_CONFIG_ARGS (for fpos_t).
998 * configure.in: Use netbsd.mt for NetBSD.
999
1000 Wed May 3 15:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1001
1002 * libioP.h (DEFUN, DEFUN_VOID, AND): New macros, from ansidecl.h.
1003 * iofdopen.c, iofgets.c, iofopen.c, iofputs.c, iofread.c, iofwrite.c,
1004 iogetdelim.c, iogetline.c, iogets.c, ioignore.c, iopadn.c, ioperror.c,
1005 ioputs.c, iovsprintf.c, iovsscanf.c, outfloat.c: Use DEFUN.
1006
1007 Mon May 1 16:22:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1008
1009 * gen-params: #include <sys/types.h>. Don't use __WCHAR_TYPE__ in
1010 definition of _G_wchar_t. Use __attribute__ ((mode)) to get
1011 specific-sized ints under gcc, don't worry about int8 or int64
1012 otherwise. Provide defaults if deduction fails.
1013
1014 Thu Apr 27 18:27:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1015
1016 * streambuf.h (ios::~ios): Delete _arrays.
1017 (_IO_NEW_STREAMS): Turn on.
1018 * libio.h (__adjust_column): Remove bogus declaration.
1019 * genops.c (_IO_set_column): Fix typo (in commented-out code).
1020
1021 Tue Apr 25 17:14:29 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1022
1023 * config.shared (CXXINCLUDES): Use a shell variable with a
1024 different name from the make variable.
1025 * configure.in: Update accordingly.
1026
1027 Mon Apr 17 17:19:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1028
1029 * streambuf.h (__adjust_column): Remove redundant declaration.
1030
1031 Sat Apr 15 11:39:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
1032
1033 * config.shared (do-clean-dvi): Also remove *.cps.
1034
1035 * gen-params: Use ${SED} instead of sed.
1036
1037 * libio.h: Remove #if'd out stuff (confuses makedepend).
1038
1039 * stdstreams.cc (STD_STR): Standard streams start with ios::dec set.
1040
1041 Fri Apr 14 23:46:31 1995 Per Bothner <bothner@kalessin.cygnus.com>
1042
1043 * iostream.h, iostream.cc (istream::read, ostream::write):
1044 Use streamsize for the length parameter.
1045
1046 * streambuf.h: Removed redundant __overflow and __underflow.
1047
1048 * fstream.h, fstream.cc: Add void fstreambase::attach(int).
1049
1050 * iosscanf.c (_IO_sscanf): Fix non-__STDC__ missing declaration.
1051
1052 Mon Apr 3 15:40:55 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1053
1054 * indstream.*: Fix prototypes of xsputn and xsgetn.
1055
1056 * fileops.c: Avoid ??? trigraph.
1057
1058 Mon Mar 27 16:16:38 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1059
1060 * iomanip.h (operator<< (ostream&, const omanip<TP>&): Define
1061 separately.
1062 (operator>> (istream&, const imanip<TP>&): Ditto.
1063
1064 Mon Mar 27 08:56:00 1995 Brendan Kehoe (brendan@lisa.cygnus.com)
1065
1066 * builtinbuf.cc (builtinbuf::setbuf): Cast NULL to streambuf*, to
1067 avoid warning/error about conversion from void*.
1068 * indstream.cc (indirectbuf::seekoff): Likewise.
1069 (indirectbuf::seekpos): Likewise.
1070 * filebuf.cc (filebuf::setbuf): Likewise.
1071 (filebuf::close): Cast NULL to filebuf*.
1072
1073 Wed Mar 1 14:23:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1074
1075 * configure.in (DISTCLEAN): Add, with target-mkfrag.
1076
1077 Fri Feb 24 01:01:08 1995 Jason Merrill <jason@python.cygnus.com>
1078
1079 * configure.in (frags): Don't require so many dashes in the
1080 canonical target name.
1081
1082 Sat Feb 18 13:18:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1083
1084 * streambuf.cc (streambuf::sync): Always return 0, even for
1085 non-flushed output. This is required by the ANSI/ISO draft.
1086 * genops.c (_IO_sync): Likewise always return 0.
1087
1088 Fri Feb 17 16:33:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1089
1090 * fileops.c (_IO_file_close_it): Call _IO_file_sync, rather
1091 than _IO_do_flush, because we want to adjust the file pointer
1092 if reading and not at end (as in SVR4, and as in fflush).
1093 Also, make sure to return error indication if sync fails.
1094 (_IO_file_sync): Ignore seek error if it is ESPIPE.
1095 (_IO_file_seekoff): If not readable, do dumb lseek.
1096 * iofclose.c (_IO_fclose): If closing a non-filebuf, return -1
1097 if _IO_ERR_SEEN.
1098
1099 Fri Feb 17 19:31:00 1995 Ian Lance Taylor <ian@cygnus.com>
1100
1101 * gen-params: Check for struct tms in <sys/times.h>, defining
1102 HAVE_SYS_TIMES accordingly.
1103
1104 Wed Feb 15 21:05:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1105
1106 * strops.c (_IO_str_count): Use LEN macro.
1107 (_IO_str_seekoff): Update _len field.
1108
1109 Mon Feb 6 19:29:00 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1110
1111 * gen-params: Default to short, long and long long for 16, 32 and
1112 64 bit types, in case detection fails.
1113
1114 Wed Jan 25 18:07:30 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1115
1116 * gen-params (_G_wint_t): Allow for broken promotions.
1117
1118 Tue Jan 24 16:15:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1119
1120 * stdstrbufs.cc (_IO_fake_stdiobufs): Add an extra layer of struct,
1121 to force correct alignment on i960s.
1122 (DEF_STDIOBUF, _IO_{stdin,stdout,stderr}_buf): Update accordingly.
1123
1124 Thu Jan 19 18:30:53 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1125
1126 * config.shared (CXXINCLUDES): Add libstdc++ to includes for
1127 building libg++.
1128 (LIBS): Also link with libstdc++ when building libg++ toys.
1129 Don't set EXPORT_ALL_VARIABLES; users will have to set
1130 LD_LIBRARY_PATH themselves.
1131
1132 Fri Dec 30 16:38:13 1994 Mike Stump <mrs@cygnus.com>
1133
1134 * config/linux.mt: Fix build problem on linux 1.0.8.
1135
1136 Thu Dec 22 11:49:45 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1137
1138 * config/netware.mt: Use gcc to pre-link iostream.nlm's objects
1139 instead of using nlmconv, so that references to functions in
1140 libgcc.a are resolved.
1141
1142 * configure.in: Append .mt to target makefile fragment file names.
1143
1144 * floatconv.c (tens, tinytens, bigtens): Added const qualifier.
1145
1146 Tue Dec 20 09:59:50 1994 Mike Stump <mrs@cygnus.com>
1147
1148 * gen-params (VTABLE_LABEL_PREFIX): Since some systems have GNU nm
1149 as nm, and they demangle by default, we have to notice this, and
1150 try --no-cplus (linux) or --no-demangle when running nm.
1151
1152 Wed Dec 14 18:13:58 1994 Per Bothner <bothner@kalessin.cygnus.com>
1153
1154 * gen-params: To determine vt-name-mangling using dummy.C add
1155 #include and #prama interface/implementation to avoid problem with
1156 assemblers that don't emit local symbols. Reported under HPUX 8
1157 by Thomas Arend <arend@blasius.Chemietechnik.Uni-Dortmund.DE>.
1158
1159 * streambuf.h (ios::ios): Move inline definition after
1160 that of ios::init (which ios::ios calls).
1161
1162 Sun Dec 4 19:50:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
1163
1164 * fileops.c (_IO_file_init, _IO_file_close_it, _IO_file_sync):
1165 Set _offset to _IO_pos_BAD, to support applications that follow
1166 POSIX.1 rules on mixing file handles.
1167
1168 * fileops.c (_IO_file_overflow): Handle case that buffer was
1169 allocated (perhaps by setvbuf) but _IO_write_base is still 0.
1170
1171 * iostdio.h (setbuffer): #define as _IO_setbuffer.
1172 * streambuf.h, filebuf.cc: Removed filebuf::do_write.
1173
1174 Tue Nov 29 23:38:57 1994 Per Bothner (bothner@rtl.cygnus.com)
1175
1176 * floatconv.c (setword0, setword1): Fix typo.
1177
1178 Tue Nov 29 15:37:29 1994 Per Bothner <bothner@kalessin.cygnus.com>
1179
1180 * config.shared: Move -fno-implicit-template from CXXFLAGS
1181 to LIBCXXFLAGS. Tests are better run without it.
1182
1183 * floatconv.c (word0, word1): Re-place/re-implement using unions
1184 instead of casts to avoid optimizer problems.
1185
1186 * dbz/dbzmain.c: Renamed dirname -> dir_name to avoid OSF
1187 header file braindamage.
1188
1189 Sat Nov 5 19:44:00 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1190
1191 * config.shared (LIBCFLAGS): Define.
1192 (LIBCXXFLAGS): Define.
1193 (DOING_LIBGXX): Define TOLIBGXX. Change LIBS to use -lg++. Add
1194 LD_LIBRARY_PATH and .EXPORT_ALL_VARIABLES:.
1195 (FLAGS_TO_PASS): Add LIBC{,XX}FLAGS.
1196 (XC{,XX}FLAGS): Set to LIBCFLAGS or CFLAGS depending on $LIBDIR.
1197 (COMPILE.c): Define, use in .c.o rule.
1198 (COMPILE.cc): Define, use in .cc.o rule.
1199
1200 Sat Nov 5 15:12:12 1994 Per Bothner <bothner@kalessin.cygnus.com>
1201
1202 * Makefile.in (VERSION): Update to 0.67.
1203
1204 * streambuf.h (ios::dont_close): Is now set by default.
1205 * fstream.h, fstream.cc (__fb_init): New function. Clears
1206 ios::dont_close. Change fstreambase constructors to call it.
1207 * strstream.cc: *strstream constructors must clear ios::dont_close.
1208 * iostream.cc: Simplify - don't need to set ios::dont_close.
1209 * ioassign.cc: Simplify - assume ios::dont_close is always set.
1210
1211 * fstream.h, fstream.cc: If _IO_NEW_STREAMS, put the
1212 filebuf as a member __my_fb.
1213 * strstream.{h,cc}: Likewile use a strstreambuf member __my_sb.
1214 * streambuf.h, stdstreams.cc, ioextend.cc:
1215 Fix if _IO_NEW_STREAMS to not use ios::dont_close.
1216
1217 * streambuf.h (class ios): Move rdbuf later, to avoid
1218 inability of g++ to inline.
1219 * filebuf.cc (filebuf::~filebuf): Call _IO_do_flush.
1220
1221 * config.shared: Emit rules to make depend.
1222 * depend: New file.
1223
1224 Fri Nov 4 17:19:11 1994 Per Bothner <bothner@kalessin.cygnus.com>
1225
1226 * README: Fix typos.
1227 * libio.h: Add comment. Update Copyright notice.
1228
1229 Fri Nov 4 21:46:30 1994 Paul Eggert <eggert@twinsun.com>
1230
1231 * libio.h (__P): Change argument name spelling from
1232 `paramlist' to `protos' for compatibility with BSDI 1.1.
1233
1234 Thu Nov 3 00:45:16 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1235
1236 * config.shared (CXXFLAGS): Add -fno-implicit-templates.
1237
1238 Mon Oct 24 15:57:35 1994 Per Bothner <bothner@kalessin.cygnus.com>
1239
1240 * config.shared: Define NOSTDIC and use it for libio too.
1241
1242 Thu Oct 20 19:45:35 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1243
1244 * iogetdelim.c: #include <stdlib.h>.
1245
1246 Thu Oct 20 17:09:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
1247
1248 * iostream.h: Add classes _IO_istream_withassign and
1249 _IO_ostream_withassign. Re-type cin, cout, cerr, clog.
1250 (class iostream): Don't add extra _gcount field.
1251 * ioassign.cc: New file. Implement operator= for cin etc.
1252 * streambuf.h (class ios): Change return type of operator=.
1253 * Makefile.in (IOSTREAM_OBJECTS): Add ioassign.o.
1254
1255 * Makefile.in: Re-arrange, so linux.mt overrides can work.
1256
1257 * fileops.c (_IO_file_seekoff): Optimize seeks within buffer.
1258
1259 Wed Oct 19 14:25:47 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1260
1261 * gen-params (wint_t): Return to using __WCHAR_TYPE__ for
1262 compatibility with gcc versions prior to 2.6.1.
1263
1264 Tue Oct 18 17:08:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
1265
1266 * Makefile.in: Define _G_CONFOG_H as _G_config.h for Linux. Use it.
1267 (IO_OBJECTS): Add iogetdelim.o.
1268 * config/linux.mt: New file.
1269 * configure.in: Select config/linux.mt if Linux.
1270 * iogetdelim.c: Verious cleanups, many from
1271 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
1272 * libioP.h: Add _IO_getdelim. Use (void) for no-parameter functions.
1273
1274 Thu Oct 13 16:30:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
1275
1276 * libio.h: Rename USE_DTOA to _IO_USE_DTOA for namespace reasons.
1277 * iostream.cc, iovfscanf.c, iovfprintf, floatconv.c:
1278 Update USE_DTOA -> _IO_USE_DTOA.
1279
1280 * libio.h (_IO_feof, _IO_ferror): Move to here ...
1281 * iolibio: ... from here
1282
1283 * iostream.cc (istream::get, istream::ignore, istream::read):
1284 Set _gcount to 0 if ipfx0 failed.
1285
1286 * iostream.cc (flush): Do virtual function call, rather than
1287 going through jumptable. (To get correct method in derived class.)
1288 Bug and fix from John Wiegley <jw@cis.ohio-state.edu>.
1289
1290 * iofdopen.c (O_ACCMODE): Define using O_RDWR, not O_RDWRITE.
1291
1292 * streambuf.h (ios::rdbuf(streambuf*)): New.
1293 * streambuf.h (ios::operator=): Make private (i.e. dis-allow).
1294
1295 Wed Oct 12 19:09:20 1994 Jason Merrill (jason@phydeaux.cygnus.com)
1296
1297 * gen-params: Define _G_NO_NRV and _G_NO_EXTERN_TEMPLATES if not
1298 compiling with g++.
1299
1300 Thu Oct 6 16:03:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
1301
1302 * iostream.texi (ostrstream::str): Note that NUL is not written
1303 automatically.
1304
1305 Wed Oct 5 17:28:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1306
1307 * iogetdelim.c (_IO_getdelim): New function.
1308
1309 Wed Oct 5 15:40:22 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1310
1311 * config/netware.mt: New file, first cut at Netware NLM support.
1312 * configure.in (*-*-netware*): Use config/netware.mt.
1313
1314 * config.shared (NLMCONV, LD): New definition.
1315
1316 * gen-params: check for nm in ${binutils}/nm.new.
1317 * config.shared: Likewise.
1318
1319 Tue Oct 4 12:20:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
1320
1321 * iomanip.h (omanip::operator<<): Make 2nd arg be const.
1322 Bug and fix reported by Greg McGary <gkm@magilla.cichlid.com>.
1323
1324 * strstream.cc (strstreambuf::pcount): Simplify, to match
1325 ANSI/ISO specification.
1326
1327 Mon Sep 26 15:19:52 1994 Jason Merrill (jason@deneb.cygnus.com)
1328
1329 * gen-params: Include <wchar.h> and <wctype.h> if they exist.
1330
1331 Thu Sep 8 14:41:41 1994 Jason Merrill (jason@deneb.cygnus.com)
1332
1333 * iostream.h (class istream): Declare operator>>(long double&).
1334 (class ostream): Define operator<<(long double).
1335
1336 * iostream.cc (istream::operator>>(long double&)): Define.
1337
1338 Wed Sep 7 14:42:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
1339
1340 * iostream.texi (Overflow): Fix bugs in example.
1341
1342 Fri Sep 2 17:45:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
1343
1344 * iostream.tex: Document a little on how to write your
1345 own streambuf-derived class, with an example.
1346
1347 Tue Aug 30 13:03:57 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
1348
1349 * floatconv.c (s2b): Declare X and Y to be _G_int32_t.
1350 (diff, quorem): Declare BORROW, Y, and Z likewise.
1351 (ulp): Declare L likewise.
1352 (_IO_strtod): Declare L and AADJ likewise.
1353 (_IO_dtoa): Declare L and D likewise. Cast division of D by DS to
1354 _G_int32_t.
1355
1356 Mon Aug 29 16:01:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
1357
1358 * iosetvbuf.c (_IO_setvbuf): If setting _IOFBF and no
1359 buffer was specified, call __doallocate.
1360
1361 * fileops.c, floatconv.c: Add a bunch of parentheses to
1362 shut up gcc warnings. Patch from H.J.Lu.
1363
1364 * stdiostream.cc (stdiobuf::sys_read): Inline call to getc
1365 for the normal case (size==1).
1366
1367 Sat Aug 20 12:14:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
1368
1369 * Makefile.in (VERSION): Increase to 0.66.
1370
1371 Fri Aug 19 17:28:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1372
1373 * iolibio.h: Added _IO_printf prototype.
1374 Added extern "C" { ... } wrappers #ifdef __cplusplus.
1375 Bugs reported by Neal Becker <neal@ctd.comsat.com>.
1376
1377 Wed Aug 17 18:17:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
1378
1379 * fileops.c (_IO_file_seekoff): For _IO_seek_cur, adjust for
1380 read-ahead before jumping to label dumb.
1381
1382 Wed Aug 3 13:15:01 1994 H.J. Lu (hjl@nynexst.com)
1383
1384 * libioP.h (CHECK_FILE(FILE,RET)): new, which checks for
1385 FILE == NULL and _IO_MAGIC_MASK.
1386 (COERCE_FILE(FILE)): merged into CHECK_FILE(FILE,RET)
1387 with typo fixes.
1388
1389 * iofread.c, iofwrite.c: add CHECK_FILE(fp, 0);
1390 * iofclose.c: add CHECK_FILE(fp, EOF); remove _IO_MAGIC_MASK check.
1391
1392 * iofflush.c, iofgetpos.c, iofputs.c, iofscanf.c,
1393 iofsetpos.c, iofvbuf.c, ioungetc.c:
1394 Add CHECK_FILE(fp, EOF) and remove COERCE_FILE(fp).
1395
1396 * iofgets.c: add CHECK_FILE(fp, NULL) and remove COERCE_FILE(fp).
1397 * iofprintf.c: add CHECK_FILE(fp, -1) and remove COERCE_FILE(fp).
1398 * ioftell.c: add CHECK_FILE(fp, -1L) and remove COERCE_FILE(fp).
1399 * iosetbuffer.c: add CHECK_FILE(fp, ) and remove COERCE_FILE(fp).
1400
1401 Fri Aug 12 15:35:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
1402
1403 * iofdopen.c (_IO_fdopen): #define O_ACCMODE if it isn't.
1404 Still set O_APPEND if "a" is given, but don't unset it
1405 if it isn't. Added comment.
1406
1407 Mon Aug 8 13:11:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
1408
1409 * gen-params (VTABLE_LABEL_PREFIX): Changes in the implementation.
1410 For look for _*vt[$_.]7*filebuf in the nm output, because that
1411 matches what g++ produces and has produced. Thus it should be
1412 somewhat more robust.
1413
1414 Sun Aug 7 22:52:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
1415
1416 * gen-params (CC): Remove no-longer-needed -I options
1417 passed to xgcc (now they are implied by the -B options).
1418
1419 Wed Jul 20 16:41:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
1420
1421 * Makefile.in (tooldir): Added definition, so we can do
1422 'make install' in this directory.
1423 Bug reported by Klamer Schutte <schutte@tpd.tno.nl>.
1424
1425 Mon Jul 18 18:02:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
1426
1427 * gen-params (VTABLE_LABEL_PREFIX): Remove filename sppearing
1428 by itself. Add comment explaining what is going on.
1429
1430 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1431
1432 * libio.h: define _IO_uid_t and _IO_HAVE_ST_BLKSIZE
1433 as _G_xxxxxxxx.
1434
1435 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1436
1437 * iopopen.c: Don't include <errno.h>. It is included in "libioP.h".
1438
1439 * iopopen.c (_IO_proc_close) : check if fp is on the list
1440 before close it.
1441
1442 Thu Jul 14 16:38:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
1443
1444 * gen-params (CONFIG_NM): Make sed scripts to find vtable name
1445 mangling more robost for different forms of nm output.
1446
1447 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@jalod)
1448
1449 * iofopen.c (_IO_fopen): don't check [redundantly] fp == NULL after
1450 IO_file_init(&fp->_file).
1451
1452 * iomanip.h (template<class TP> class iapp):
1453 change ostream to istream.
1454
1455 Tue Jul 12 14:09:02 1994 Per Bothner (bothner@kalessin.cygnus.com)
1456
1457 * Makefile.in (VERSION): Increase to 0.65.
1458 * libioP.h (builtinbuf_vtable): Only define #ifdef __cplusplus.
1459
1460 * gen-params (_G_int8_t): Only define if defined(__STDC__),
1461 because K&R C compilers don't have signed char.
1462 (_G_int64_t, _G_uint64_t): Only define if defined(__GNUC__)
1463 because other compilers may not have long long.
1464
1465 Sun Mar 06 13:10:21 1994 H.J. Lu (hjl@nynexst.com)
1466
1467 * floatconv.c (_IO_dtoa ()): fix a small memory leak, set the
1468 "on_stack" field to be 0 if "result" is not NULL.
1469
1470 Sat Mar 05 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
1471
1472 * floatconv.c (_IO_dtoa ()): if the number of digits of the
1473 floating point number is more than the previous one, free the
1474 old string and allocate a new one.
1475 [Minor optimization to avoid Bcopy. -PB]
1476
1477 Mon Jul 11 10:53:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1478
1479 * fileops.c (_IO_file_underflow): 'count' should be unsigned,
1480 since it contains the return value of read. Reported by
1481 Teemu Torma <tot@trema.fi>.
1482
1483 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
1484
1485 * floatconv.c (_IO_strtod ()): make "+" and "-" as error.
1486
1487 Sat Jul 9 15:09:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
1488
1489 Make sure _IO_FILE::_flags is always initialized correctly, for the
1490 C functions (fopen, fdopen, popen), and not just the C++ functions.
1491 * fileops.c (_IO_file_init): Set _flags to CLOSED_FILEBUF_FLAGS.
1492 * fileops.c (_IO_file_fopen): Remove bogus assignment.
1493 * filebuf.cc (filebuf constructors): Don't pass CLOSED_FILEBUF_FLAGS
1494 to streambuf constructor - _IO_file_init does it instead.
1495 * filebuf.cc (CLOSED_FILEBUF_FLAGS): Removed.
1496 * iopopen.c (_IO_proc_open): Use _IO_mask_flags.
1497
1498 Thu Jun 30 08:49:53 1994 Jason Merrill (jason@deneb.cygnus.com)
1499
1500 * dbz/Makefile.in (mostlyclean): Add target.
1501
1502 Wed Jun 29 09:30:12 1994 Jason Merrill (jason@deneb.cygnus.com)
1503
1504 * gen-params: Woops, can't run a C program to determine target
1505 characteristics. Sigh.
1506
1507 Tue Jun 28 03:11:33 1994 Jason Merrill (jason@deneb.cygnus.com)
1508
1509 * gen-params: Add _G_{,u}int{8,16,64}_t, use a short C program to
1510 determine what all these should be rather than trying to compare
1511 the MAX numbers in the shell.
1512
1513 Sun Jun 26 21:04:24 1994 Per Bothner (bothner@kalessin.cygnus.com)
1514
1515 * stdiostream.h, stdiostream.cc (stdiobuf::xsgetn): Removed.
1516 Too hairy. If we want to optimize it, we should do so in
1517 filebuf::xsgetn (or rather _IO_file_xsgetn).
1518
1519 * stdiostream.h (class stdiobuf), stdiostream.cc: Fix parameter
1520 and return types of virtual function to matcher base types (Oops!).
1521 * streamstream.cc (stdiobuf::xsgetn, stdiobuf::xsputn):
1522 Optimize to call fread.fwrite directly if !buffered.
1523 * fileops.c: Fix comment.
1524
1525 Fri Jun 24 11:28:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
1526
1527 * stdiostream.h (istdiostream, ostdiostream): New classes.
1528
1529 More robust final cleanup.
1530 * cleanup.c (_IO_register_cleanup): Register _IO_cleanup,
1531 rather than _IO_flush_all.
1532 * filedoalloc.c: Update comment.
1533 * genops.c (_IO_unbuffer_all): New. Makes all files unbuffered.
1534 * genops.c (_IO_cleanup), libioP.h: New function. Call
1535 _IO_flush_all, and then _IO_unbuffer_all. This is in case C++
1536 destructors try to do output *after* _IO_cleanup is called.
1537
1538 Construct standard stdiobufs statically (using type punning).
1539 * stdstrbufs.c; Unless _STDIO_USES_IOSTREAM declare standard
1540 stdiobufs (for stdin, stdout, and stderr), using type punning
1541 (struct _IO_fake_stdiobuf). This avoids constructor-time problems.
1542 * stdstreams.cc: Remove the declarations of the stdiobufs.
1543 Instead use the new (fake) ones in stdstrbufs.cc. We no longer
1544 have to call ios::sync_with_stdio at constructor time.
1545
1546 Preliminary support for new ANSI streambuf::uflow virtual.
1547 * libioP.h (struct _IO_jump_t): Add __uflow field.
1548 * genops.c (_IO_default_uflow), libioP.h: New function.
1549 * fileops.c (_IO_file_jumps), iopopen.c (IO_proc_jumps),
1550 iovfprintf.c (_IO_helper_jumps), strops.c (_IO_str_jumps),
1551 streambuf.cc (_IO_streambuf_jumps): Add _IO_default_uflow.
1552 * genops.c (__uflow): New function.
1553 (save_for_backup): New function. Some code shared by
1554 __underflow and __uflow, moved out from the former.
1555 (_IO_default_uflow): New function.
1556 * libio.h (_IO_getc): Call __uflow, not __underflow.
1557
1558 Wed Jun 22 20:22:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
1559
1560 Make sure that the vtable of a streambuf is always valid,
1561 which makes ios::rdbuf simpler and faster.
1562 * gen-params: Add code to determine _G_VTABLE_LABEL_HAS_LENGTH,
1563 _G_VTABLE_LABEL_PREFIX, _G_VTABLE_LABEL_PREFIX_ID, and
1564 _G_USING_THUNKS, which describe how virtual function tables are named.
1565 * stdfiles.c (FILEBUF_LITERAL): Moved to libioP.h.
1566 * libioP.h (builtinbuf_vtable): New (complicated) declaration.
1567 * filebuf.cc (filebuf::__new), strstream.cc (SET_STR_JUMPS):
1568 Initialize vtable to builtinbuf_vtable, not NULL.
1569 * stdstrbufs.cc: New file. Same as stdfiles.c, except that
1570 vtable is initialized to builtinbuf_vtable, not NULL.
1571 * streambuf.h (ios::rdbuf): Can now simplify/optimize, due to
1572 above changes. Always, just return _strbuf.
1573 * builtinbuf.h, builtinbuf.cc (builtinbuf::vtable,
1574 builtinbuf::get_builtin_vtable): Removed. No longer needed.
1575 * streambuf.h, builtinbuf.cc (ios::_IO_fix_vtable): No longer needed.
1576 Only defined #ifdef _STREAM_COMPAT, for binary compatibility.
1577 * Makefile.in: Move stdfiles.o from IO_OBJECTS to STDIO_WRAP_OBJECTS.
1578 (IOSTREAM_OBJECT): Add stdstrbufs.o.
1579 * Makefile.in (_G_config.h): Pass $(CXXFLAGS) as part of $(CXX).
1580
1581 Fri Feb 11 11:08:01 1994 SBPM Marc GINGOLD (marc@david.saclay.cea.fr)
1582
1583 * iovfprintf.c (helper_vfprintf): add
1584 hp->_IO_file_flags = _IO_MAGIC|(_IO_IS_FILEBUF+_IO_NO_READS);
1585 [This is needed because _IO_vfprintf checks for _IO_UNBUFFERED. -PB]
1586 [Actually: don't set _IO_IS_FILEBUF. -PB]
1587
1588 Wed Jun 22 13:49:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
1589
1590 * stdiostream.cc, stdiostream.h (stdiobuf::buffered): New methods.
1591
1592 * iofdopen.c (_IO_fdopen): Various minor improvements.
1593
1594 * iovfscanf.c: Don't return EOF on control_failure.
1595
1596 Tue Dec 21 13:02:48 1993 H.J. Lu (hjl@nynexst.com)
1597
1598 * iovfscanf.c: Enforce the sequence of the conversion specifications.
1599
1600 Fri Jun 17 20:57:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
1601
1602 * iofdopen.c: Use fcntl to check that requested access mode is
1603 compatible with existing access mode, and to change the
1604 O_APPEND file status flag if need be.
1605
1606 Thu Jun 16 17:33:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
1607
1608 * streambuf.h (ios::init): Initialize all the fields.
1609 This may be overkill, but the current ANSI working paper requires it.
1610 * streambuf.h (ios::ios): Reimplement in terms of ios::init.
1611 * iostream.cc (Non-default constructors istream::istream,
1612 ostream::ostream, iostream::iostream): Cannot use a mem-initializer,
1613 because it is ignored if initializing a derived class. Instead,
1614 call ios::init.
1615
1616 Wed Jun 15 13:35:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
1617
1618 * stdstreams.cc (ISTREAM_DEF): Fix typo (it's a _fake_istream, not
1619 a _fake_ostream). Reported by Jason Shirk <jshirk@gomez.intel.com>.
1620
1621 * stdiostream.h, stdiostream.cc (stdiobuf::~stdiobuf): New.
1622 Call _IO_do_flush.
1623 * stdiostream.cc (stdiobuf::sync): Call _IO_do_flush rather
1624 than filebuf::sync (to avoid bad seeks).
1625
1626 * libioP.h (_IO_do_flush): Add missing parentheses.
1627
1628 Fri Jun 3 19:16:57 1994 Jason Merrill (jason@deneb.cygnus.com)
1629
1630 * config.shared (CXXFLAGS): Remove -fno-implicit-templates.
1631
1632 * iomanip.h: Add explicit external instantiations.
1633
1634 Wed Jun 1 14:14:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
1635
1636 * libio.h (struct _IO_FILE_plus): Move definition from here ...
1637 * libioP.h (struct _IO_FILE_plus): ... to here. Since this
1638 file is private to the implementation, we can rename the fields
1639 from the implementor's to the user's name anme space.
1640 (This avoids a lossage on SCO, whose stdio.h has a #define _file.)
1641 * iofdopen.c, iofopen.c, stdfiles.c: Fix field references accordingly.
1642 * iopopen.c (struct_IO_proc_file): Rename fields from
1643 implementor's name space to user's, and update usages.
1644 * streambuf.h (streambuf::_vtable): Re-implement to not need
1645 struct _IO_FILE_plus.
1646 * strfile.h (struct _IO_strfile_): Likewise.
1647
1648 Wed Jun 1 13:57:48 1994 Jason Merrill (jason@deneb.cygnus.com)
1649
1650 * config.shared (CXXFLAGS): Use -fno-implicit-templates instead of
1651 -fexternal-templates.
1652
1653 Tue May 31 08:49:28 1994 Mike Stump (mrs@cygnus.com)
1654
1655 * genops.c, iofclose.c, iofdopen.c, iofopen.c, iopopen.c: Be
1656 consistent about protecting #include <stdlib.h>.
1657
1658 * ioputs.c: Add #include <string.h>, to avoid warning on alpha.
1659
1660 * iofdopen.c: Add #include <stdlib.h>, so that malloc works on
1661 machines where sizeof(int) != sizeof(void *).
1662
1663 Mon May 30 17:26:49 1994 Per Bothner (bothner@kalessin.cygnus.com)
1664
1665 * pfstream.cc (ipfstream::ipfstream, opfstream::opfstream):
1666 Reverse sense of test of return value of procbuf::open.
1667 (It returns NULL on failure.)
1668
1669 * filedoalloc.c (_IO_file_doallocate): Remove dead code for
1670 USE_MALLOC_BUF. Add code to return EOF if ALLOC_BUF fails.
1671
1672 Sat May 28 13:47:47 1994 Jason Merrill (jason@deneb.cygnus.com)
1673
1674 * iomanip.cc: Explicitly instantiate smanip<int> and
1675 smanip<ios::fmtflags>.
1676
1677 Wed May 25 16:04:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
1678
1679 * strfile.h: Use __P instead of _PARAMS.
1680
1681 Fri May 20 11:42:17 1994 Per Bothner (bothner@kalessin.cygnus.com)
1682
1683 * libio.h: Rename _PARAMS macro to __P for better glibc and BSD
1684 compatibility. (Also define _PARAMS for backwards compatibility.)
1685 * cleanup.c, iolibio.h, ioperror.c, iovfprintf.c, iovfscanf.c,
1686 libioP.h: Use __P instead of _PARAMS.
1687 * iostdio.h: Use __P instead of _ARGS.
1688
1689 * fileops.c (_IO_file_read): Minor stylistic tweak. (It is
1690 preferable to test errno *after* the error return.)
1691
1692 Fri May 13 15:25:36 1994 Jason Merrill (jason@deneb.cygnus.com)
1693
1694 * iostream.*: Add insertor and extractor for bool (just pretend
1695 it's an int).
1696
1697 Fri May 13 14:12:03 1994 Mike Stump (mrs@cygnus.com)
1698
1699 * gen-params: Check for builtin bool support.
1700
1701 Wed May 11 00:48:35 1994 Jason Merrill (jason@deneb.cygnus.com)
1702
1703 Make libg++ build with gcc -ansi -pedantic-errors
1704 * gen-params: #ifdef __STRICT_ANSI__, #define _G_NO_NRV.
1705 * pfstream.cc (ipfstream::ipfstream): Wrap use of variable-size
1706 array in #ifndef __STRICT_ANSI__.
1707
1708 Fri May 6 12:42:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
1709
1710 * Makefile.in (VERSION): Increase to 0.64.
1711
1712 * isgetline.cc (istream::getline): The delimiter should *not*
1713 be included in the gcount().
1714
1715 * filedoalloc.c: #include <stdlib.h> (If __STDC__) to get malloc.
1716 * iostream.h (ostream::put): Remove overloaded versions, to match
1717 new working paper. (Actually just put inside _STREAM_COMPAT, for now.)
1718
1719 Tue May 3 14:14:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
1720
1721 * genops.c (_IO_default_finish): Make robust when called
1722 multiple times on the same _IO_FILE*. (One way this can
1723 happen is by the builtinbuf destructor being followed by the
1724 streambuf destructor.)
1725
1726 Mon May 2 13:55:26 1994 Jason Merrill (jason@deneb.cygnus.com)
1727
1728 * gen-params: Actually determine wint_t rather than depending on
1729 cpp to provide it or defaulting to the underlying type for
1730 wchar_t.
1731
1732 Sat Apr 30 14:47:30 1994 Jason Merrill (jason@deneb.cygnus.com)
1733
1734 * gen-params: Add _G_wint_t, allow __*_TYPE__ to override values
1735 at compile time, fix definition of _G_ARGS.
1736
1737 Fri Apr 29 16:55:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
1738
1739 * libio.h: Remove #pragma interface. (There is no implementation.)
1740
1741 Mon Mar 28 14:22:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
1742
1743 * iostream.cc (ostream::operator<<(double)): Add/fix support
1744 for printing '+' when ios::showpos is set.
1745 (Fixes bug reported by Doug Moore <dougm@cs.rice.edu>.)
1746 * iostream.cc (istream::read): Set eofbit as well as failbit on eof.
1747 * iostream.cc (ostream::operator<<(int)): Fix conversion
1748 to unsigned (used to lose on INT_MIN).
1749 * iostream.cc (ostream::operator<<(long)): Use (unsigned long),
1750 rather than (unsigned) for temporary.
1751
1752 * config.shared, Makefile.in: Remove definitions and uses
1753 of XTRAFLAGS. It is no longer needed, since it is
1754 now implied by the -B flag.
1755
1756 Fri Mar 25 00:31:22 1994 Jason Merrill (jason@deneb.cygnus.com)
1757
1758 * builtinbuf.h: Add put /**/ around comment on trailing #endif.
1759
1760 * Makefile.in (c++clean): Make clean in tests subdir, too.
1761
1762 Wed Mar 23 16:42:09 1994 Doug Evans (dje@canuck.cygnus.com)
1763
1764 * configure.in: Remove Makefile.tem before creating it.
1765 Needed when configuring from read-only source trees.
1766
1767 Wed Mar 16 14:06:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
1768
1769 * stdstreams.cc: Fix so that stdiobuf are used for cin/cout/cerr,
1770 unless _STDIO_USES_IOSTREAM is defined.
1771 * filebuf.cc (filebuf::setbuf): Fix confusion about return
1772 value from _IO_file_setbuf.
1773
1774 Sun Mar 13 00:54:12 1994 Paul Eggert (eggert@twinsun.com)
1775
1776 * config.shared: Ensure that `all' precedes `.PHONY';
1777 BSDI 1.1 needs this.
1778
1779 Sat Mar 12 03:58:00 1994 Paul Eggert (eggert@twinsun.com)
1780
1781 * config.shared: Output a definition of INSTALL that uses
1782 $${rootme}, not ${rootme}. Most `make's don't care, but BSDI
1783 1.1 `make' does.
1784
1785 Fri Mar 4 17:33:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
1786
1787 * iopopen.c: #define _POSIX_SOURCE.
1788 * isgetline.c (istream::getline): Various fixes.
1789
1790 Thu Mar 3 17:58:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
1791
1792 * iostream.cc (write_int): Fix test for when to add initial '0'
1793 when ios::oct and ios::showbase are set.
1794 For hex, showbase adds initial 0x (or 0X) regardless of val==0.
1795 Bugs reported by Phil Roth <proth@cs.uiuc.edu>.
1796
1797 Mon Feb 21 13:18:20 1994 H.J. Lu (hjl@nynexst.com)
1798
1799 * libio.h (_IO_PENDING_OUTPUT_COUNT(_fp)): return the
1800 pending output count in _fp.
1801
1802 Fri Feb 25 09:26:57 1994 Ian Lance Taylor (ian@cygnus.com)
1803
1804 * gen-params: For HAVE_SYS_WAIT, compile dummy.c, not dummy.C.
1805
1806 Tue Feb 22 11:19:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
1807
1808 * streambuf.h, genops.c, libioP.h: Rename references to
1809 _IO_FILE fields other_gbase => _IO_save_base,
1810 _aux_limit => _IO_backup_base, and _other_egptr => _IO_save_end.
1811 * libio.h: Remove no-longer needed macros _other_gbase,
1812 _aux_limit, and _other_egptr.
1813 * genops.c (__underflow, _IO_default_finishh, _IO_unsave_markers):
1814 Check _IO_save_base for NULL before FREEing it or calling
1815 _IO_free_backup_area.
1816
1817 Thu Feb 17 15:26:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
1818
1819 * gen-params: Improve deduction of _G_uint32 and _G_int32.
1820 Should now work for 16-bit, 32-bit, or 64-bit targets.
1821 * gen-params: Check for sys/wait.h using ${CC}, since it's
1822 now used in a C file, not a C++ file.
1823 * floatconv.c: Typedef _G_uint32_t as unsigned32, and use
1824 unsigned32 in place of unsigned long. (Needed for Alpha.)
1825
1826 Tue Feb 8 13:40:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
1827
1828 * fileops.c (_IO_file_close_it): Simplify by using _IO_do_flush.
1829 * fileops.c (_IO_file_finish): Don't call _IO_file_close_it -
1830 do it inline. Call _IO_do_flush even if _IO_DELETE_DONT_CLOSE.
1831 * fileops.c (_IO_file_attach): Set _IO_DELETE_DONT_CLOSE.
1832 * genops.c (_IO_flush_all): Only call overflow if there is
1833 something to write.
1834 * iofclose.c (_IO_fclose): Check that magic number is correct,
1835 and clear it when done. Avoids crashing some buggy applications.
1836 * iogetline.c (_IO_getline): Don't gratuitously increment old_len.
1837 * iogets.c (_IO_gets): Take care to get required ANSi semantics.
1838
1839 Sun Feb 6 19:50:39 1994 Jason Merrill (jason@deneb.cygnus.com)
1840
1841 * iomanip.cc: Explicitly instantiate operator<< and >>.
1842
1843 Fri Feb 4 12:28:22 1994 Jason Merrill (jason@deneb.cygnus.com)
1844
1845 * config.shared (CXXFLAGS): Use -fexternal-templates.
1846
1847 * iomanip.h: Uncomment #pragma interface.
1848
1849 Thu Jan 20 13:48:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
1850
1851 If no characters are read by fgets, ANSI C doesn't allow '\0' to
1852 be written to the buffer, but it is required by ANSI C++
1853 for istream::get and istream::getline. Both use _IO_getline ...
1854 * iogetline.c (_IO_getline): Don't write a '\0' at the end
1855 of the read data. The input buffer length does not include
1856 space for a '\0'.
1857 * iofgets.c, iogets.c: Change appropriately.
1858 Also check for _IO_ERR_SEEN, as required by ANSI.
1859 * isgetline.cc: Update accordingly.
1860
1861 Mon Jan 17 13:24:26 1994 Jason Merrill (jason@deneb.cygnus.com)
1862
1863 * Makefile.in (c++clean): Added target for compiler testing
1864 (i.e. make c++clean all).
1865
1866 Mon Jan 10 11:20:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
1867
1868 * libio.h (_IO_putc): Add parentheses.
1869 Patch from Rik Faith <faith@cs.unc.edu>.
1870
1871 Tue Jan 4 01:32:28 1993 Hongjiu Lu (hjl@nynexst.com)
1872
1873 * genops.c (_IO_default_xsputn):
1874 (_IO_default_xsgetn):
1875 * ioignore.c: change "_IO_size_t count" to
1876 "_IO_ssize_t count".
1877 * iogetline.c: change "_IO_size_t len" to
1878 "_IO_ssize_t len".
1879
1880 Mon Dec 20 00:31:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
1881
1882 * config.shared (CXXINCLUDES): Fix quoting of $(NOSTDINC).
1883
1884 Sun Dec 19 21:03:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
1885
1886 * Makefile.in (VERSION): Increase to 0.63.
1887
1888 Fri Dec 17 13:02:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
1889
1890 * iofread.c (_IO_fread): Return 0 if either size or count is 0.
1891 * iofwrite.c (_IO_fwrite): Return 0 if either size or count is 0.
1892 (This is consistent with fread, and most implementations, but not
1893 with a literal reading of the ANSI spec.)
1894 * iovfscanf.c (_IO_vfscanf): If got EOF while skipping spaces,
1895 set seen_eof and break (instead of returning).
1896 * sbscan.cc (streambuf::vscan): Set error state before returning.
1897 * streambuf.h: Add a forward declarations for class istream
1898 to work around a g++ vtable name mangling bug. (Patch from
1899 harry@pdsrc.hilco.com via Jeffrey A Law <law@snake.cs.utah.edu>.)
1900 * NEWS: New file.
1901
1902 Sat Dec 11 16:21:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
1903
1904 * iovfprintf.c (struct helper_file, _IO_helper_overflow,
1905 helper_vfprintf, _IO_helper_jumps): New structs and functions.
1906 (_IO_vfprintf): Use helper_vfprintf to make printing to
1907 unbuffered files more efficient.
1908 * genops.c (_IO_default_underflow), libioP.h: New function.
1909
1910 * iovsscanf.c (_IO_vsscanf): The input string's length marks
1911 its logical end-of-file.
1912
1913 Wed Dec 8 13:20:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
1914
1915 * indstream.cc (indirectbuf::sync()): Don't crash if get_stream()
1916 or put_stream() are NULL; sync() both streams even if error.
1917
1918 Sun Dec 5 19:24:29 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
1919
1920 * iostreamP.h (convert_to_seekflags): Use _IO_seek_set instead of
1921 0 inside the conditial expressions.
1922
1923 * iofsetpos.c (_IO_fsetpos): Delete unused var `pos'.
1924
1925 Sat Dec 4 15:57:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
1926
1927 * filedoalloc.c (_IO_file_doallocate): Change type of couldbetty
1928 to int, and type of size to _IO_size_t, instead of size_t.
1929 (Change needed for Ultrix, which incorrectly deliberately doesn't
1930 define size_t in <sys/types.h> if _POSIX_SOURCE is defined.)
1931
1932 Thu Dec 2 22:43:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
1933
1934 * fileops.c (_IO_file_finish): Remove redundant call to _IO_un_link.
1935 * iofclose.c (_IO_fclose): Don't call fp->_jumps->__close; it's
1936 too low-level. Instead call _IO_file_close_it.
1937 * dbz/Makefile.in (rclean, distclean): Add some missing files.
1938
1939 Wed Dec 1 13:19:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
1940
1941 * config/hpux.mt (MATH_H_INLINES): No longer define.
1942 Patch from Jeffrey A Law <law@snake.cs.utah.edu>.
1943
1944 Fri Nov 26 13:28:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
1945
1946 * config.shared (CINCLUDES): Define default if libg++.
1947 * iofread.c: Use _IO_sgetn.c.
1948 * iolibio.h (_IO_clearerr): Fix typo.
1949 * genops.c (_IO_seekmark): Return 0 on success.
1950 * floactconv.c (Binit): Change to static.
1951 * iofclose.c (_IO_fclose): Check if file is _IO_stdin, _IO_stdout,
1952 or _IO_stderr; if so don't try to free it. Fix from hjl@nynexst.com.
1953
1954 * genops.c (_IO_default_sync), libioP.h: New function.
1955 * libioP.h (_IO_default_close): Use _IO_default_sync -same interface.
1956
1957 * Makefile.in: Increase version to 0.62.
1958 * iopopen.c (_IO_proc_close): Use waitpid (available in libibarty,
1959 if needed), rather than wait. Don't block/ignore SIGINT etc,
1960 as this is counter to Posix.2.
1961 * iopopen.c: Chain open proc_files, and have the child close
1962 the ones that are open (as required by Posix.2).
1963
1964 * fstream.h (fstreambase::rdbuf), strstream.h (strstreambase
1965 ::rdbuf): Call ios::rdbuf() instead of getting _strbuf directly.
1966
1967 * sbscan.cc (streambuf::vscan): Comment out duplicate default arg.
1968 * floatconv.c: Recognize Alpha and i860 as little-endian.
1969 * streambuf.cc: Return two bogus value returns from void functions.
1970 * iolibio.h, iofwrite.c: Fix buffer type to (const void*).
1971 * libio.h: Predefine of struct _IO_FILE to help non-g++-compilers.
1972 * libioP.h, pfstream.cc, stdfiles.c, iovfscanf.c: Cleanup syntax junk.
1973 * stdstreams.cc: Minor simplification.
1974 * streambuf.h, builtinbuf.cc: Add non-const ios::_IO_fix_vtable()
1975 for temporary binary compatibility.
1976
1977 * filedoalloc.c, fileops.c: Add _POSIX_SOURCE.
1978 * fileops.c, iofopen.c, iofputs.c, iostream.cc, strops.c,
1979 strstream.cc, genops.c: Add some missing #includes.
1980 * iofopen.c, iofdopen.c: Return NULL if malloc fails.
1981 * iovfscanf.c: Fix return type in strtol prototype.
1982 * fwrite.c: Remove bogus file.
1983
1984 Wed Nov 17 14:09:42 1993 Per Bothner (bothner@cygnus.com)
1985
1986 * builtinbuf.cc (ios::_IO_fix_vtable), streambuf.h: Make method
1987 const, to reduce problems with -Wcast-qual.
1988
1989 Tue Nov 16 19:30:42 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1990
1991 * config.shared (CXXINCLUDE): use ${} instead of $() for NOSTDINC
1992
1993 Tue Nov 16 14:15:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
1994
1995 * iopopen.c (_IO_proc_close): Re-structure to avoid
1996 declarations after statements.
1997 * floatconv.c: If not __STDC__, #define DBL_MANT_DIG.
1998 * config/isc.mt (G_CONFIG_ARGS): Remove bogus spaces.
1999 Patch from David A. Avery <daa@nic.cerf.net>.
2000
2001 Tue Nov 16 15:58:31 1993 Mark Eichin (eichin@cygnus.com)
2002
2003 * Makefile.in (_G_config.h): explicitly use $(SHELL) to run
2004 gen-params, since we know it is a script (we're explicitly looking
2005 in ${srcdir} for it) and /bin/sh might not be good enough.
2006
2007 Mon Nov 15 13:26:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2008
2009 * builtinbuf.cc: Don't depend on initialization of static
2010 variable builtinbuf::vtable, since that might happen after
2011 we need it (for a static constructor). Instead, initialize
2012 it when needed by inlining the code from get_builtin_vtable
2013 into ios::_IO_fix_vtable().
2014
2015 * floatconv.c: Avoid using #elif, which some C compilers lack.
2016 * iogetline.c, libioP.h: Make char parameter be int, to avoid
2017 some default promotion anomalies.
2018
2019 Fri Nov 5 11:49:46 1993 Per Bothner (bothner@kalessin.cygnus.com)
2020
2021 * config.shared (do-clean-dvi): Remove TeX work files.
2022 * iopopen.c (extern _IO_fork): Don't use parameter type void.
2023 * strops.c (_IO_str_init_static): Clear the allocate_buffer
2024 function pointer, to mark the strfile as being static.
2025 Bug fix from Mike Raisbeck <mike@pudding.rtr.COM>.
2026
2027 Thu Nov 4 10:44:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2028
2029 * filebuf.cc (filebuf:): Use sseekoff rather than seekoff
2030 (which loses if vtable pointer is NULL).
2031
2032 * iostream.cc (ostream::operator<<(long long n)): Fix thinko.
2033
2034 * Makefile.in (VERSION): Increase to 0.60.
2035 * Makefile.in (IO_OBJECTS): Added iopopen.o.
2036 * config.shared (DISTCLEAN): Also remove Make.pack.
2037 * config.shared (CXXINCLUDES): Add $(NOSTDINC).
2038
2039 * config.shared (INSTALL): Fix so it ues the correct install.sh
2040 whether $srcdir is absolute or relative.
2041
2042 * floatconv.c (DBL_MAX_10_EXP): Fix default value.
2043
2044 Wed Nov 3 10:20:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
2045
2046 * gen-params: Make more robust to allow random junk (NeXT
2047 has spaces) before typedefs.
2048
2049 * fileops.c (_IO_file_overflow): Reduce code duplication.
2050 * Makefile.in (IO_OBJECTS): Remove ioputs.o.
2051
2052 * iovfscanf.c, libio.h: Extra parameter to _IO_vfscanf,
2053 for optionally setting an error indication..
2054 * iofscanf.c, ioscanf.c, iofscanf.c, iovsscanf.c: Fix calls to
2055 _IO_vfscanf to pass an extra NULL.
2056 * sbscan.cc (streambuf::vscan): If passed an extra stream,
2057 set its error state (using new _IO_vfscanf parameter.
2058
2059 * filedoalloc.c, fileops.c, genops.c, iogetline.c, ioignore.c,
2060 libio.h, libioP.h, streambuf.cc streambuf.h, strfile.h, strops.c,
2061 strstream.cc: Replace macros (_base, _ebuf, _eback, _gptr, _egptr,
2062 _pbase, _pptr, _epptr) by field names (_IO_buf_base, _IO_buf_end,
2063 _IO_read_base, _IO_read_pre, IO_read_end, _IO_write_base,
2064 _IO_write_ptr, _IO_write_end).
2065 * libio.h: Remove the old macros (which fixes a conflict.
2066
2067 Mon Nov 1 15:22:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2068
2069 * iostream.cc: Use _IO_sputn instead of sputn. _IO_sputn does
2070 not require a vtable pointer, and is also slightly faster.
2071
2072 * builtinbuf.{h,cc} (builtinbuf::setbuf): Fix return and
2073 parameter types.
2074
2075 Mon Oct 25 12:56:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
2076
2077 Kludge to make sure _IO_FILE buffers get flushed before exit.
2078 * dbz/dbzmain.c, dbz/fake.c, dbz/byteflip.c:
2079 Invoke DBZ_FINISH macro (if defined) before (normal) exits.
2080 * dbz/Makefile.in (CFLAGS): Define DBZ_FINISH to call _IO_flush_all.
2081
2082 Sat Oct 23 22:10:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
2083
2084 * Makefile.in (VERSION): Set to 0.60 for libg++ release.
2085 * fileops.c (_IO_file_attach): Set _offset to _IO_pos_BAD.
2086 * iostream.cc (ostream::flush): Fix thinkp.
2087 * editbuf.cc, isgetsb.cc, isscan.cc, osform.cc, parsestream.cc,
2088 pfstream.cc, sbform.cc, sbscan.cc, stdstreams.cc, stream.cc:
2089 Replace #include "ioprivate.h" by #include "libioP.h" (and
2090 sometimes stdarg.h, stdlib.h and/or string.h).
2091 * ioprivate.h: Removed.
2092
2093
2094 Thu Oct 21 19:24:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
2095
2096 * PlotFile.h, SFile.h, editbuf.cc, editbuf.h, filebuf.cc,
2097 fstream.cc, fstream.h, indstream.cc, indstream.h, iomanip.cc,
2098 iomanip.h, ioprivate.h, iostream.cc, iostream.h, isgetline.cc,
2099 isgetsb.cc, parsestream.cc, parsestream.h, pfstream.cc,
2100 pfstream.h, procbuf.cc, procbuf.h, stdiostream.cc, stdiostream.h,
2101 stdstreams.cc, streambuf.cc, streambuf.h, strstream.cc,
2102 strstream.h: Remove old (duplicate) copyright notices.
2103
2104 * iostream.cc: Fix calls to sync() to be safe in the presence
2105 of vtable-less streambufs.
2106
2107 Wed Oct 20 15:22:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
2108
2109 * streambuf.h (streambuf::underflow, streambuf::overflow):
2110 Don't make virtual functions pure.
2111 * streambuf.cc (streambuf::underflow, streambuf::overflow):
2112 Default definitions (return EOF).
2113 * fstream.h: Add new (int fd, char* buf, int len) constructors.
2114 These are deprecated, but added for AT&T compatibility.
2115 * fstream.cc fstreambase::fstreambase(int fd, char *p, int l): New.
2116
2117 Thu Oct 14 14:57:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2118
2119 * configure.in: use 'mv -f' instead of 'mv'
2120
2121 Tue Oct 12 05:01:44 1993 Mike Stump (mrs@cygnus.com)
2122
2123 * floatconv.c: Fix typo, change __STDC to __STDC__.
2124
2125 Mon Oct 11 17:03:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2126
2127 * cleanup.c: It should be #if _G_HAVE_ATEXIT, not #ifdef.
2128
2129 * floatconv.c, iostrerror.c, iovfprintf.c, iovfscanf.c, libioP.h:
2130 Bunch of fixes to allow use of non-ANSI (K&R) C compilers.
2131
2132 * Makefile.in (iostream.list): Use CC=$(CXX) to force use of gcc.
2133 * README: New file.
2134
2135 Fri Oct 8 16:19:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
2136
2137 * Makefile.in: Move ioungetc.o from STDIO_WRAP_OBJECTS to
2138 IO_OBJECTS (since it is needed for iovfscanf.c).
2139 * iostrerror.c: Add declaration of strerror.
2140
2141 Thu Oct 7 12:02:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
2142
2143 * cleanup.c: New file, to cause flushing at exit.
2144 * filedoalloc.c: Cause flushing on exit.
2145 * Makefile.in (OSPRIM_OBJECTS): Add cleanup.o.
2146 * gen-params: Check for atexit.
2147
2148 Tue Oct 5 19:11:14 1993 Mike Stump (mrs@cygnus.com)
2149
2150 * ioperror.c (_IO_strerror): Add missing ()s in _PARAMS usage.
2151
2152 Tue Oct 5 10:33:37 1993 Per Bothner (bothner@kalessin.cygnus.com)
2153
2154 * iofprintf.c, iofscanf.c, ioprintf.c, ioscanf.c, iosprintf.c,
2155 iosscanf.c: Remove bogus semi-colon after va_dcl.
2156 * ioperror.c: Fix typos in declaration.
2157
2158 Mon Oct 4 17:12:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
2159
2160 * configure.in (CLEAN): Define (as _G_config.h *.a).
2161
2162 * fileops.c (_IO_file_read): Don't assume EINTR is defined.
2163 * iosetbuf.c: Replace by generalized ...
2164 * iosetbuffer.c: ... variant, derived from BSD.
2165 * Makefile.in (STDIO_WRAP_OBJECTS): Change correspondingly.
2166 * iosetvbuf.c (iosetvbuf): Minor ANSI tweak.
2167 * iostdio.h (setbuf, setlinebuf): New #defines.
2168 * iolibio.h (_IO_setbuf, _IO_setlinebuf): (Re-)define as macros.
2169 * Makefile.in (LIBIO_OBJECTS): New macro.
2170
2171 Tue Sep 28 14:15:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
2172
2173 * libioP.h (_IO_proc_open, _IO_proc_close): Add missing return types.
2174 * procbuf.cc: Belated fixes.
2175
2176 Mon Sep 27 14:04:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2177
2178 * Makefile.in: List new files. Add STDIO_WRAP_OBJECTS macro.
2179 * floatconv.c (d2b): Use Exp_msk11 instead of Exp_msk1.
2180 * iofgetpos.c (_IO_fgetpos), iofsetpos.c (_IO_fsetpos): Clean up.
2181 * iolibio.h: New file. Declarations of _IO_foo, for most foo
2182 where foo is a stdio function. (Remove these from libio.h.)
2183 * iostream.h (istream::istreambuf, ostream::ostreambuf): Move
2184 obsolete functions inside #ifdef _STREAM_COMPAT.
2185 * libio.h, libioP.h, streambuf.h, parsestream.h, stdiostream.h:
2186 Use _IO_fpos_t rather than _IO_pos_t.
2187 * iopopen.c: New file type, for pipe (popen-like) streams.
2188 * procbuf.cc: Now just a C++ wrapper for the files in iopopen.c.
2189 * streambuf.h (ios::unsetf): Return complete old value of flags.
2190 * iogets.c (_IO_gets(), ioungetc.c (_IO_ungetc), ioperror.c
2191 (_IO_perror), iostrerror.c (_IO_strerror): New files and
2192 functions, for stdio implementation.
2193 * iostdio.h: Add declarations for various recently-added functions.
2194
2195 Sun Sep 12 14:24:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
2196
2197 * streambuf.h (ios::showpos):: Fix typo.
2198
2199 Fri Aug 27 12:05:47 1993 Per Bothner (bothner@kalessin.cygnus.com)
2200
2201 * iopadn.c (_IO_padn): Change to return count of chars written.
2202 * outfloat.c, iovfprintf.c: Change for new _IO_padn interface.
2203 * iostream.cc (ostream::operator<<): Make sure to set badbit
2204 on a failure (many places). Use _IO_padn more.
2205 * iostream.cc (ostream& ostream::operator<<(const void *p): Move to
2206 * osform.cc: ... here, to reduce linking-in-the-world syndrome.
2207 * osform.cc: Use rdbuf(), instead of _strbuf directly.
2208
2209 * genops.c (_IO_sgetn), libio.h: New function.
2210 * streambuf.h (streambuf.h::sgetn): Use _IO_sgetn.
2211 * SFile.cc (SFile::operator[]): Use sseekoff, not seekoff.
2212
2213 Thu Aug 26 10:16:31 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2214
2215 * config.shared (SUBDIRS): only recurse if the directory is configured
2216
2217 Wed Aug 25 12:56:12 1993 Per Bothner (bothner@kalessin.cygnus.com)
2218
2219 * config/{hpux.mt, isc.mt, sco4.mt}:
2220 Moved from ../libg++/config (since they affect _G_config.h).
2221 * configure.in: Set target_make_frag to one of the above files.
2222
2223 Fri Aug 20 00:53:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
2224
2225 * iofopen.c (iofopen): Fix type passed to _IO_un_link().
2226 * Makefile.in (_G_config.h): Pass $CC (not $CXX) as CC.
2227
2228 * configure.in (configdirs): Add dbz and stdio.
2229 * fileops.c (_IO_file_seekoff): Convert more old functionality.
2230 * iofdopen.c: Use mode parameter to set _flags.
2231 * iofscanf.c, ioputs.c, ioscanf.c, iosprintf.c: New files.
2232 * Makefile.in (IO_OBJECTS): Added new objects.
2233 * iostdio.h: Add feof. fscanf, puts, sprintf, vsprintf.
2234 * libio.h: Add _IO_vprintf macro.
2235 * iofopen.c: Invoke _IO_un_link if failure.
2236 * iovsprintf.c: Write terminating NUL.
2237
2238 * libioP.h: Add COERCE_FILE macro (by default does nothing).
2239 * iofclose.c, iofflush.c, iofgets.c, iofprintf.c, iofputs.c,
2240 iofread.c, ioftell.c, iofwrite.c, iosetbuf.c, iosetvbuf.c:
2241 Invoke COERCE_FILE macro.
2242 * ioftell.c: Use _IO_seekoff.
2243
2244 Wed Aug 18 22:49:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
2245
2246 * sbform.cc (streambuf::form), sbscan.cc (streambuf::scan):
2247 Remove cast to _IO_va_list. (Loses if array type.)
2248
2249 * libio.h: Handle _IO_va_list for systems that need <stdarg.h>.
2250 * floatconv.h: Fix typo (reported by H.J.Lu).
2251
2252 Wed Aug 18 19:34:04 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2253
2254 * configure.in (INSTALLDIR): handle native vs. cross case
2255
2256 * Makefile.in (install): don't use $TARGETLIB, set INSTALLDIR to
2257 $(libdir)
2258
2259 Wed Aug 18 12:10:03 1993 Per Bothner (bothner@kalessin.cygnus.com)
2260
2261 * Makefile.in: Rename iostream-files to iostream.list.
2262 * configure.in: Add iostream.list to MOSTLYCLEAN.
2263
2264 Tue Aug 17 18:56:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
2265
2266 * Makefile.in: Depend on _G_config.h where appropriate.
2267 * config.shared (CXXINCLUDES): If doing libg++, search ../libio.
2268
2269 Tue Aug 17 17:34:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
2270
2271 New directory. Based on old libg++/iostream code,
2272 but extensively re-written.
2273
2274
This page took 0.133412 seconds and 6 git commands to generate.