1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Add some missing consts in character set handling.

[originally from svn r9291]
This commit is contained in:
Simon Tatham
2011-09-16 19:18:52 +00:00
parent b53c04b43a
commit c8d943ed9d
7 changed files with 21 additions and 14 deletions

View File

@ -98,7 +98,8 @@ typedef struct {
* U+FFFD (REPLACEMENT CHARACTER).
*/
int charset_to_unicode(char **input, int *inlen, wchar_t *output, int outlen,
int charset_to_unicode(const char **input, int *inlen,
wchar_t *output, int outlen,
int charset, charset_state *state,
const wchar_t *errstr, int errlen);
@ -121,7 +122,8 @@ int charset_to_unicode(char **input, int *inlen, wchar_t *output, int outlen,
* output charset).
*/
int charset_from_unicode(wchar_t **input, int *inlen, char *output, int outlen,
int charset_from_unicode(const wchar_t **input, int *inlen,
char *output, int outlen,
int charset, charset_state *state,
const char *errstr, int errlen);

View File

@ -40,7 +40,8 @@ static void charset_emit(void *ctx, long int output)
}
}
int charset_from_unicode(wchar_t **input, int *inlen, char *output, int outlen,
int charset_from_unicode(const wchar_t **input, int *inlen,
char *output, int outlen,
int charset, charset_state *state,
const char *errstr, int errlen)
{

View File

@ -46,7 +46,8 @@ static void unicode_emit(void *ctx, long int output)
}
}
int charset_to_unicode(char **input, int *inlen, wchar_t *output, int outlen,
int charset_to_unicode(const char **input, int *inlen,
wchar_t *output, int outlen,
int charset, charset_state *state,
const wchar_t *errstr, int errlen)
{