diff options
Diffstat (limited to 'libgeome.h')
| -rw-r--r-- | libgeome.h | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -76,9 +76,9 @@ enum libgeome_portability { LIBGEOME_PORTABLE, /** - * The user hsa specified that the is often + * The user has specified that the machine is often * on the move when in use and that it is - * useful to keep the locations updated with + * useful to keep the location updated with * short intervals */ LIBGEOME_MOBILE @@ -258,7 +258,7 @@ extern const char *const libgeome_default_geolocation_file; /** - * Create a basic initialisation for `struct libgeome_context` + * Create a basic initialisation of `struct libgeome_context` * * Note that the implementation will use `ctx_out->user_data` to store `procname` * there. It will not make a copy of `procname`, so `procname` must be valid while @@ -272,13 +272,13 @@ extern const char *const libgeome_default_geolocation_file; * @param ctx_out Structure to initialise * @param procname The name of the process, will be prefixed to all outputs * using the format `"%s: ", procname`. It may be a good idea - * to add prepend ": libgeome: " to make it clear that the + * to prepend ": libgeome: " to make it clear that the * output comes from libgeome */ void libgeome_basic_context(struct libgeome_context *ctx_out, const char *procname); /** - * Get the machine's partability class + * Get the machine's portability class * * @param ctx Library context * @param out Output parameter @@ -341,7 +341,7 @@ int libgeome_get_from_timezone(struct libgeome_context *ctx, struct libgeome_dat int libgeome_get_from_file(struct libgeome_context *ctx, struct libgeome_data *out, const char *path); /** - * Spawn a program and read it's standard output + * Spawn a program and read its standard output * to get the user's location data * * @param ctx Library context @@ -357,26 +357,26 @@ int libgeome_get_from_command(struct libgeome_context *ctx, struct libgeome_data unsigned int alarm_sec, const char *path, const char *const *argv); /** - * Spawn a program and read it's standard output + * Spawn a program and read its standard output * to get the user's location data * * `path` and elements of `argv` are subject to %-substitution * using the following rules: * * - The string is parsed from left to right - * - Any '%' trigger substitutation + * - Any '%' triggers substitution * - If the next character is not '%', the "%%" is replaced with a literal "%" - * - Otherwise the next character character must be '{' and '%' marks the beginning + * - Otherwise the next character must be '{' and '%' marks the beginning * of a %-pattern. * - Within a %-pattern "%%" is replaced with "%" and "%}" with "}", and no other * use of "%" is invalid (nested patterns are disallowed). - * - A %-pattern ends with the first other occurance of a '}' + * - A %-pattern ends with the next occurrence of a '}' * - Each %-pattern shall be on one of the two forms: * - "%%{%u:%s}", <feature set>, <text> * - "%%{!%u:%s}", <feature set>, <text> - * The if the first pattern is used the pattern is deleted and only replaced with + * If the first pattern is used the pattern is deleted and only replaced with * <text> if `out->requested_data & <feature set>` is non-zero. - * The if the second pattern is used the pattern is deleted and only replaced with + * If the second pattern is used the pattern is deleted and only replaced with * <text> if `out->requested_data & <feature set>` is zero. * <feature set> must be positive. * @@ -395,7 +395,7 @@ int libgeome_get_from_patterned_command(struct libgeome_context *ctx, struct lib unsigned int alarm_sec, const char *path, const char *const *argv); /** - * Spawn a program and read it's standard output + * Spawn a program and read its standard output * to get the user's location data * * @param ctx Library context |
