Fix typos

This commit is contained in:
Jonas Bernoulli
2019-11-06 16:13:39 +01:00
parent ed6842e5bd
commit f31d1b065d
39 changed files with 60 additions and 60 deletions

View File

@ -44,7 +44,7 @@ struct ContactInfo {
* Construct a new ContactInfo
*
* @param _full_address the full email address + name.
* @param _email email addres
* @param _email email address
* @param _name name or empty
* @param _personal is this a personal contact?
* @param _last_seen when was this contact last seen?
@ -145,7 +145,7 @@ public:
/**
* For C compatiblityy
*
* @return a MuContacts* refering to this.
* @return a MuContacts* referring to this.
*/
const MuContacts* mu_contacts() const {
return reinterpret_cast<const MuContacts*>(this);

View File

@ -42,7 +42,7 @@ G_BEGIN_DECLS
* @param t the time as time_t
*
* @return a string representation of the time; see above for what to
* do with it. Lenght is max. 128 bytes, inc. the ending \0. if the
* do with it. Length is max. 128 bytes, inc. the ending \0. if the
* format is too long, the value will be truncated. in practice this
* should not happen.
*/

View File

@ -119,7 +119,7 @@ typedef MuError (*MuIndexDirCallback) (const char* path, gboolean enter,
* @param cb_dir a callback function called for every dir entered/left or NULL
* @param user_data a user pointer that will be passed to the callback function
*
* @return MU_OK if the stats gathering was completed succesfully,
* @return MU_OK if the stats gathering was completed successfully,
* MU_STOP if the user stopped or MU_ERROR in
* case of some error.
*/
@ -144,7 +144,7 @@ MuError mu_index_run (MuIndex *index, const char *path, gboolean force,
* @param dir_cb a callback function which will be called for every dir or NULL
* @param user_data a user pointer that will be passed to the callback function
* xb
* @return MU_OK if the stats gathering was completed succesfully,
* @return MU_OK if the stats gathering was completed successfully,
* MU_STOP if the user stopped or MU_ERROR in
* case of some error.
*/
@ -177,7 +177,7 @@ typedef MuError (*MuIndexCleanupDeleteCallback) (MuIndexStats *stats,
* @param user_data a user pointer that will be passed to the callback function
* @param err to receive error info or NULL. err->code is MuError value
*
* @return MU_OK if the stats gathering was completed succesfully,
* @return MU_OK if the stats gathering was completed successfully,
* MU_STOP if the user stopped or MU_ERROR in
* case of some error.
*/

View File

@ -76,7 +76,7 @@ gboolean mu_log_init (const char *logfile, MuLogOptions opts)
gboolean mu_log_init_silence (void) G_GNUC_WARN_UNUSED_RESULT;
/**
* unitialize the logging system, and free all resources
* uninitialize the logging system, and free all resources
*/
void mu_log_uninit (void);

View File

@ -714,7 +714,7 @@ mu_maildir_get_flags_from_path (const char *path)
/*
* take an exising message path, and return a new path, based on
* take an existing message path, and return a new path, based on
* whether it should be in 'new' or 'cur'; ie.
*
* /home/user/Maildir/foo/bar/cur/abc:2,F and flags == MU_FLAG_NEW

View File

@ -167,7 +167,7 @@ guint mu_msg_iter_get_docid (MuMsgIter *iter);
*
* @param iter a valid MuMsgIter iterator
*
* @return TRUE if it worked, FALSE otherwsie.
* @return TRUE if it worked, FALSE otherwise.
*/
gboolean mu_msg_iter_calculate_threads (MuMsgIter *iter);
@ -185,7 +185,7 @@ enum _MuMsgIterThreadProp {
typedef guint8 MuMsgIterThreadProp;
struct _MuMsgIterThreadInfo {
gchar *threadpath; /* a string decribing the thread-path in
gchar *threadpath; /* a string describing the thread-path in
* such a way that we can sort by this
* string to get the right order. */
guint level; /* thread-depth -- [0...] */

View File

@ -444,7 +444,7 @@ add_file_parts (JsonBuilder *bob, MuMsg *msg, MuMsgOptions opts)
if (!mu_msg_load_msg_file (msg, &err)) {
g_warning ("failed to load message file: %s",
err ? err->message : "some error occured");
err ? err->message : "some error occurred");
g_clear_error (&err);
return;
}

View File

@ -62,7 +62,7 @@ MuMsgPrio mu_msg_prio_from_char (char k) G_GNUC_CONST;
* ('l'=>MU_MSG_PRIO_, 'n'=>MU_MSG_PRIO_NORMAL or
* 'h'=>MU_MSG_PRIO_HIGH)
*
* @param prio a mesage priority
* @param prio a message priority
*
* @return a shortcut character or 0 in case of error
*/

View File

@ -507,7 +507,7 @@ append_message_file_parts (GString *gstr, MuMsg *msg, MuMsgOptions opts)
if (!mu_msg_load_msg_file (msg, &err)) {
g_warning ("failed to load message file: %s",
err ? err->message : "some error occured");
err ? err->message : "some error occurred");
g_clear_error (&err);
return;
}

View File

@ -109,7 +109,7 @@ MuMsg *mu_msg_new_from_doc (XapianDocument* doc, GError **err)
* @param msg a MuMsg
* @param err receives error information
*
* @return TRUE if this succceeded, FALSE in case of error
* @return TRUE if this succeeded, FALSE in case of error
*/
gboolean mu_msg_load_msg_file (MuMsg *msg, GError **err);

View File

@ -36,7 +36,7 @@ typedef struct _MuQuery MuQuery;
* @param store a MuStore object
* @param err receives error information (if there is any); if
* function returns non-NULL, err will _not_be set. err can be NULL
* possble errors (err->code) are MU_ERROR_XAPIAN_DIR and
* possible errors (err->code) are MU_ERROR_XAPIAN_DIR and
* MU_ERROR_XAPIAN_NOT_UPTODATE
*
* @return a new MuQuery instance, or NULL in case of error.

View File

@ -29,7 +29,7 @@ G_BEGIN_DECLS
* initialize the mu runtime system; initializes logging and other
* systems. To uninitialize, use mu_runtime_uninit
*
* @param muhome path where to find the mu home directory (typicaly, ~/.mu)
* @param muhome path where to find the mu home directory (typically, ~/.mu)
* @param name of the main program, ie. 'mu', 'mug' or
* 'procmule'. this influences the name of the e.g. the logfile
*

View File

@ -45,7 +45,7 @@ public:
/**
* Construct a store for a not-yet-existing document database
*
* @param path path to the detabase
* @param path path to the database
* @param maildir maildir to use for this store
*/
Store (const std::string& path, const std::string& maildir);

View File

@ -77,7 +77,7 @@ char* mu_str_size (size_t s) G_GNUC_WARN_UNUSED_RESULT;
/**
* Replace all occurences of substr in str with repl
* Replace all occurrences of substr in str with repl
*
* @param str a string
* @param substr some string to replace

View File

@ -127,7 +127,7 @@ assert_no_duplicates (GHashTable *ids)
}
/* a referred message is a message that is refered by some other
/* a referred message is a message that is referred by some other
* message */
static MuContainer*
find_or_create_referred (GHashTable *id_table, const char *msgid,

View File

@ -285,7 +285,7 @@ typedef gpointer XapianEnquire;
#define MU_HANDLE_G_ERROR(GE) \
do { \
if (!(GE)) \
g_warning ("%s:%u: an error occured in %s", \
g_warning ("%s:%u: an error occurred in %s", \
__FILE__, __LINE__, __func__); \
else { \
g_warning ("error %u: %s", (GE)->code, (GE)->message); \
@ -466,7 +466,7 @@ typedef enum _MuError MuError;
*
* @param err errptr, or NULL
* @param errcode error code
* @param frm printf-style format, followed by paremeters
* @param frm printf-style format, followed by parameters
*
* @return FALSE
*/