aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-11-18 16:28:49 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-11-18 16:30:59 +0300
commit52d66c5783d39a23027102c3087eac8ef1c0f02f (patch)
tree6f75f5af844e4110ebea49954be8b966d4351f0f /src
parent02ab80c1f94ef89f5cf247a6d8baa7e612e51f25 (diff)
downloadsciteco-52d66c5783d39a23027102c3087eac8ef1c0f02f.tar.gz
fixed some common typos: "ie." and "eg.", "ocur" instead of "occur"
Diffstat (limited to 'src')
-rw-r--r--src/file-utils.c2
-rw-r--r--src/interface-curses/curses-icons.c2
-rw-r--r--src/interface-curses/interface.c2
-rw-r--r--src/memory.c10
-rw-r--r--src/parser.h6
-rw-r--r--src/spawn.c2
-rw-r--r--src/symbols.c2
-rw-r--r--src/undo.c2
8 files changed, 14 insertions, 14 deletions
diff --git a/src/file-utils.c b/src/file-utils.c
index 82df599..7839a38 100644
--- a/src/file-utils.c
+++ b/src/file-utils.c
@@ -314,7 +314,7 @@ teco_file_expand_path(const gchar *path)
* If G_FILE_TEST_EXISTS, both files and directories are completed.
* If G_FILE_TEST_IS_DIR, only directories will be completed.
* @param insert String to initialize with the autocompletion.
- * @return TRUE if the completion was unambiguous (eg. command can be terminated).
+ * @return TRUE if the completion was unambiguous (e.g. command can be terminated).
*/
gboolean
teco_file_auto_complete(const gchar *filename, GFileTest file_test, teco_string_t *insert)
diff --git a/src/interface-curses/curses-icons.c b/src/interface-curses/curses-icons.c
index 1a1ba3a..e2e4256 100644
--- a/src/interface-curses/curses-icons.c
+++ b/src/interface-curses/curses-icons.c
@@ -38,7 +38,7 @@ typedef struct {
* The following icons have initially been adapted from exa,
* but icons have since been added and removed.
*
- * They require fonts with additional symbols, eg.
+ * They require fonts with additional symbols, e.g.
* Nerd Fonts (https://www.nerdfonts.com/).
*
* They MUST be kept presorted, so we can perform binary searches.
diff --git a/src/interface-curses/interface.c b/src/interface-curses/interface.c
index 075c9c7..5984bcb 100644
--- a/src/interface-curses/interface.c
+++ b/src/interface-curses/interface.c
@@ -98,7 +98,7 @@
#if defined(NCURSES_UNIX) || defined(NETBSD_CURSES)
/**
* Whether Curses works on a real or pseudo TTY
- * (ie. classic use with terminal emulators on Unix)
+ * (i.e. classic use with terminal emulators on Unix)
*/
#define CURSES_TTY
#endif
diff --git a/src/memory.c b/src/memory.c
index 26cde55..653d1ef 100644
--- a/src/memory.c
+++ b/src/memory.c
@@ -102,7 +102,7 @@
*
* @par Size of the program break
* There is also the old-school technique of calculating the size
- * of the program break, ie. the effective size of the DATA segment.
+ * of the program break, i.e. the effective size of the DATA segment.
* This works under the assumption that all allocations are
* performed by extending the program break, as is __traditionally__
* done by malloc() and friends.
@@ -156,7 +156,7 @@
* but obviously won't work for shared libraries.
* - The portable dlsym() could be used to look up the original
* library symbol, but it may and does call malloc functions,
- * eg. calloc() on glibc.
+ * e.g. calloc() on glibc.
* Some people work around this using bootstrap makeshift allocators
* used only during dlsym().
* __In other words, there is no way to portably and reliably
@@ -169,7 +169,7 @@
* Otherwise the measurement is not precise and there can even
* be underruns. Thus we'd have to guard against underruns.
* - Unfortunately, it is undefined whether the "usable" size of
- * a heap object can change unwittingly, ie. not by malloc() or
+ * a heap object can change unwittingly, i.e. not by malloc() or
* realloc() on that same heap object, but for instance after a
* neighbouring heap object is freed.
* If this can happen, free() on that heap object might subtract
@@ -245,7 +245,7 @@
* optimization.
* - This approach has the same disadvantages as wrapping malloc() because
* of the unreliability of malloc_usable_size().
- * Furthermore, all allocations by glib (eg. g_strdup()) will be missed.
+ * Furthermore, all allocations by glib (e.g. g_strdup()) will be missed.
*
* @par Directly measuring the resident memory size
* It is of course possible to query the program's RSS via OS APIs.
@@ -280,7 +280,7 @@
* If disabled, we try to directly measure memory consumption using
* OS APIs.
* Polling of the RSS takes place in a dedicated thread that is started
- * on demand and paused whenever the main thread is idle (eg. waits for
+ * on demand and paused whenever the main thread is idle (e.g. waits for
* user input), so we don't waste cycles.
*/
diff --git a/src/parser.h b/src/parser.h
index 53eb76b..3d69013 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -186,7 +186,7 @@ struct teco_state_t {
teco_state_process_edit_cmd_cb_t process_edit_cmd_cb;
/**
- * Whether this state is a start state (ie. not within any
+ * Whether this state is a start state (i.e. not within any
* escape sequence etc.).
* This is separate of TECO_KEYMACRO_MASK_START which is set
* only in the main machine's start states.
@@ -432,7 +432,7 @@ typedef struct {
} teco_machine_scintilla_t;
typedef enum {
- /** Normal parsing - ie. execute while parsing */
+ /** Normal parsing - i.e. execute while parsing */
TECO_MODE_NORMAL = 0,
/** Parse, but don't execute until reaching not-yet-defined Goto-label */
TECO_MODE_PARSE_ONLY_GOTO,
@@ -448,7 +448,7 @@ typedef enum {
struct teco_machine_main_t {
teco_machine_t parent;
- /** Program counter, ie. pointer to the next character in the current macro frame */
+ /** Program counter, i.e. pointer to the next character in the current macro frame */
gsize macro_pc;
/**
diff --git a/src/spawn.c b/src/spawn.c
index 9816975..16ab082 100644
--- a/src/spawn.c
+++ b/src/spawn.c
@@ -711,7 +711,7 @@ teco_spawn_stdin_watch_cb(GIOChannel *chan, GIOCondition condition, gpointer dat
/*
* This cares about automatic EOL conversion and
* returns the number of consumed bytes.
- * If it can only write a part of the EOL sequence (ie. CR of CRLF)
+ * If it can only write a part of the EOL sequence (i.e. CR of CRLF)
* it may return a short byte count (possibly 0) which ensures that
* we do not yet remove the source.
*/
diff --git a/src/symbols.c b/src/symbols.c
index feead76..944d01d 100644
--- a/src/symbols.c
+++ b/src/symbols.c
@@ -286,7 +286,7 @@ gboolean teco_state_scintilla_symbols_process_edit_cmd(teco_machine_main_t *ctx,
*
* As a special exception, you can and must specify a
* Lexilla lexer name as a string argument for the \fBSCI_SETILEXER\fP
- * message, ie. in order to load a Lexilla lexer
+ * message, i.e. in order to load a Lexilla lexer
* (this works similar to the old \fBSCI_SETLEXERLANGUAGE\fP message).
*
* .BR Warning :
diff --git a/src/undo.c b/src/undo.c
index bc12107..c49405c 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -42,7 +42,7 @@ TECO_DEFINE_UNDO_SCALAR(gconstpointer);
* An undo token.
*
* Undo tokens are generated to revert any
- * changes to the editor state, ie. they
+ * changes to the editor state, i.e. they
* define an action to take upon rubout.
*
* Undo tokens are organized into an undo stack.