mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 13:02:47 -05:00
Make bufchain_prefix return a ptrlen.
Now that all the call sites are expecting a size_t instead of an int length field, it's no longer particularly difficult to make it actually return the pointer,length pair in the form of a ptrlen. It would be nice to say that simplifies call sites because those ptrlens can all be passed straight along to other ptrlen-consuming functions. Actually almost none of the call sites are like that _yet_, but this makes it possible to move them in that direction in future (as part of my general aim to migrate ptrlen-wards as much as I can). But also it's just nicer to keep the pointer and length together in one variable, and not have to declare them both in advance with two extra lines of boilerplate.
This commit is contained in:
2
putty.h
2
putty.h
@ -1841,7 +1841,7 @@ printer_enum *printer_start_enum(int *nprinters);
|
||||
char *printer_get_name(printer_enum *, int);
|
||||
void printer_finish_enum(printer_enum *);
|
||||
printer_job *printer_start_job(char *printer);
|
||||
void printer_job_data(printer_job *, void *, int);
|
||||
void printer_job_data(printer_job *, const void *, size_t);
|
||||
void printer_finish_job(printer_job *);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user