Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling #385

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
218576f
spelling: accepteod
jsoref Jan 8, 2023
0f3c8f2
spelling: against
jsoref Jan 8, 2023
6939e2e
spelling: and
jsoref Jan 7, 2023
7421d18
spelling: architecture
jsoref Jan 8, 2023
9204d91
spelling: are
jsoref Jan 7, 2023
0a8cd99
spelling: command
jsoref Jan 7, 2023
dfb273a
spelling: comparisons
jsoref Jan 8, 2023
4387af5
spelling: conversions
jsoref Jan 8, 2023
203a35a
spelling: deliver
jsoref Jan 8, 2023
1ab473d
spelling: distance
jsoref Jan 8, 2023
35cdaa0
spelling: dominated
jsoref Jan 8, 2023
e10c898
spelling: eligible
jsoref Jan 8, 2023
2740fe3
spelling: error
jsoref Jan 8, 2023
5760514
spelling: expansion
jsoref Jan 8, 2023
e8d4eb4
spelling: github
jsoref Jan 7, 2023
323c04b
spelling: grammars
jsoref Jan 8, 2023
f396880
spelling: graphviz
jsoref Jan 8, 2023
0f23abd
spelling: handle
jsoref Jan 7, 2023
aa28b6e
spelling: hexadecimal
jsoref Jan 8, 2023
47698a0
spelling: identifying
jsoref Jan 8, 2023
1b6a432
spelling: information
jsoref Jan 8, 2023
b77671b
spelling: initialize
jsoref Jan 8, 2023
b003018
spelling: into
jsoref Jan 7, 2023
9e8c886
spelling: javascript
jsoref Jan 7, 2023
91057f1
spelling: macro
jsoref Jan 8, 2023
0a034dc
spelling: misaligned
jsoref Jan 8, 2023
88ddb12
spelling: multibit
jsoref Jan 8, 2023
dbdd5cb
spelling: netflow
jsoref Jan 8, 2023
52d01c7
spelling: not
jsoref Jan 7, 2023
65bf5ab
spelling: oniguruma
jsoref Jan 8, 2023
e1781b3
spelling: platform
jsoref Jan 8, 2023
25fcd67
spelling: positives
jsoref Jan 8, 2023
a25c5d8
spelling: properties
jsoref Jan 8, 2023
dacfaa2
spelling: reentrant
jsoref Jan 7, 2023
5d235be
spelling: reporter
jsoref Jan 8, 2023
ab37685
spelling: representation
jsoref Jan 8, 2023
c614df3
spelling: separate
jsoref Jan 8, 2023
9001c6c
spelling: separator
jsoref Jan 8, 2023
f5ba1a1
spelling: squashing
jsoref Jan 8, 2023
0e85c01
spelling: stickiness
jsoref Jan 8, 2023
dd71b6a
spelling: stream
jsoref Jan 7, 2023
2271231
spelling: that
jsoref Jan 8, 2023
d4b524d
spelling: the
jsoref Jan 7, 2023
b77fe76
spelling: translatable
jsoref Jan 8, 2023
9233f8b
spelling: transparent
jsoref Jan 8, 2023
d9fc97e
spelling: workaround
jsoref Jan 8, 2023
f441ec2
spelling: ypositive
jsoref Jan 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This is a list of notable changes to Hyperscan, in reverse chronological order.
- Bugfix for issue #239: fix hyperscan compile issue under gcc-10.
- Add VLAN packets processing capability in pcap analysis script. (#214)
- Avoid extra convert instruction for "Noodle". (#221)
- Add Hyperscan version marcro in `hs.h`. (#222)
- Add Hyperscan version macro in `hs.h`. (#222)
Copy link
Author

Choose a reason for hiding this comment

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

Some projects don't like changing changelogs. Happy to drop this or anything else..


## [5.2.1] 2019-10-13
- Bugfix for issue #186: fix compile issue when `BUILD_SHARED_LIBS` is on in
Expand All @@ -57,7 +57,7 @@ This is a list of notable changes to Hyperscan, in reverse chronological order.
## [5.2.0] 2019-07-12
- Literal API: add new API `hs_compile_lit()` and `hs_compile_lit_multi()` to
process pure literal rule sets. The 2 literal APIs treat each expression text
in a literal sense without recognizing any regular grammers.
in a literal sense without recognizing any regular grammars.
- Logical combination: add support for purely negative combinations, which
report match at EOD in case of no sub-expressions matched.
- Windows porting: support shared library (DLL) on Windows with available tools
Expand All @@ -71,7 +71,7 @@ This is a list of notable changes to Hyperscan, in reverse chronological order.

## [5.1.1] 2019-04-03
- Add extra detection and handling when invalid rose programs are triggered.
- Bugfix for issue #136: fix CMake parsing of CPU architecure for GCC-9.
- Bugfix for issue #136: fix CMake parsing of CPU architecture for GCC-9.
- Bugfix for issue #137: avoid file path impact on fat runtime build.
- Bugfix for issue #141: fix rose literal programs for multi-pattern
matching when no pattern ids are provided.
Expand Down Expand Up @@ -330,7 +330,7 @@ This is a list of notable changes to Hyperscan, in reverse chronological order.
line with the behaviour of `hs_close_stream()`.
- Disallow bounded repeats with a very large minimum repeat but no maximum,
i.e. {N,} for very large N.
- Reduce compile memory usage in literal set explansion for some large cases.
- Reduce compile memory usage in literal set expansion for some large cases.

## [4.0.0] 2015-10-20
- Original release of Hyperscan as open-source software.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ project repository.

# Versioning

The `master` branch on Github will always contain the most recent release of
The `master` branch on GitHub will always contain the most recent release of
Copy link
Author

Choose a reason for hiding this comment

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

brand

Hyperscan. Each version released to `master` goes through QA and testing before
it is released; if you're a user, rather than a developer, this is the version
you should be using.
Expand All @@ -36,7 +36,7 @@ The official homepage for Hyperscan is at [www.hyperscan.io](https://www.hypersc

If you have questions or comments, we encourage you to [join the mailing
list](https://lists.01.org/mailman/listinfo/hyperscan). Bugs can be filed by
sending email to the list, or by creating an issue on Github.
sending email to the list, or by creating an issue on GitHub.

If you wish to contact the Hyperscan team at Intel directly, without posting
publicly to the mailing list, send email to
Expand Down
2 changes: 1 addition & 1 deletion chimera/ch_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ ch_error_t HS_CDECL ch_database_info(const ch_database_t *database,
* more memory at runtime as required.
*
* If Chimera is to be used in a multi-threaded, or similarly concurrent
* environment, the allocation function will need to be re-entrant, or
* environment, the allocation function will need to be reentrant, or
* similarly safe for concurrent use.
*
* @param size
Expand Down
2 changes: 1 addition & 1 deletion doc/dev-reference/chimera.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ databases, only a single scratch region is necessary: in this case, calling
will ensure that the scratch space is large enough to support scanning against
any of the given databases.

While the Chimera library is re-entrant, the use of scratch spaces is not.
While the Chimera library is reentrant, the use of scratch spaces is not.
For example, if by design it is deemed necessary to run recursive or nested
scanning (say, from the match callback function), then an additional scratch
space is required for that context.
Expand Down
10 changes: 5 additions & 5 deletions doc/dev-reference/hyperscan.doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ OPTIMIZE_OUTPUT_VHDL = NO
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:
# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran:
# Fortran. In the later case the parser tries to guess whether the code is fixed
Expand Down Expand Up @@ -659,7 +659,7 @@ SHOW_NAMESPACES = YES
# The FILE_VERSION_FILTER tag can be used to specify a program or script that
# doxygen should invoke to get the current version for each file (typically from
# the version control system). Doxygen will invoke the program by executing (via
# popen()) the command command input-file, where command is the value of the
# popen()) the command input-file, where command is the value of the
# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
# by doxygen. Whatever the program writes to standard output is used as the file
# version. For an example see the documentation.
Expand Down Expand Up @@ -1424,7 +1424,7 @@ EXT_LINKS_IN_WINDOW = NO

FORMULA_FONTSIZE = 10

# Use the FORMULA_TRANPARENT tag to determine whether or not the images
# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
# generated for formulas are transparent PNGs. Transparent PNGs are not
# supported properly for IE 6.0, but are supported on all modern browsers.
#
Expand All @@ -1436,7 +1436,7 @@ FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES

# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
# http://www.mathjax.org) which uses client side Javascript for the rendering
# http://www.mathjax.org) which uses client side JavaScript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
Expand Down Expand Up @@ -1506,7 +1506,7 @@ MATHJAX_CODEFILE =
SEARCHENGINE = YES

# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
# implemented using a web server instead of a web client using Javascript. There
# implemented using a web server instead of a web client using JavaScript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
Expand Down
2 changes: 1 addition & 1 deletion doc/dev-reference/performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ see reduced performance when the single-match flag is used.
Start of Match flag
********************

.. tip:: Do not request Start of Match information if it is not not needed.
.. tip:: Do not request Start of Match information if it is not needed.
Copy link
Author

Choose a reason for hiding this comment

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

double negatives are hard to parse... I can't be sure if this is correct...


Start of Match (SOM) information can be expensive to gather and can require
large amounts of stream state to store in streaming mode. As such, SOM
Expand Down
2 changes: 1 addition & 1 deletion doc/dev-reference/runtime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ databases, only a single scratch region is necessary: in this case, calling
will ensure that the scratch space is large enough to support scanning against
any of the given databases.

While the Hyperscan library is re-entrant, the use of scratch spaces is not.
While the Hyperscan library is reentrant, the use of scratch spaces is not.
For example, if by design it is deemed necessary to run recursive or nested
scanning (say, from the match callback function), then an additional scratch
space is required for that context.
Expand Down
2 changes: 1 addition & 1 deletion src/fdr/fdr_compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ void buildSquashMask(vector<hwlmLiteral> &lits, u32 id1, u32 bucket1,
return;
}
/* if lit2 is a suffix but doesn't pass included checks for
* extra info, we give up sqaushing */
* extra info, we give up squashing */
if (includedCheck(lit1, lit2)) {
DEBUG_PRINTF("find exceptional suffix %u\n", lit2.id);
exception_map[id1].insert(id2);
Expand Down
4 changes: 2 additions & 2 deletions src/hs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ hs_compile_lit_multi_int(const char *const *expressions, const unsigned *flags,

if (!checkPlatform(platform, comp_error)) {
*db = nullptr;
assert(*comp_error); // set by checkPlattform.
assert(*comp_error); // set by checkPlatform.
return HS_COMPILER_ERROR;
}

Expand Down Expand Up @@ -399,7 +399,7 @@ hs_compile_lit_multi_int(const char *const *expressions, const unsigned *flags,
return HS_COMPILER_ERROR;
}
catch (...) {
assert(!"Internal errror, unexpected exception");
assert(!"Internal error, unexpected exception");
*db = nullptr;
*comp_error = const_cast<hs_compile_error_t *>(&hs_einternal);
return HS_COMPILER_ERROR;
Expand Down
2 changes: 1 addition & 1 deletion src/hs_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ hs_error_t HS_CDECL hs_serialized_database_info(const char *bytes,
* allocate stream state.
*
* If Hyperscan is to be used in a multi-threaded, or similarly concurrent
* environment, the allocation function will need to be re-entrant, or
* environment, the allocation function will need to be reentrant, or
* similarly safe for concurrent use.
*
* @param size
Expand Down
2 changes: 1 addition & 1 deletion src/hs_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ typedef struct hs_scratch hs_scratch_t;
* @param from
* - If a start of match flag is enabled for the current pattern, this
* argument will be set to the start of match for the pattern assuming
* that that start of match value lies within the current 'start of match
* that the start of match value lies within the current 'start of match
Copy link
Author

Choose a reason for hiding this comment

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

this is an atypical correction

* horizon' chosen by one of the SOM_HORIZON mode flags.

* - If the start of match value lies outside this horizon (possible only
Expand Down
2 changes: 1 addition & 1 deletion src/nfa/goughcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void makeCFG_edge(GoughGraph &cfg, const map<u32, u32> &som_creators,
u32 adjust = som_creators.at(input_slot);

if (vnew && vnew->adjust >= adjust) {
DEBUG_PRINTF("skipping %u as domininated by adj%u\n",
DEBUG_PRINTF("skipping %u as dominated by adj%u\n",
adjust, vnew->adjust);
continue; /* deeper starts can be seen to statically
dominate */
Expand Down
2 changes: 1 addition & 1 deletion src/nfa/mcsheng_compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ dstate_id_t find_sheng_states(dfa_info &info,
continue;
}
DEBUG_PRINTF("considering cyclic %zu\n", g[v].index);
/* get an estimate of stickness of the cyclic: assume any edges from
/* get an estimate of stickiness of the cyclic: assume any edges from
* states with larger state ids are back edges */
CharReach est_back_reach;
for (const auto &u : inv_adjacent_vertices_range(v, g)) {
Expand Down
2 changes: 1 addition & 1 deletion src/nfa/nfa_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ enum nfa_zombie_status {
* to a corresponding compressed stream state (@ref mq::streamState).
*
* @param nfa engine the state belongs to
* @param q queue for the engine. The final compressed stream stream is placed
* @param q queue for the engine. The final compressed stream is placed
* in the location indicated by @ref mq::streamState
* @param loc the location corresponding to the engine's current state
*/
Expand Down
2 changes: 1 addition & 1 deletion src/nfa/nfa_dump_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace ue2 {

/**
* \brief Dump files representing the engine. All files dumped should begin with
* path/prefix specified by base. Generally a text file and a grpahviz (dot)
* path/prefix specified by base. Generally a text file and a graphviz (dot)
* files should be produced.
*/
void nfaGenerateDumpFiles(const struct NFA *nfa, const std::string &base);
Expand Down
2 changes: 1 addition & 1 deletion src/nfagraph/ng_anchored_dots.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void reformAnchoredRepeatsComponent(NGHolder &g,
}

if (!otherV.empty()) {
/* We require that the successors of the dot node are are the same
/* We require that the successors of the dot node are the same
* as the start vertex. TODO: remember why.
*/
if (selfLoop) {
Expand Down
4 changes: 2 additions & 2 deletions src/nfagraph/ng_depth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ vector<NFAVertexRevDepth> calcRevDepths(const NGHolder &g) {
calcAndStoreDepth<RevNFAGraph, NFAVertexRevDepth>(
rg, g.accept, deadNodes, dMin, dMax, depths,
&NFAVertexRevDepth::toAccept);
DEBUG_PRINTF("doing accepteod\n");
DEBUG_PRINTF("doing acceptEod\n");
deadNodes[NODE_ACCEPT] = true; // Hide accept->acceptEod edge.
calcAndStoreDepth<RevNFAGraph, NFAVertexRevDepth>(
rg, g.acceptEod, deadNodes, dMin, dMax, depths,
Expand Down Expand Up @@ -367,7 +367,7 @@ vector<NFAVertexBidiDepth> calcBidiDepths(const NGHolder &g) {
calcAndStoreDepth<RevNFAGraph, NFAVertexBidiDepth>(
rg, g.accept, deadNodes, dMin, dMax, depths,
&NFAVertexBidiDepth::toAccept);
DEBUG_PRINTF("doing accepteod\n");
DEBUG_PRINTF("doing acceptEod\n");
deadNodes[NODE_ACCEPT] = true; // Hide accept->acceptEod edge.
calcAndStoreDepth<RevNFAGraph, NFAVertexBidiDepth>(
rg, g.acceptEod, deadNodes, dMin, dMax, depths,
Expand Down
2 changes: 1 addition & 1 deletion src/nfagraph/ng_equivalence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ void mergeClass(vector<unique_ptr<VertexInfo>> &infos, NGHolder &g,

/* For left equivalence, if the members have different reporting behaviour
* we sometimes require two vertices to be created (one connected to accept
* and one to accepteod) */
* and one to acceptEod) */

NFAVertex old_v = (*cur_class_vertices.begin())->v;
NFAVertex new_v = clone_vertex(g, old_v); /* set up new vertex with same
Expand Down
2 changes: 1 addition & 1 deletion src/nfagraph/ng_literal_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ bool literalIsWholeGraph(const NGHolder &g, const ue2_literal &lit) {
const CharReach &cr_l = *it;

if (!cr_l.isSubsetOf(cr_g)) {
/* running over the prefix is needed to prevent false postives */
/* running over the prefix is needed to prevent false positives */
DEBUG_PRINTF("reach fail\n");
return false;
}
Expand Down
8 changes: 4 additions & 4 deletions src/nfagraph/ng_violet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ void splitEdgesByCut(NGHolder &h, RoseInGraph &vg,

vector<NFAVertex> adj;
insert(&adj, adj.end(), adjacent_vertices(pivot, h));
/* we can ignore presence of accept, accepteod in adj as it is best
/* we can ignore presence of accept, acceptEod in adj as it is best
effort */

if (!contains(done_rhs, adj)) {
Expand Down Expand Up @@ -2018,7 +2018,7 @@ bool improvePrefix(NGHolder &h, RoseInGraph &vg, const vector<RoseInEdge> &ee,
return true;
}

/* large back edges may prevent us identifing anchored or transient cases
/* large back edges may prevent us identifying anchored or transient cases
* properly - use a simple walk instead */

if (doNetflowCut(h, &depths, vg, ee, true, cc.grey)) {
Expand Down Expand Up @@ -2218,7 +2218,7 @@ bool improveInfix(NGHolder &h, RoseInGraph &vg, const vector<RoseInEdge> &ee,
/* look for netflow cuts which don't produce good prefixes */
bool rv = doNetflowCut(h, nullptr, vg, ee, false, cc.grey, 8);

DEBUG_PRINTF("did netfow cut? = %d\n", (int)rv);
DEBUG_PRINTF("did netflow cut? = %d\n", (int)rv);

return rv;
}
Expand Down Expand Up @@ -2655,7 +2655,7 @@ bool lookForTrailingLiteralDotStar(const NGHolder &h,

/* In streaming mode, active engines have to be caught up at stream boundaries
* and have to be stored in stream state, so we prefer to decompose patterns
* in to literals with no state between them if possible. */
* into literals with no state between them if possible. */
static
void decomposeLiteralChains(RoseInGraph &vg, const CompileContext &cc) {
if (!cc.grey.violetLiteralChains) {
Expand Down
2 changes: 1 addition & 1 deletion src/parser/Parser.rl
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ unichar readUtf8CodePoint4c(const char *s) {
# Oniguruma - either angle braces or single quotes for this one
('\\g<' [^>]*? '>'|'\\g\'' [^\']*? '\'') => {
ostringstream str;
str << "Onigiruma subroutine call at index " << ts - ptr <<
str << "Oniguruma subroutine call at index " << ts - ptr <<
" not supported.";
throw ParseError(str.str());
};
Expand Down
2 changes: 1 addition & 1 deletion src/rose/program_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ int roseCheckSingleLookaround(const struct RoseEngine *t,
}

/**
* \brief Scan around a literal, checking that that "lookaround" reach masks
* \brief Scan around a literal, checking that "lookaround" reach masks
* are satisfied.
*/
static rose_inline
Expand Down
6 changes: 3 additions & 3 deletions src/rose/rose_build_groups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ bool superStrong(const rose_literal_id &lit) {

static
bool eligibleForAlwaysOnGroup(const RoseBuildImpl &build, u32 id) {
auto eligble = [&](RoseVertex v) {
auto eligible = [&](RoseVertex v) {
return build.isRootSuccessor(v)
&& (!build.g[v].left || !isAnchored(build.g[v].left));
};

if (any_of_in(build.literal_info[id].vertices, eligble)) {
if (any_of_in(build.literal_info[id].vertices, eligible)) {
return true;
}

for (u32 delayed_id : build.literal_info[id].delayed_ids) {
if (any_of_in(build.literal_info[delayed_id].vertices, eligble)) {
if (any_of_in(build.literal_info[delayed_id].vertices, eligible)) {
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/rose/rose_build_merge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ bool checkPrefix(const rose_literal_id &ul, const u32 ulag,
}

size_t min_allowed_delta = vlag - ulag;
DEBUG_PRINTF("min allow distace %zu\n", min_allowed_delta);
DEBUG_PRINTF("min allow distance %zu\n", min_allowed_delta);

for (size_t i = 0; i < min_allowed_delta; i++) {
if (stringsCanFinishAtSameSpot(ul.s, vl.s.begin(), vl.s.end() - i)) {
Expand Down
2 changes: 1 addition & 1 deletion src/rose/rose_build_program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ RoseProgram makeLitInitialProgram(const RoseBuildImpl &build,
prog_build.floatingMinLiteralMatchOffset,
program);

/* Check if we are able to deliever matches from the anchored table now */
/* Check if we are able to deliver matches from the anchored table now */
if (!is_anchored_replay_program) {
makeAnchoredLiteralDelay(build, prog_build, lit_id, program);
}
Expand Down
2 changes: 1 addition & 1 deletion src/rose/rose_program.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ struct ROSE_STRUCT_CHECK_BYTE {
u32 fail_jump; //!< Jump forward this many bytes on failure.
};

// Since m128 and m256 could be missaligned in the bytecode,
// Since m128 and m256 could be misaligned in the bytecode,
// we'll use u8[16] and u8[32] instead in all rose_check_shufti structures.
struct ROSE_STRUCT_CHECK_SHUFTI_16x8 {
u8 code; //!< From enum RoseInstructionCode.
Expand Down
2 changes: 1 addition & 1 deletion src/util/charreach_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void make_caseless(CharReach *cr);
void fill_bitvector(const CharReach &cr, u8 *bits);

/**
* \brief Generate and and compare masks for checking the char reach.
* \brief Generate and compare masks for checking the char reach.
*
* Any character c in cr will be result in (c & and_mask) == cmp_mask being true.
* Note: characters not in cr may also pass the and/cmp checks.
Expand Down
2 changes: 1 addition & 1 deletion src/util/logical.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct CombInfo {
u64a max_offset;
};

/** Temporarily use to seperate operations' id from reports' lkey
/** Temporarily use to separate operations' id from reports' lkey
* when building logicalTree in shunting yard algorithm,
* operations' id will be finally renumbered following reports' lkey. */
#define LOGICAL_OP_BIT 0x80000000UL
Expand Down
2 changes: 1 addition & 1 deletion src/util/multibit_compress.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,5 @@ char mmbit_decompress(u8 *bits, u32 total_bits, const u8 *comp,
} // extern "C"
#endif

#endif // MULTBIT_COMPRESS_H
#endif // MULTIBIT_COMPRESS_H