aboutsummaryrefslogtreecommitdiff
path: root/libio/strops.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-08-14 04:44:32 +0000
committerUlrich Drepper <drepper@redhat.com>2006-08-14 04:44:32 +0000
commit899937348376faa9092f123ffe7f000df0604b36 (patch)
treecaec59aba27b3b59dfef89257be8a802b1198f2f /libio/strops.c
parentfa3ac53fd90dbf5aea93985f84d0813a58c751aa (diff)
downloadglibc-899937348376faa9092f123ffe7f000df0604b36.zip
glibc-899937348376faa9092f123ffe7f000df0604b36.tar.gz
glibc-899937348376faa9092f123ffe7f000df0604b36.tar.bz2
* libio/wstrops.c: Remove dead macro definitions and comments.
* libio/strops.c: Likewise.
Diffstat (limited to 'libio/strops.c')
-rw-r--r--libio/strops.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/libio/strops.c b/libio/strops.c
index 2de8340..da60e93 100644
--- a/libio/strops.c
+++ b/libio/strops.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1997-2003, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1997-2003, 2004, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -30,38 +30,6 @@
#include <string.h>
#include <stdio_ext.h>
-#if 0
-/* The following definitions are for exposition only.
- They map the terminology used in the ANSI/ISO C++ draft standard
- to the implementation. */
-
-/* allocated: set when a dynamic array object has been allocated, and
- hence should be freed by the destructor for the strstreambuf object. */
-#define ALLOCATED(FP) ((FP)->_f._IO_buf_base && DYNAMIC(FP))
-
-/* constant: set when the array object has const elements,
- so the output sequence cannot be written. */
-#define CONSTANT(FP) ((FP)->_f._IO_file_flags & _IO_NO_WRITES)
-
-/* alsize: the suggested minimum size for a dynamic array object. */
-#define ALSIZE(FP) ??? /* not stored */
-
-/* palloc: points to the function to call to allocate a dynamic array object.*/
-#define PALLOC(FP) \
- ((FP)->_s._allocate_buffer == default_alloc ? 0 : (FP)->_s._allocate_buffer)
-
-/* pfree: points to the function to call to free a dynamic array object. */
-#define PFREE(FP) \
- ((FP)->_s._free_buffer == default_free ? 0 : (FP)->_s._free_buffer)
-
-#endif
-
-#ifdef TODO
-/* An "unbounded buffer" is when a buffer is supplied, but with no
- specified length. An example is the buffer argument to sprintf.
- */
-#endif
-
void
_IO_str_init_static_internal (sf, ptr, size, pstart)
_IO_strfile *sf;