From: Bruno Haible Date: Thu, 1 Aug 2024 20:24:48 +0000 (+0200) Subject: Refactor read-desktop.h. X-Git-Tag: v0.23~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c11ac480a3204115bd26c4a89d196f7551a8ef0f;p=thirdparty%2Fgettext.git Refactor read-desktop.h. 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. --- diff --git a/gettext-tools/src/read-desktop.h b/gettext-tools/src/read-desktop.h index 06f7ad100..6bda42bb0 100644 --- a/gettext-tools/src/read-desktop.h +++ b/gettext-tools/src/read-desktop.h @@ -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 . 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.