Skip to content

Commit

Permalink
compilecode: Fix punctuation in comments for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed May 1, 2019
1 parent d5b57b6 commit 88b30ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compilecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static int _compilecode(const char **re_loc, ByteProg *prog, int sizecode)
} else {
EMIT(PC++, Class);
}
PC++; // Skip # of pair byte
PC++; // Skip "# of pairs" byte
prog->len++;
for (cnt = 0; *re != ']'; re++, cnt++) {
if (!*re) goto syntax_error;
Expand Down Expand Up @@ -196,8 +196,8 @@ int re1_5_compilecode(ByteProg *prog, const char *re)
prog->bytelen = 0;
prog->sub = 0;

// Add code to implement non-anchored operation ("search"),
// for anchored operation ("match"), this code will be just skipped.
// Add code to implement non-anchored operation ("search").
// For anchored operation ("match"), this code will be just skipped.
// TODO: Implement search in much more efficient manner
prog->insts[prog->bytelen++] = RSplit;
prog->insts[prog->bytelen++] = 3;
Expand Down

0 comments on commit 88b30ce

Please sign in to comment.