[PATCH] dmime: Make some 'stream chunk' functions static.

Francois Gouget fgouget at free.fr
Thu Mar 15 12:13:45 CDT 2018


Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 dlls/dmime/dmobject.c | 6 +++---
 dlls/dmime/dmobject.h | 6 ------
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/dlls/dmime/dmobject.c b/dlls/dmime/dmobject.c
index 00e52f04b93..bd665d7aeb7 100644
--- a/dlls/dmime/dmobject.c
+++ b/dlls/dmime/dmobject.c
@@ -123,7 +123,7 @@ HRESULT stream_skip_chunk(IStream *stream, struct chunk_entry *chunk)
     return IStream_Seek(stream, end, STREAM_SEEK_SET, NULL);
 }
 
-HRESULT stream_next_chunk(IStream *stream, struct chunk_entry *chunk)
+static HRESULT stream_next_chunk(IStream *stream, struct chunk_entry *chunk)
 {
     HRESULT hr;
 
@@ -136,7 +136,7 @@ HRESULT stream_next_chunk(IStream *stream, struct chunk_entry *chunk)
     return stream_get_chunk(stream, chunk);
 }
 
-HRESULT stream_chunk_get_data(IStream *stream, const struct chunk_entry *chunk, void *data,
+static HRESULT stream_chunk_get_data(IStream *stream, const struct chunk_entry *chunk, void *data,
         ULONG size)
 {
     if (chunk->size != size) {
@@ -148,7 +148,7 @@ HRESULT stream_chunk_get_data(IStream *stream, const struct chunk_entry *chunk,
     return stream_read(stream, data, size);
 }
 
-HRESULT stream_chunk_get_wstr(IStream *stream, const struct chunk_entry *chunk, WCHAR *str,
+static HRESULT stream_chunk_get_wstr(IStream *stream, const struct chunk_entry *chunk, WCHAR *str,
         ULONG size)
 {
     ULONG len;
diff --git a/dlls/dmime/dmobject.h b/dlls/dmime/dmobject.h
index 2940225698e..aefa80a4122 100644
--- a/dlls/dmime/dmobject.h
+++ b/dlls/dmime/dmobject.h
@@ -32,14 +32,8 @@ struct chunk_entry {
 };
 
 HRESULT stream_get_chunk(IStream *stream, struct chunk_entry *chunk) DECLSPEC_HIDDEN;
-HRESULT stream_next_chunk(IStream *stream, struct chunk_entry *chunk) DECLSPEC_HIDDEN;
 HRESULT stream_skip_chunk(IStream *stream, struct chunk_entry *chunk) DECLSPEC_HIDDEN;
 
-HRESULT stream_chunk_get_data(IStream *stream, const struct chunk_entry *chunk, void *data,
-        ULONG size) DECLSPEC_HIDDEN;
-HRESULT stream_chunk_get_wstr(IStream *stream, const struct chunk_entry *chunk, WCHAR *str,
-        ULONG size) DECLSPEC_HIDDEN;
-
 const char *debugstr_chunk(const struct chunk_entry *chunk) DECLSPEC_HIDDEN;
 
 
-- 
2.16.1




More information about the wine-devel mailing list