Skip to content

Commit

Permalink
spelling fixes #827
Browse files Browse the repository at this point in the history
  • Loading branch information
epmatsw authored and justinmk committed Jun 13, 2014
1 parent 168575f commit 5b3b3fd
Show file tree
Hide file tree
Showing 30 changed files with 51 additions and 51 deletions.
4 changes: 2 additions & 2 deletions Doxyfile
Expand Up @@ -42,7 +42,7 @@ PROJECT_NUMBER =

PROJECT_BRIEF =

# With the PROJECT_LOGO tag one can specify an logo or icon that is
# With the PROJECT_LOGO tag one can specify a logo or icon that is
# included in the documentation. The maximum height of the logo should not
# exceed 55 pixels and the maximum width should not exceed 200 pixels.
# Doxygen will copy the logo to the output directory.
Expand Down Expand Up @@ -1670,7 +1670,7 @@ PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------

# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
# generate an inheritance diagram (in HTML, RTF and LaTeX) for classes with base
# or super classes. Setting the tag to NO turns the diagrams off. Note that
# this option also works with HAVE_DOT disabled, but it is recommended to
# install and use dot, since it yields more powerful graphs.
Expand Down
4 changes: 2 additions & 2 deletions clint.py
Expand Up @@ -1393,7 +1393,7 @@ def Update(self, filename, clean_lines, linenum, error):

token = matched.group(1)
if token == '{':
# If namespace or class hasn't seen a opening brace yet, mark
# If namespace or class hasn't seen an opening brace yet, mark
# namespace/class head as complete. Push a new block onto the
# stack otherwise.
if not self.SeenOpenBrace():
Expand Down Expand Up @@ -3030,7 +3030,7 @@ def ParseArguments(args):
try:
_valid_extensions = set(val.split(','))
except ValueError:
PrintUsage('Extensions must be comma seperated list.')
PrintUsage('Extensions must be comma separated list.')

if not filenames:
PrintUsage('No files were specified.')
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/buffer.c
Expand Up @@ -1215,7 +1215,7 @@ void enter_buffer(buf_T *buf)
/* Make sure the buffer is loaded. */
if (curbuf->b_ml.ml_mfp == NULL) { /* need to load the file */
/* If there is no filetype, allow for detecting one. Esp. useful for
* ":ball" used in a autocommand. If there already is a filetype we
* ":ball" used in an autocommand. If there already is a filetype we
* might prefer to keep it. */
if (*curbuf->b_p_ft == NUL)
did_filetype = FALSE;
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/farsi.c
Expand Up @@ -2204,7 +2204,7 @@ static int F_isterm(int c)
return FALSE;
}

