mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng18] chore: Clean up the FILE * formulations in code and in documentation
We should use `FILE *` instead of `FILE*` or `(FILE*)`, consistently, as we should for all other pointer types. Moreover, when we refer to standard stdio file objects in comments and in documentation, we should use the term "FILE objects" consistently. Lastly, we clarify in a comment in example.c that `PNG_STDIO_SUPPORTED` is true only when the stdio support is both available in the system and accessible in the user's libpng build. This is a cherry-pick of commit c63c5463903014c904b540216c2784023fb8c1c8 from branch 'libpng18'. Reviewed-by: John Bowler <jbowler@acm.org> Signed-off-by: Cosmin Truta <ctruta@gmail.com>
This commit is contained in:
@@ -595,7 +595,8 @@ newimage(Image *image)
|
||||
memset(image, 0, sizeof *image);
|
||||
}
|
||||
|
||||
/* Reset the image to be read again - only needs to rewind the FILE* at present.
|
||||
/* Reset the image to be read again - only needs to rewind the FILE object at
|
||||
* present.
|
||||
*/
|
||||
static void
|
||||
resetimage(Image *image)
|
||||
|
||||
Reference in New Issue
Block a user