]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Refactor read-desktop.h.
authorBruno Haible <bruno@clisp.org>
Thu, 1 Aug 2024 20:24:48 +0000 (22:24 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 1 Aug 2024 20:31:22 +0000 (22:31 +0200)
Rename the parameter of type 'struct desktop_reader_ty *' to reader.

* gettext-tools/src/read-desktop.h (struct desktop_reader_class_ty): Change
parameter names of methods.

gettext-tools/src/read-desktop.h

index 06f7ad100ff492b5fc274a6c5df8a2d099f46510..6bda42bb0433dfa06e76ac4d283d9fae8217c395 100644 (file)
@@ -1,5 +1,5 @@
 /* Reading Desktop Entry files.
-   Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2014-2016, 2020 Free Software Foundation, Inc.
+   Copyright (C) 1995-2024 Free Software Foundation, Inc.
    This file was written by Daiki Ueno <ueno@gnu.org>.
 
    This program is free software: you can redistribute it and/or modify
@@ -44,27 +44,27 @@ struct desktop_reader_class_ty
   size_t size;
 
   /* what to do immediately after the instance is malloc()ed */
-  void (*constructor) (struct desktop_reader_ty *pop);
+  void (*constructor) (struct desktop_reader_ty *reader);
 
   /* what to do immediately before the instance is free()ed */
-  void (*destructor) (struct desktop_reader_ty *pop);
+  void (*destructor) (struct desktop_reader_ty *reader);
 
   /* what to do with a group header */
-  void (*handle_group) (struct desktop_reader_ty *pop,
+  void (*handle_group) (struct desktop_reader_ty *reader,
                         const char *group);
 
   /* what to do with a key/value pair */
-  void (*handle_pair) (struct desktop_reader_ty *pop,
+  void (*handle_pair) (struct desktop_reader_ty *reader,
                        lex_pos_ty *key_pos,
                        const char *key,
                        const char *locale,
                        const char *value);
 
   /* what to do with a comment */
-  void (*handle_comment) (struct desktop_reader_ty *pop, const char *s);
+  void (*handle_comment) (struct desktop_reader_ty *reader, const char *s);
 
   /* what to do with a blank line */
-  void (*handle_blank) (struct desktop_reader_ty *pop, const char *s);
+  void (*handle_blank) (struct desktop_reader_ty *reader, const char *s);
 };
 
 /* This next structure defines the base class passed to the methods.