This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 81a1d1d9293489d3f2f2688a9464953097e52b43
Author: Kim Woelders <[email protected]>
AuthorDate: Tue Feb 14 19:35:11 2023 +0100

    api: Cosmetics around image save functions
    
    Consistently use "file" for the file name in save functions as well as
    in load functions.
---
 src/lib/Imlib2.h.in | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/lib/Imlib2.h.in b/src/lib/Imlib2.h.in
index f5bb744..38ae41f 100644
--- a/src/lib/Imlib2.h.in
+++ b/src/lib/Imlib2.h.in
@@ -2553,11 +2553,12 @@ EAPI void           imlib_image_remove_and_free_attached_data_value(const char
  * Save image to file
  *
  * Saves the current image in the format specified by the current
- * image's format settings to the filename @p filename.
+ * image's format setting to the filename @p file.
+ * If the image's format is not set, the format is derived from @p file.
  *
- * @param filename      The file name
+ * @param file          The file name
  */
-EAPI void           imlib_save_image(const char *filename);
+EAPI void           imlib_save_image(const char *file);
 
 /**
  * Save image to file with error return
@@ -2569,10 +2570,10 @@ EAPI void           imlib_save_image(const char *filename);
  *   positive: Regular errnos,
  *   negative: IMLIB_ERR_... values, see above
  *
- * @param filename      The file name
+ * @param file          The file name
  * @param error_return  The returned error
  */
-EAPI void           imlib_save_image_with_errno_return(const char *filename,
+EAPI void           imlib_save_image_with_errno_return(const char *file,
                                                        int *error_return);
 
 /*--------------------------------
@@ -2948,13 +2949,13 @@ EAPI Imlib_Image    imlib_load_image_with_error_return(const char *file,
  * Works the same way imlib_save_image() works, but will set the
  * @p error_return to an error value if the save fails.
  *
- * @param filename      The file name
+ * @param file          The file name
  * @param error_return  The returned error
  *
  * @deprecated Use imlib_save_image_with_errno_return()
  */
 /* IMLIB2_DEPRECATED */
-EAPI void           imlib_save_image_with_error_return(const char *filename,
+EAPI void           imlib_save_image_with_error_return(const char *file,
                                                        Imlib_Load_Error *
                                                        error_return);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to