/* GNU gettext - internationalization aids
- Copyright (C) 1995-1998, 2000-2010, 2012-2013, 2015-2016, 2019-2020, 2023 Free Software Foundation, Inc.
+ Copyright (C) 1995-2024 Free Software Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
void
-message_comment_filepos (message_ty *mp, const char *name, size_t line)
+message_comment_filepos (message_ty *mp,
+ const char *file_name, size_t line_number)
{
size_t j;
size_t nbytes;
for (j = 0; j < mp->filepos_count; j++)
{
pp = &mp->filepos[j];
- if (strcmp (pp->file_name, name) == 0 && pp->line_number == line)
+ if (strcmp (pp->file_name, file_name) == 0
+ && pp->line_number == line_number)
return;
}
/* Insert the position at the end. Don't sort the file positions here. */
pp = &mp->filepos[mp->filepos_count++];
- pp->file_name = xstrdup (name);
- pp->line_number = line;
+ pp->file_name = xstrdup (file_name);
+ pp->line_number = line_number;
}
/* GNU gettext - internationalization aids
- Copyright (C) 1995-1998, 2000-2010, 2012-2013, 2015-2016, 2019-2020, 2023 Free Software Foundation, Inc.
+ Copyright (C) 1995-2024 Free Software Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
extern void
message_comment_dot_append (message_ty *mp, const char *comment);
extern void
- message_comment_filepos (message_ty *mp, const char *name, size_t line);
+ message_comment_filepos (message_ty *mp,
+ const char *file_name, size_t line_number);
extern message_ty *
message_copy (message_ty *mp);