Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Jul 9, 2019
1 parent 1258adf commit ebdbd8e
Show file tree
Hide file tree
Showing 21 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion docs/development-process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ About documentation
* Update documents. man/\*.rst files are the source files of our man pages.
The man pages are for users. docs/\*.rst files explain experimental
new features. The files are for developers. The parts of contents
of docs/*.rst should be moved to man/\*.rst in the future.
of docs/\*.rst should be moved to man/\*.rst in the future.

* Write docs/parser-<NAME-OF-YOUR-PARSER>.rst as you want.
A FAQ and the design or your parser are common topics.
Expand Down
2 changes: 1 addition & 1 deletion docs/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ command can be used::

TAG FILE INFORMATION:

Psuedo-tag lines can be used to encode information into the tag file regarding
Pseudo-tag lines can be used to encode information into the tag file regarding
details about its content (e.g. have the tags been sorted?, are the optional
tagfields present?), and regarding the program used to generate the tag file.
This information can be used both to optimize use of the tag file (e.g.
Expand Down
4 changes: 2 additions & 2 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ Including line number to pattern field
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``--excmd=type`` specifies how ctags prints pattern field in a tags file.
Universal-ctags inroduces ``combine`` as a new ``type``.
Universal-ctags introduces ``combine`` as a new ``type``.

.. IN MAN PAGE
Expand Down Expand Up @@ -1805,7 +1805,7 @@ mapped to `$scope-kind`, and the name part to `$scope-name`.
file is generated by ctags with ``--fields=+Z``.

All symbols not prefixed with `$` are operators. When using these,
put them at the head(car) of list. The rest(cdr) of the list is
put them at the head (car) of list. The rest (cdr) of the list is
passed to the operator as arguments. Many of them are also available
in the Scheme language; see the other documents.

Expand Down
4 changes: 2 additions & 2 deletions docs/reporting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ U-ctags developers know the programming language that you are talking.
language object you asked tagging especially about kind. A person
extending a parser have to decide a kind of newly tagging language
object: reusing an existing kind or introducing a new kind.
U-ctags developers expect a report know the concent kind, field,
U-ctags developers expect a report know the concept kind, field,
and extra. ctags.1 man page of u-ctags explains them.

English is the native language of the head maintainer.
Expand Down Expand Up @@ -144,7 +144,7 @@ An example of good report
---------------------------------------------------------------------

For the following input file(input.f90), u-ctags reports incomplete pattern
for fuction `f` at the line 23.
for function `f` at the line 23.

::

Expand Down
4 changes: 2 additions & 2 deletions main/entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ static bool isTagWritable(const tagEntryInfo *const tag)
return false;

/* TODO: optimization
A Bitmasks represeting all enabled roles can be calculated at the
A Bitmasks represetting all enabled roles can be calculated at the
end of initializing the parser. Calculating each time when checking
a tag entry is not needed. */
for (unsigned int roleIndex = 0; roleIndex < available_roles; roleIndex++)
Expand Down Expand Up @@ -1359,7 +1359,7 @@ extern int makePlaceholder (const char *const name)
* from the input stream. In such case, initTagEntry fills
* the lineNumber field of the placeholder tag with 0.
* This breaks an assertion in makeTagEntry. Following adjustment
* is for avoding it.
* is for avoiding it.
*/
if (e.lineNumber == 0)
e.lineNumber = 1;
Expand Down
2 changes: 1 addition & 1 deletion main/entry_p.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Red Hat, INc.
* Copyright (c) 2017, Red Hat, Inc.
* Copyright (c) 2017, Masatake YAMATO
*
* This source code is released for free distribution under the terms of the
Expand Down
2 changes: 1 addition & 1 deletion main/entry_private.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Red Hat, INc.
* Copyright (c) 2017, Red Hat, Inc.
* Copyright (c) 2017, Masatake YAMATO
*
* This source code is released for free distribution under the terms of the
Expand Down
2 changes: 1 addition & 1 deletion main/kind.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ extern const scopeSeparator *getScopeSeparator(struct kindControlBlock* kcb,
if (sep)
return sep;

/* Cannot find a sitable sep definition.
/* Cannot find a suitable sep definition.
* Use default one. */
if (parentKindIndex == KIND_GHOST_INDEX)
{
Expand Down
2 changes: 1 addition & 1 deletion main/lregex.c
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ extern bool matchMultitableRegex (struct lregexControlBlock *lcb, const vString*
getLanguageName (lcb->owner),
table->name, offset, getInputFileName ());
error (WARNING, "DUMP FROM THE TOP:");
/* TODO: ues dumpTstack */
/* TODO: use dumpTstack */
for (i = ptrArrayCount(lcb->tstack); 0 < i; --i)
{
t = ptrArrayItem (lcb->tstack, i - 1);
Expand Down
2 changes: 1 addition & 1 deletion main/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extern void verbose (const char *const format, ...) CTAGS_ATTR_PRINTF (1, 2);

extern bool inSandbox (void);

/* This is for emitting a tag for a commnn block of Fortran parser*/
/* This is for emitting a tag for a common block of Fortran parser*/
extern bool canUseLineNumberAsLocator (void);

#endif /* CTAGS_MAIN_OPTIONS_H */
4 changes: 2 additions & 2 deletions main/portable-dirent_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ readdir(
} else {
/*
* Cannot convert file name to multi-byte string so construct
* an errornous directory entry and return that. Note that
* an erroneous directory entry and return that. Note that
* we cannot return NULL as that would stop the processing
* of directory entries completely.
*/
Expand Down Expand Up @@ -845,7 +845,7 @@ dirent_mbstowcs_s(
wcstr[n] = 0;
}

/* Length of resuting multi-byte string WITH zero terminator */
/* Length of resulting multi-byte string WITH zero terminator */
if (pReturnValue) {
*pReturnValue = n + 1;
}
Expand Down
2 changes: 1 addition & 1 deletion main/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ extern bool isTraced (void)
is given or not. */
return isMainTraced ();
else
/* Ap arser is given. In that case, check whether the current parser is
/* A parser is given. In that case, check whether the current parser is
specified in --_trace=<LANG>,... option */
return isLanguageTraced (getInputLanguage ());
}
Expand Down
2 changes: 1 addition & 1 deletion misc/dist-test-cases
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#
# Originally this file generates just one file with much "EXTRA_DISTS += " lines.
# However, now we have so many test releates files, EXTRA_DISTS becomes too long
# However, now we have so many test related files, EXTRA_DISTS becomes too long
# to pass it to execve.
# See http://gnu-automake.7480.n7.nabble.com/argument-list-too-long-in-project-with-many-files-td21323.html
#
Expand Down
6 changes: 3 additions & 3 deletions misc/units
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@ validate_validator ()
fi
elif ! [ -x "${validators_dir}/validator-$v" ]; then
if [ "$make_error" = "error" ]; then
ERROR 1 "Not exectuable: $v (${validators_dir}/validator-$v)"
ERROR 1 "Not executable: $v (${validators_dir}/validator-$v)"
else
update_validator_list unavailable "$v"
return 1
Expand Down Expand Up @@ -2696,7 +2696,7 @@ validate_dir ()
default_validator=$v0
;;
1)
# no action neeeded
# no action needed
;;
2)
update_validator_list unavailable "$v0"
Expand Down Expand Up @@ -2731,7 +2731,7 @@ validate_dir ()
fi
;;
1)
# no action neeeded
# no action needed
;;
2)
update_validator_list unavailable "$v0"
Expand Down
2 changes: 1 addition & 1 deletion optlib/qemuhx.ctags
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#
#
# `hxtool' is a tool used in QEMU build process.
# It converts an input file to both a C haeder file code and Texinfo document.
# It converts an input file to both a C header file code and Texinfo document.
#
# `.hx' is the suffix for the tool.
#
Expand Down
6 changes: 3 additions & 3 deletions parsers/jscript.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,10 @@ static int handleUnicodeCodePoint (uint32_t point)
/* 4 bytes should be enough for any encoding (it's how much UTF-32
* would need). */
/* FIXME: actually iconv has a tendency to output a BOM for Unicode
* encodings where it matters when the endianess is not specified in
* encodings where it matters when the endianness is not specified in
* the target encoding name. E.g., if the target encoding is "UTF-32"
* or "UTF-16" it will output 2 code points, the BOM (U+FEFF) and the
* one we expect. This does not happen if the endianess is specified
* one we expect. This does not happen if the endianness is specified
* explicitly, e.g. with "UTF-32LE", or "UTF-16BE".
* However, it's not very relevant for the moment as nothing in CTags
* cope well (if at all) with non-ASCII-compatible encodings like
Expand Down Expand Up @@ -1596,7 +1596,7 @@ static bool parseMethods (tokenInfo *const token, const tokenInfo *const class,
bool is_computed_name = false; /* ES6 computed property name */
bool is_dynamic_prop = false;
vString *dprop = NULL; /* is_computed_name is true but
* the name is not represnted in
* the name is not represented in
* a string literal. The expressions
* go this string. */

