}
static inline void
-call_comment_filepos (abstract_catalog_reader_ty *pop, const char *name,
- size_t line)
+call_comment_filepos (abstract_catalog_reader_ty *pop,
+ const char *file_name, size_t line_number)
{
if (pop->methods->comment_filepos)
- pop->methods->comment_filepos (pop, name, line);
+ pop->methods->comment_filepos (pop, file_name, line_number);
}
static inline void
/* This function is called by po_parse_comment_filepos(), once for each
- filename. */
+ file name. */
void
-po_callback_comment_filepos (const char *name, size_t line)
+po_callback_comment_filepos (const char *file_name, size_t line_number)
{
/* assert(callback_arg); */
- call_comment_filepos (callback_arg, name, line);
+ call_comment_filepos (callback_arg, file_name, line_number);
}
/* Reading PO files, abstract class.
- Copyright (C) 1995-1996, 1998, 2000-2003, 2005-2006, 2008-2009, 2012, 2015, 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>
definition seen. Or completely ignored. */
void (*comment) (struct abstract_catalog_reader_ty *pop, const char *s);
- /* What to do with a comment that starts with a dot (i.e. extracted
+ /* What to do with a comment that starts with a dot (i.e. extracted
by xgettext) - the expectation is that they will be accumulated,
and added to the next message definition seen. Or completely
ignored. */
they will be accumulated, and added to the next message
definition seen. Or completely ignored. */
void (*comment_filepos) (struct abstract_catalog_reader_ty *pop,
- const char *s, size_t line);
+ const char *file_name, size_t line_number);
/* What to do with a comment that starts with a ',' or '!' - this is a
special comment. One of the possible uses is to indicate a
bool force_fuzzy, bool obsolete);
extern void po_callback_comment (const char *s);
extern void po_callback_comment_dot (const char *s);
-extern void po_callback_comment_filepos (const char *s, size_t line);
+extern void po_callback_comment_filepos (const char *file_name,
+ size_t line_number);
extern void po_callback_comment_special (const char *s);
extern void po_callback_comment_dispatcher (const char *s);
/* Reading PO files.
- Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2014-2016, 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>
This program is free software: you can redistribute it and/or modify
void
default_comment_filepos (abstract_catalog_reader_ty *that,
- const char *name, size_t line)
+ const char *file_name, size_t line_number)
{
default_catalog_reader_ty *this = (default_catalog_reader_ty *) that;
size_t nbytes;
nbytes = (this->filepos_count + 1) * sizeof (this->filepos[0]);
this->filepos = xrealloc (this->filepos, nbytes);
pp = &this->filepos[this->filepos_count++];
- pp->file_name = xstrdup (name);
- pp->line_number = line;
+ pp->file_name = xstrdup (file_name);
+ pp->line_number = line_number;
}
/* Reading PO files.
- Copyright (C) 1995-2023 Free Software Foundation, Inc.
+ Copyright (C) 1995-2024 Free Software Foundation, Inc.
This file was written by Bruno Haible <haible@clisp.cons.org>.
This program is free software: you can redistribute it and/or modify
extern void default_comment_dot (abstract_catalog_reader_ty *that,
const char *s);
extern void default_comment_filepos (abstract_catalog_reader_ty *that,
- const char *name, size_t line);
+ const char *file_name, size_t line_number);
extern void default_comment_special (abstract_catalog_reader_ty *that,
const char *s);
extern void default_set_domain (default_catalog_reader_ty *this, char *name);