Commit 88ec9150 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

webservices: Store xmlbuf encoding as unsigned int.

Avoids enum casts when it's used for reader.
parent 5d7156f1
...@@ -320,7 +320,7 @@ HRESULT WINAPI WsGetHeapProperty( WS_HEAP *handle, WS_HEAP_PROPERTY_ID id, void ...@@ -320,7 +320,7 @@ HRESULT WINAPI WsGetHeapProperty( WS_HEAP *handle, WS_HEAP_PROPERTY_ID id, void
} }
#define XML_BUFFER_INITIAL_ALLOCATED_SIZE 256 #define XML_BUFFER_INITIAL_ALLOCATED_SIZE 256
struct xmlbuf *alloc_xmlbuf( WS_HEAP *heap, SIZE_T size, WS_XML_WRITER_ENCODING_TYPE encoding, WS_CHARSET charset, struct xmlbuf *alloc_xmlbuf( WS_HEAP *heap, SIZE_T size, unsigned int encoding, WS_CHARSET charset,
const WS_XML_DICTIONARY *dict_static, WS_XML_DICTIONARY *dict ) const WS_XML_DICTIONARY *dict_static, WS_XML_DICTIONARY *dict )
{ {
struct xmlbuf *ret; struct xmlbuf *ret;
......
...@@ -27,7 +27,7 @@ struct xmlbuf ...@@ -27,7 +27,7 @@ struct xmlbuf
WS_HEAP *heap; WS_HEAP *heap;
WS_BYTES bytes; WS_BYTES bytes;
SIZE_T size; SIZE_T size;
WS_XML_WRITER_ENCODING_TYPE encoding; unsigned int encoding;
WS_CHARSET charset; WS_CHARSET charset;
const WS_XML_DICTIONARY *dict_static; const WS_XML_DICTIONARY *dict_static;
WS_XML_DICTIONARY *dict; WS_XML_DICTIONARY *dict;
...@@ -38,7 +38,7 @@ void *ws_alloc_zero( WS_HEAP *, SIZE_T ); ...@@ -38,7 +38,7 @@ void *ws_alloc_zero( WS_HEAP *, SIZE_T );
void *ws_realloc( WS_HEAP *, void *, SIZE_T, SIZE_T ); void *ws_realloc( WS_HEAP *, void *, SIZE_T, SIZE_T );
void *ws_realloc_zero( WS_HEAP *, void *, SIZE_T, SIZE_T ); void *ws_realloc_zero( WS_HEAP *, void *, SIZE_T, SIZE_T );
void ws_free( WS_HEAP *, void *, SIZE_T ); void ws_free( WS_HEAP *, void *, SIZE_T );
struct xmlbuf *alloc_xmlbuf( WS_HEAP *, SIZE_T, WS_XML_WRITER_ENCODING_TYPE, WS_CHARSET, struct xmlbuf *alloc_xmlbuf( WS_HEAP *, SIZE_T, unsigned int, WS_CHARSET,
const WS_XML_DICTIONARY *, WS_XML_DICTIONARY * ); const WS_XML_DICTIONARY *, WS_XML_DICTIONARY * );
void free_xmlbuf( struct xmlbuf * ); void free_xmlbuf( struct xmlbuf * );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment