change all length agruments and return types to size_t or ssize_t
This commit is contained in:
@ -38,8 +38,8 @@
|
||||
class RegexpConverter : public StreamFormatConverter
|
||||
{
|
||||
int parse (const StreamFormat& fmt, StreamBuffer&, const char*&, bool);
|
||||
long scanString(const StreamFormat& fmt, const char*, char*, unsigned long&);
|
||||
long scanPseudo(const StreamFormat& fmt, StreamBuffer& input, long& cursor);
|
||||
ssize_t scanString(const StreamFormat& fmt, const char*, char*, unsigned long&);
|
||||
ssize_t scanPseudo(const StreamFormat& fmt, StreamBuffer& input, size_t& cursor);
|
||||
bool printPseudo(const StreamFormat& fmt, StreamBuffer& output);
|
||||
};
|
||||
|
||||
@ -115,9 +115,9 @@ parse(const StreamFormat& fmt, StreamBuffer& info,
|
||||
return string_format;
|
||||
}
|
||||
|
||||
long RegexpConverter::
|
||||
ssize_t RegexpConverter::
|
||||
scanString(const StreamFormat& fmt, const char* input,
|
||||
char* value, unsigned long& size)
|
||||
char* value, size_t& size)
|
||||
{
|
||||
int ovector[30];
|
||||
int rc;
|
||||
@ -229,8 +229,8 @@ static void regsubst(const StreamFormat& fmt, StreamBuffer& buffer, long start)
|
||||
}
|
||||
}
|
||||
|
||||
long RegexpConverter::
|
||||
scanPseudo(const StreamFormat& fmt, StreamBuffer& input, long& cursor)
|
||||
ssize_t RegexpConverter::
|
||||
scanPseudo(const StreamFormat& fmt, StreamBuffer& input, ssize_t& cursor)
|
||||
{
|
||||
/* re-write input buffer */
|
||||
regsubst(fmt, input, cursor);
|
||||
|
Reference in New Issue
Block a user