/// Convert the given Farsi character into a ending type.
/// Convert the given Farsi character into an ending type.
///
/// @param c The character to convert.
///
Expand Down
4 changes: 2 additions & 2 deletions src/nvim/file_search.c
Expand Up @@ -130,7 +130,7 @@ typedef struct ff_visited {
* 3) search from Vims current directory downwards for the file "tags"
* As you can see, the first and the third search are for the same file, so for
* the third search we can use the visited list of the first search. For the
* second search we must start from a empty visited list.
* second search we must start from an empty visited list.
* The struct ff_visited_list_hdr is used to manage a linked list of already
* visited lists.
*/
Expand Down Expand Up @@ -1089,7 +1089,7 @@ static int ff_check_visited(ff_visited_T **visited_list, char_u *fname, char_u *
bool url = false;

FileInfo file_info;
// For an URL we only compare the name, otherwise we compare the
// For a URL we only compare the name, otherwise we compare the
// device/inode.
if (path_with_url(fname)) {
vim_strncpy(ff_expand_buffer, fname, MAXPATHL - 1);
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/fileio.c
Expand Up @@ -1001,7 +1001,7 @@ readfile (
* We allocate as much space for the file as we can get, plus
* space for the old line plus room for one terminating NUL.
* The amount is limited by the fact that read() only can read
* upto max_unsigned characters (and other things).
* up to max_unsigned characters (and other things).
*/
{
if (!skip_read) {
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/getchar.c
Expand Up @@ -2414,7 +2414,7 @@ inchar (
}

/*
* Don't reset these when at the hit-return prompt, otherwise a endless
* Don't reset these when at the hit-return prompt, otherwise an endless
* recursive loop may result (write error in swapfile, hit-return, timeout
* on char wait, flush swapfile, write error....).
*/
Expand Down
6 changes: 3 additions & 3 deletions src/nvim/indent_c.c
Expand Up @@ -2121,7 +2121,7 @@ int get_c_indent(void)
*/
if (curwin->w_cursor.lnum <= ourscope) {
/* we reached end of scope:
* if looking for a enum or structure initialization
* if looking for an enum or structure initialization
* go further back:
* if it is an initializer (enum xxx or xxx =), then
* don't add ind_continuation, otherwise it is a variable
Expand Down Expand Up @@ -2184,7 +2184,7 @@ int get_c_indent(void)
if (terminated == ',')
break;

/* if it es a enum declaration or an assignment,
/* if it is an enum declaration or an assignment,
* we are done.
*/
if (terminated != ';' && cin_isinit())
Expand Down Expand Up @@ -2472,7 +2472,7 @@ int get_c_indent(void)
* 123,
* sizeof
* here
* Otherwise check whether it is a enumeration or structure
* Otherwise check whether it is an enumeration or structure
* initialisation (not indented) or a variable declaration
* (indented).
*/
Expand Down
4 changes: 2 additions & 2 deletions src/nvim/memline.c
Expand Up @@ -2973,7 +2973,7 @@ static int ml_add_stack(buf_T *buf)
* Update the pointer blocks on the stack for inserted/deleted lines.
* The stack itself is also updated.
*
* When a insert/delete line action fails, the line is not inserted/deleted,
* When an insert/delete line action fails, the line is not inserted/deleted,
* but the pointer blocks have already been updated. That is fixed here by
* walking through the stack.
*
Expand Down Expand Up @@ -3383,7 +3383,7 @@ findswapname (
process_still_running = FALSE;
#endif
/*
* If there is an SwapExists autocommand and we can handle
* If there is a SwapExists autocommand and we can handle
* the response, trigger it. It may return 0 to ask the
* user anyway.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/nvim/message.c
Expand Up @@ -2806,7 +2806,7 @@ copy_char (
///
/// @param message Message which will be part of the confirm_msg
/// @param buttons String containing button names
/// @param[out] has_hotkey A element in this array is set to true if
/// @param[out] has_hotkey An element in this array is set to true if
/// corresponding button has a hotkey
///
/// @return Pointer to memory allocated for storing hotkeys
Expand Down Expand Up @@ -2885,7 +2885,7 @@ static char_u *msg_show_console_dialog(char_u *message, char_u *buttons, int dfl
/// @param message Message which will be part of the confirm_msg
/// @param buttons String containing button names
/// @param default_button_idx Number of default button
/// @param has_hotkey A element in this array is true if corresponding button
/// @param has_hotkey An element in this array is true if corresponding button
/// has a hotkey
/// @param[out] hotkeys_ptr Pointer to the memory location where hotkeys will be copied
static void copy_hotkeys_and_msg(const char_u *message, char_u *buttons,
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/ops.c
Expand Up @@ -334,7 +334,7 @@ static void shift_block(oparg_T *oap, int amount)
* 3. Divvy into TABs & spp
* 4. Construct new string
*/
total += bd.pre_whitesp; /* all virtual WS upto & incl a split TAB */
total += bd.pre_whitesp; /* all virtual WS up to & incl a split TAB */
ws_vcol = bd.start_vcol - bd.pre_whitesp;
if (bd.startspaces) {
if (has_mbyte)
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/os/env.c
Expand Up @@ -63,7 +63,7 @@ int64_t os_get_pid()
#endif
}

/// Get the hostname of the machine runing Neovim.
/// Get the hostname of the machine running Neovim.
///
/// @param hostname Buffer to store the hostname.
/// @param len Length of `hostname`.
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/os/event.c
Expand Up @@ -74,7 +74,7 @@ bool event_poll(int32_t ms)
// Timeout passed as argument to the timer
timer.data = &timed_out;
// We only start the timer after the loop is running, for that we
// use an prepare handle(pass the interval as data to it)
// use a prepare handle(pass the interval as data to it)
timer_prepare.data = &ms;
uv_prepare_start(&timer_prepare, timer_prepare_cb);
} else if (ms == 0) {
Expand Down
8 changes: 4 additions & 4 deletions src/nvim/os/fs.c
Expand Up @@ -148,7 +148,7 @@ static bool is_executable_in_path(const char_u *name)

/// Get stat information for a file.
///
/// @return OK on success, FAIL if an failure occured.
/// @return OK on success, FAIL if a failure occurred.
int os_stat(const char_u *name, uv_stat_t *statbuf)
{
uv_fs_t request;
Expand Down Expand Up @@ -299,7 +299,7 @@ int os_remove(const char *path)
///
/// @param file_descriptor File descriptor of the file.
/// @param[out] file_info Pointer to a FileInfo to put the information in.
/// @return `true` on sucess, `false` for failure.
/// @return `true` on success, `false` for failure.
bool os_get_file_info(const char *path, FileInfo *file_info)
{
if (os_stat((char_u *)path, &(file_info->stat)) == OK) {
Expand All @@ -312,7 +312,7 @@ bool os_get_file_info(const char *path, FileInfo *file_info)
///
/// @param path Path to the file.
/// @param[out] file_info Pointer to a FileInfo to put the information in.
/// @return `true` on sucess, `false` for failure.
/// @return `true` on success, `false` for failure.
bool os_get_file_info_link(const char *path, FileInfo *file_info)
{
uv_fs_t request;
Expand All @@ -329,7 +329,7 @@ bool os_get_file_info_link(const char *path, FileInfo *file_info)
///
/// @param file_descriptor File descriptor of the file.
/// @param[out] file_info Pointer to a FileInfo to put the information in.
/// @return `true` on sucess, `false` for failure.
/// @return `true` on success, `false` for failure.
bool os_get_file_info_fd(int file_descriptor, FileInfo *file_info)
{
uv_fs_t request;
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/os/msgpack_rpc.h
Expand Up @@ -53,7 +53,7 @@ void msgpack_rpc_error(char *msg, msgpack_packer *res)
///
/// @param obj The object to convert
/// @param[out] arg A pointer to the avalue
/// @return true if the convertion succeeded, false otherwise
/// @return true if the conversion succeeded, false otherwise
bool msgpack_rpc_to_boolean(msgpack_object *obj, Boolean *arg)
FUNC_ATTR_NONNULL_ALL;
bool msgpack_rpc_to_integer(msgpack_object *obj, Integer *arg)
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/os/rstream.c
Expand Up @@ -110,7 +110,7 @@ void rstream_set_file(RStream *rstream, uv_file file)
}

if (rstream->file_type == UV_FILE) {
// Non-blocking file reads are simulated with a idle handle that reads
// Non-blocking file reads are simulated with an idle handle that reads
// in chunks of rstream->buffer_size, giving time for other events to
// be processed between reads.
rstream->fread_idle = xmalloc(sizeof(uv_idle_t));
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/os/server.c
Expand Up @@ -115,7 +115,7 @@ void server_start(char *endpoint)
uint32_t addr_len = ip_end - addr;

if (addr_len > sizeof(ip) - 1) {
// Maximum length of a ip address buffer is 15(eg: 255.255.255.255)
// Maximum length of an IP address buffer is 15(eg: 255.255.255.255)
addr_len = sizeof(ip);
}

Expand Down
2 changes: 1 addition & 1 deletion src/nvim/os/shell.c
Expand Up @@ -393,7 +393,7 @@ static void alloc_cb(uv_handle_t *handle, size_t suggested, uv_buf_t *buf)
static void read_cb(uv_stream_t *stream, ssize_t cnt, const uv_buf_t *buf)
{
// TODO(tarruda): avoid using a growable array for this, refactor the
// algorithm to call `ml_append` directly(skip unecessary copies/resizes)
// algorithm to call `ml_append` directly(skip unnecessary copies/resizes)
int i;
ProcessData *pdata = (ProcessData *)stream->data;

Expand Down
2 changes: 1 addition & 1 deletion src/nvim/os_unix.c
Expand Up @@ -1504,7 +1504,7 @@ typedef int (*INTPROCINT)(int);
*/
int mch_libcall(char_u *libname,
char_u *funcname,
char_u *argstring, /* NULL when using a argint */
char_u *argstring, /* NULL when using an argint */
int argint,
char_u **string_result, /* NULL when using number_result */
int *number_result)
Expand Down
4 changes: 2 additions & 2 deletions src/nvim/path.c
Expand Up @@ -1905,12 +1905,12 @@ int path_full_dir_name(char *directory, char *buffer, int len)
}

if (os_chdir(directory) != SUCCESS) {
// Do not return immediatly since we may be in the wrong directory.
// Do not return immediately since we may be in the wrong directory.
retval = FAIL;
}

if (retval == FAIL || os_dirname((char_u *) buffer, len) == FAIL) {
// Do not return immediatly since we are in the wrong directory.
// Do not return immediately since we are in the wrong directory.
retval = FAIL;
}

Expand Down
6 changes: 3 additions & 3 deletions src/nvim/search.c
Expand Up @@ -60,7 +60,7 @@
* String searches
*
* The string search functions are divided into two levels:
* lowest: searchit(); uses an pos_T for starting position and found match.
* lowest: searchit(); uses a pos_T for starting position and found match.
* Highest: do_search(); uses curwin->w_cursor; calls searchit().
*
* The last search pattern is remembered for repeating the same search.
Expand Down Expand Up @@ -1475,7 +1475,7 @@ pos_T *findmatchlimit(oparg_T *oap, int initc, int flags, int maxtravel)
/*
* if initc given, look in the table for the matching character
* '/' and '*' are special cases: look for start or end of comment.
* When '/' is used, we ignore running backwards into an star-slash, for
* When '/' is used, we ignore running backwards into a star-slash, for
* "[*" command, we just want to find any comment.
*/
if (initc == '/' || initc == '*') {
Expand Down Expand Up @@ -2091,7 +2091,7 @@ int findsent(int dir, long count)

while (count--) {
/*
* if on an empty line, skip upto a non-empty line
* if on an empty line, skip up to a non-empty line
*/
if (gchar_pos(&pos) == NUL) {
do
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/tag.c
Expand Up @@ -309,7 +309,7 @@ do_tag (
tagstackidx = oldtagstackidx; /* back to old posn */
goto end_do_tag;
}
/* An BufReadPost autocommand may jump to the '" mark, but
/* A BufReadPost autocommand may jump to the '" mark, but
* we don't what that here. */
curwin->w_cursor.lnum = saved_fmark.mark.lnum;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/nvim/window.c
Expand Up @@ -3252,7 +3252,7 @@ win_goto_ver (
foundfr = curwin->w_frame;
while (count--) {
/*
* First go upwards in the tree of frames until we find a upwards or
* First go upwards in the tree of frames until we find an upwards or
* downwards neighbor.
*/
fr = foundfr;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/formatc.lua
Expand Up @@ -36,7 +36,7 @@ local tokens = P { "tokens";
-- Single line comment
line_comment = Ct(P"//" * C((1 - V"newline")^0) * Cc"comment_line"),
-- Single platform independant line break which increments line number
-- Single platform independent line break which increments line number
newline = (P"\r\n" + P"\n\r" + S"\r\n") * (Cp() * Carg(1)) / function(pos, state)
state.line = state.line + 1
state.line_start = pos
Expand Down
2 changes: 1 addition & 1 deletion test/unit/os/env.moon
Expand Up @@ -93,7 +93,7 @@ describe 'env function', ->
pid = tonumber (stat_str\match '%d+')
eq pid, tonumber env.os_get_pid!
else
-- /proc is not avaliable on all systems, test if pid is nonzero.
-- /proc is not available on all systems, test if pid is nonzero.
eq true, (env.os_get_pid! > 0)

describe 'os_get_hostname', ->
Expand Down
8 changes: 4 additions & 4 deletions test/unit/os/fs.moon
Expand Up @@ -283,7 +283,7 @@ describe 'fs function', ->
fs.os_rmdir (to_cstr path)

describe 'os_mkdir', ->
it 'returns non-zero when given a already existing directory', ->
it 'returns non-zero when given an already existing directory', ->
mode = ffi.C.kS_IRUSR + ffi.C.kS_IWUSR + ffi.C.kS_IXUSR
neq 0, (os_mkdir 'unit-test-directory', mode)

Expand Down Expand Up @@ -315,7 +315,7 @@ describe 'fs function', ->
file_info[0].stat.st_ino > 0 and file_info[0].stat.st_dev > 0

describe 'os_get_file_info', ->
it 'returns false if given an non-existing file', ->
it 'returns false if given a non-existing file', ->
file_info = file_info_new!
assert.is_false (fs.os_get_file_info '/non-existent', file_info)

Expand All @@ -334,7 +334,7 @@ describe 'fs function', ->
eq ffi.C.kS_IFREG, (bit.band mode, ffi.C.kS_IFMT)

describe 'os_get_file_info_link', ->
it 'returns false if given an non-existing file', ->
it 'returns false if given a non-existing file', ->
file_info = file_info_new!
assert.is_false (fs.os_get_file_info_link '/non-existent', file_info)

Expand All @@ -357,7 +357,7 @@ describe 'fs function', ->
file_info = file_info_new!
assert.is_false (fs.os_get_file_info_fd -1, file_info)

it 'returns true if given an file descriptor and fills file_info', ->
it 'returns true if given a file descriptor and fills file_info', ->
file_info = file_info_new!
path = 'unit-test-directory/test.file'
fd = ffi.C.open path, 0
Expand Down

1 comment on commit 5b3b3fd

@Yomi0
Copy link

@Yomi0 Yomi0 commented on 5b3b3fd Apr 18, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What'd you use to correct the mistakes?
Aspell?

Please sign in to comment.