Expand Down
2 changes: 1 addition & 1 deletion parsers/rpmspec.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static bool found_macro_cb_full (const char *line,
if (data->rindex == ROLE_DEFINITION_INDEX && ctx->rejecting)
{
/* The line is continued. Let's record the cork index
for attachend endLine field later. */
for attached endLine field later. */
ctx->macro_index = cork_index;
}

Expand Down
2 changes: 1 addition & 1 deletion parsers/ttcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static ttcnToken_t * getToken (void)
while((c = getcFromInputFile()) != EOF)
{
vStringPut(pTtcnToken->value, c);
/* consume escaped chracters */
/* consume escaped characters */
if(c == '\\' && ((c2 = getcFromInputFile()) != EOF))
{
vStringPut(pTtcnToken->value, c2);
Expand Down
2 changes: 1 addition & 1 deletion parsers/verilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static void vUngetc (int c)
Ungetc = c;
}

/* Mostly copyed from cppSkipOverCComment() in cpreprocessor.c.
/* Mostly copied from cppSkipOverCComment() in cpreprocessor.c.
*
* cppSkipOverCComment() uses the internal ungetc buffer of
* CPreProcessor. On the other hand, the Verilog parser uses
Expand Down
2 changes: 1 addition & 1 deletion peg/varlink.peg
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
}

#
# Packcc tries to apply the first grammer rule in the input.
# Packcc tries to apply the first grammar rule in the input.
#
interface
<- _* "interface" _+ interface_name eol ( member_list ) _*
Expand Down
2 changes: 1 addition & 1 deletion peg/varlink_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "routines.h"

/*
* FUNCTOIN DEFINITIONS
* FUNCTION DEFINITIONS
*/
static void pushKind (struct parserCtx *auxil, int kind)
{
Expand Down

0 comments on commit ebdbd8e

Please sign in to comment.