+2005-02-28 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * flower/memory-stream.cc:
+ * flower/libc-extension.cc: Remove obsolete #undefs.
+
+ * flower/include/libc-extension.hh: Bugfix for BSD, place #ifdef
+ more carefully.
+
2005-02-28 Han-Wen Nienhuys <hanwen@xs4all.nl>
* make/lilypond.fedora.spec.in (Requires): add GS 8.15 as
#include <libio.h>
#else
-#ifdef ALIAS_FILE_TO_FILECOOKIE
-
#define cookie_io_functions_t le_cookie_io_functions_t
typedef struct
{
int handle_cookie_io_fprintf (FILE *file, char const *format, ...);
int handle_cookie_io_putc (int c, FILE *file);
-/* FIXME: ttftool uses fclose fopencookie fprintf and putc only... */
+/* FIXME: ttftool uses fclose fopencookie fprintf and putc only. if
+ ALIAS_FILE_TO_FILECOOKIE, blondly redefine those functions
+ to wrappers that check for and handle Memory_out_stream. */
+#ifdef ALIAS_FILE_TO_FILECOOKIE
+
#define fclose handle_cookie_io_fclose
#define fprintf handle_cookie_io_fprintf
#ifdef putc
#undef putc
#endif
#define putc handle_cookie_io_putc
+
#endif /* ALIAS_FILE_TO_FILECOOKIE */
#endif /* ! HAVE_FUNOPEN */
return 0;
}
-#undef fclose
int
handle_cookie_io_fclose (FILE *file)
{
return fclose (file);
}
-#undef fprintf
int
handle_cookie_io_fprintf (FILE *file, char const *format, ...)
{
return i;
}
-#ifdef std_putc
-#define putc std_putc
-#else
-#undef putc
-#endif
int
handle_cookie_io_putc (int c, FILE *file)
{