# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by scripts/Create-CopyPatch. # # T2 SDE: package/*/w3m/istream-file_handle-clash.patch # Copyright (C) 2021 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- --- w3m-0.5.3/istream.c.vanilla 2020-10-04 20:56:56.833182568 +0200 +++ w3m-0.5.3/istream.c 2020-10-04 20:57:22.200863653 +0200 @@ -22,8 +22,8 @@ static void basic_close(int *handle); static int basic_read(int *handle, char *buf, int len); -static void file_close(struct file_handle *handle); -static int file_read(struct file_handle *handle, char *buf, int len); +static void file_close(struct w3m_file_handle *handle); +static int file_read(struct w3m_file_handle *handle, char *buf, int len); static int str_read(Str handle, char *buf, int len); @@ -114,7 +114,7 @@ stream = New(union input_stream); init_base_stream(&stream->base, STREAM_BUF_SIZE); stream->file.type = IST_FILE; - stream->file.handle = New(struct file_handle); + stream->file.handle = New(struct w3m_file_handle); stream->file.handle->f = f; if (closep) stream->file.handle->close = closep; @@ -658,13 +658,13 @@ } static void -file_close(struct file_handle *handle) +file_close(struct w3m_file_handle *handle) { handle->close(handle->f); } static int -file_read(struct file_handle *handle, char *buf, int len) +file_read(struct w3m_file_handle *handle, char *buf, int len) { return fread(buf, 1, len, handle->f); } --- w3m-0.5.3/istream.h.vanilla 2020-10-04 20:56:36.809434301 +0200 +++ w3m-0.5.3/istream.h 2020-10-04 20:56:54.905206806 +0200 @@ -20,7 +20,7 @@ typedef struct stream_buffer *StreamBuffer; -struct file_handle { +struct w3m_file_handle { FILE *f; void (*close) (); }; @@ -53,7 +53,7 @@ struct file_stream { struct stream_buffer stream; - struct file_handle *handle; + struct w3m_file_handle *handle; char type; char iseos; int (*read) ();