Project

General

Profile

Feature #1005 » 0059-Fix-utility-comment-typos.patch

main - Marko Lindqvist, 10/22/2024 04:46 AM

View differences:

utility/inputfile.c
When the user tries to read a token, we return a (const char*)
pointing to some data if the token was found, or nullptr otherwise.
The data pointed to should not be modified. The retuned pointer
The data pointed to should not be modified. The returned pointer
is valid _only_ until another inputfile is performed. (So should
be used immediately, or fc_strdup-ed etc.)
utility/iterator.h
of the iteration loop.
FUNC_size - A function that returns the total size in bytes of a
'TYPE_it'.
FUNC_init - A "construtor" for 'TYPE_it' objects. It returns a pointer to
FUNC_init - A "constructor" for 'TYPE_it' objects. It returns a pointer to
a 'struct iterator' and takes as its first argument a pointer
to memory large enough to hold a 'TYPE_it' (this amount must
match the result of FUNC_size()). NB: This function must not
utility/rand.c
thus divisor <= (MAX_UINT32 + 1) / size
Need to calculate this divisor. Want divisor as large as possible
given above contraint, but it doesn't hurt us too much if it is a
bit smaller (just have to repeat more often). Calculation exactly
given above constraint, but it doesn't hurt us too much if it is
a bit smaller (just have to repeat more often). Calculation exactly
as above is complicated by fact that (MAX_UINT32 + 1) may not be
directly representable in type RANDOM_TYPE, so we do instead:
divisor = MAX_UINT32 / size
utility/registry_ini.c
The registry just ignores these extra markings, but this is
useful for marking strings for translations via gettext tools.
- Multiline strings: Strings can have embeded newlines, eg:
- Multiline strings: Strings can have embedded newlines, eg:
foo = _("
This is a string
over multiple lines
......
{
SECFILE_RETURN_IF_FAIL(nullptr, psection, psection != nullptr);
/* This include the removing of the hash datas. */
/* This include the removing of the hash data. */
entry_list_clear(psection->entries);
if (0 < entry_list_size(psection->entries)) {
utility/string_vector.c
}
/**********************************************************************//**
Returns the datas of the vector.
Returns the data of the vector.
**************************************************************************/
const char *const *strvec_data(const struct strvec *psv)
{
(1-1/3)