diff options
Diffstat (limited to 'crawl-ref/source/tags.h')
-rw-r--r-- | crawl-ref/source/tags.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/tags.h b/crawl-ref/source/tags.h index 154cdef1ad..ebc61c6d4d 100644 --- a/crawl-ref/source/tags.h +++ b/crawl-ref/source/tags.h @@ -39,7 +39,8 @@ void marshallShort(struct tagHeader &th, short data); void marshallLong(struct tagHeader &th, long data); void marshallFloat(struct tagHeader &th, float data); void marshallBoolean(struct tagHeader &th, bool data); -void marshallString(struct tagHeader &th, const char *data, int maxSize = 0); +void marshallString(struct tagHeader &th, const std::string &data, + int maxSize = 0); void marshallCoord(tagHeader &th, const coord_def &c); // last updated 22jan2001 {gdl} @@ -51,8 +52,8 @@ short unmarshallShort(struct tagHeader &th); long unmarshallLong(struct tagHeader &th); float unmarshallFloat(struct tagHeader &th); bool unmarshallBoolean(struct tagHeader &th); -void unmarshallString(struct tagHeader &th, char *data, int maxSize); -std::string unmarshallString(tagHeader &th, int maxSize); +void unmarshallCString(struct tagHeader &th, char *data, int maxSize); +std::string unmarshallString(tagHeader &th, int maxSize = 1000); void unmarshallCoord(tagHeader &th, coord_def &c); std::string make_date_string( time_t in_date ); |