summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/regc_color.c6
-rw-r--r--generic/regc_locale.c36
-rw-r--r--generic/regc_nfa.c54
-rw-r--r--generic/regcomp.c8
-rw-r--r--generic/rege_dfa.c9
-rw-r--r--generic/tcl.h2
-rw-r--r--generic/tclCompile.h10
-rw-r--r--generic/tclIO.h2
-rw-r--r--generic/tclInt.h2
9 files changed, 65 insertions, 64 deletions
diff --git a/generic/regc_color.c b/generic/regc_color.c
index f1e25d2..ccb1826 100644
--- a/generic/regc_color.c
+++ b/generic/regc_color.c
@@ -430,7 +430,7 @@ newsub(
/*
- subrange - allocate new subcolors to this range of chrs, fill in arcs
^ static void subrange(struct vars *, pchr, pchr, struct state *,
- ^ struct state *);
+ ^ struct state *);
*/
static void
subrange(
@@ -689,7 +689,7 @@ uncolorchain(
/*
- rainbow - add arcs of all full colors (but one) between specified states
^ static void rainbow(struct nfa *, struct colormap *, int, pcolor,
- ^ struct state *, struct state *);
+ ^ struct state *, struct state *);
*/
static void
rainbow(
@@ -716,7 +716,7 @@ rainbow(
- colorcomplement - add arcs of complementary colors
* The calling sequence ought to be reconciled with cloneouts().
^ static void colorcomplement(struct nfa *, struct colormap *, int,
- ^ struct state *, struct state *, struct state *);
+ ^ struct state *, struct state *, struct state *);
*/
static void
colorcomplement(
diff --git a/generic/regc_locale.c b/generic/regc_locale.c
index fdf9eea..9dfea3f 100644
--- a/generic/regc_locale.c
+++ b/generic/regc_locale.c
@@ -1199,24 +1199,24 @@ cclass(
}
break;
case CC_PRINT:
- cv = getcvec(v, NUM_SPACE_CHAR + NUM_GRAPH_CHAR, NUM_SPACE_RANGE + NUM_GRAPH_RANGE - 1);
- if (cv) {
- for (i=1 ; i<NUM_SPACE_RANGE ; i++) {
- addrange(cv, spaceRangeTable[i].start,
- spaceRangeTable[i].end);
- }
- for (i=0 ; i<NUM_SPACE_CHAR ; i++) {
- addchr(cv, spaceCharTable[i]);
- }
- for (i=0 ; i<NUM_GRAPH_RANGE ; i++) {
- addrange(cv, graphRangeTable[i].start,
- graphRangeTable[i].end);
- }
- for (i=0 ; i<NUM_GRAPH_CHAR ; i++) {
- addchr(cv, graphCharTable[i]);
- }
- }
- break;
+ cv = getcvec(v, NUM_SPACE_CHAR + NUM_GRAPH_CHAR, NUM_SPACE_RANGE + NUM_GRAPH_RANGE - 1);
+ if (cv) {
+ for (i=1 ; i<NUM_SPACE_RANGE ; i++) {
+ addrange(cv, spaceRangeTable[i].start,
+ spaceRangeTable[i].end);
+ }
+ for (i=0 ; i<NUM_SPACE_CHAR ; i++) {
+ addchr(cv, spaceCharTable[i]);
+ }
+ for (i=0 ; i<NUM_GRAPH_RANGE ; i++) {
+ addrange(cv, graphRangeTable[i].start,
+ graphRangeTable[i].end);
+ }
+ for (i=0 ; i<NUM_GRAPH_CHAR ; i++) {
+ addchr(cv, graphCharTable[i]);
+ }
+ }
+ break;
case CC_GRAPH:
cv = getcvec(v, NUM_GRAPH_CHAR, NUM_GRAPH_RANGE);
if (cv) {
diff --git a/generic/regc_nfa.c b/generic/regc_nfa.c
index 71bcb09..b6413fc 100644
--- a/generic/regc_nfa.c
+++ b/generic/regc_nfa.c
@@ -570,7 +570,7 @@ findarc(
/*
- cparc - allocate a new arc within an NFA, copying details from old one
^ static void cparc(struct nfa *, struct arc *, struct state *,
- ^ struct state *);
+ ^ struct state *);
*/
static void
cparc(
@@ -641,19 +641,19 @@ sortins_cmp(
return -1;
}
if (aa->from->no > bb->from->no) {
- return 1;
+ return 1;
}
if (aa->co < bb->co) {
- return -1;
+ return -1;
}
if (aa->co > bb->co) {
- return 1;
+ return 1;
}
if (aa->type < bb->type) {
- return -1;
+ return -1;
}
if (aa->type > bb->type) {
- return 1;
+ return 1;
}
return 0;
}
@@ -1118,7 +1118,7 @@ copyouts(
cparc(nfa, a, newState, a->to);
}
} else {
- /*
+ /*
* With many arcs, use a sort-merge approach. Note that createarc()
* will put new arcs onto the front of newState's chain, so it does
* not break our walk through the sorted part of the chain.
@@ -1177,7 +1177,7 @@ copyouts(
/*
- cloneouts - copy out arcs of a state to another state pair, modifying type
^ static void cloneouts(struct nfa *, struct state *, struct state *,
- ^ struct state *, int);
+ ^ struct state *, int);
*/
static void
cloneouts(
@@ -1267,7 +1267,7 @@ deltraverse(
* well as mark already-seen states. (You knew there was a reason why it's a
* state pointer, didn't you? :-))
^ static void dupnfa(struct nfa *, struct state *, struct state *,
- ^ struct state *, struct state *);
+ ^ struct state *, struct state *);
*/
static void
dupnfa(
@@ -1599,10 +1599,10 @@ pull(
s->tmp = *intermediates;
*intermediates = s;
}
- cparc(nfa, con, a->from, s);
+ cparc(nfa, con, a->from, s);
cparc(nfa, a, s, to);
- freearc(nfa, a);
- break;
+ freearc(nfa, a);
+ break;
default:
assert(NOTREACHED);
break;
@@ -1779,9 +1779,9 @@ push(
*intermediates = s;
}
cparc(nfa, con, s, a->to);
- cparc(nfa, a, from, s);
- freearc(nfa, a);
- break;
+ cparc(nfa, a, from, s);
+ freearc(nfa, a);
+ break;
default:
assert(NOTREACHED);
break;
@@ -2021,11 +2021,11 @@ fixempties(
}
}
- /* Reset the tmp fields as we walk back */
- nexts = s2->tmp;
- s2->tmp = NULL;
- }
- s->tmp = NULL;
+ /* Reset the tmp fields as we walk back */
+ nexts = s2->tmp;
+ s2->tmp = NULL;
+ }
+ s->tmp = NULL;
assert(arccount <= totalinarcs);
/* Remember how many original inarcs this state has */
@@ -2185,12 +2185,12 @@ fixconstraintloops(
freearc(nfa, a);
} else {
hasconstraints = 1;
- }
+ }
}
}
- /* If we removed all the outarcs, the state is useless. */
- if (s->nouts == 0 && !s->flag) {
- dropstate(nfa, s);
+ /* If we removed all the outarcs, the state is useless. */
+ if (s->nouts == 0 && !s->flag) {
+ dropstate(nfa, s);
}
}
@@ -2235,7 +2235,7 @@ fixconstraintloops(
}
if (f != NULL) {
- dumpnfa(nfa, f);
+ dumpnfa(nfa, f);
}
}
@@ -2725,7 +2725,7 @@ cleanup(
/*
- markreachable - recursive marking of reachable states
^ static void markreachable(struct nfa *, struct state *, struct state *,
- ^ struct state *);
+ ^ struct state *);
*/
static void
markreachable(
@@ -2749,7 +2749,7 @@ markreachable(
/*
- markcanreach - recursive marking of states which can reach here
^ static void markcanreach(struct nfa *, struct state *, struct state *,
- ^ struct state *);
+ ^ struct state *);
*/
static void
markcanreach(
diff --git a/generic/regcomp.c b/generic/regcomp.c
index 983cd7a..b320980 100644
--- a/generic/regcomp.c
+++ b/generic/regcomp.c
@@ -645,7 +645,7 @@ makesearch(
* together with '|'. They appear in the tree as the left children of a chain
* of '|' subres.
^ static struct subre *parse(struct vars *, int, int, struct state *,
- ^ struct state *);
+ ^ struct state *);
*/
static struct subre *
parse(
@@ -727,7 +727,7 @@ parse(
* Concatenated things are bundled up as much as possible, with separate
* ',' nodes introduced only when necessary due to substructure.
^ static struct subre *parsebranch(struct vars *, int, int, struct state *,
- ^ struct state *, int);
+ ^ struct state *, int);
*/
static struct subre *
parsebranch(
@@ -776,7 +776,7 @@ parsebranch(
* particular, it contains a recursion that can involve parsing the rest of
* the branch, making this function's name somewhat inaccurate.
^ static void parseqatom(struct vars *, int, int, struct state *,
- ^ struct state *, struct subre *);
+ ^ struct state *, struct subre *);
*/
static void
parseqatom(
@@ -1650,7 +1650,7 @@ onechr(
/*
- dovec - fill in arcs for each element of a cvec
^ static void dovec(struct vars *, struct cvec *, struct state *,
- ^ struct state *);
+ ^ struct state *);
*/
static void
dovec(
diff --git a/generic/rege_dfa.c b/generic/rege_dfa.c
index 9586f66..2783573 100644
--- a/generic/rege_dfa.c
+++ b/generic/rege_dfa.c
@@ -159,7 +159,7 @@ longest(
/*
- shortest - shortest-preferred matching engine
^ static chr *shortest(struct vars *, struct dfa *, chr *, chr *, chr *,
- ^ chr **, int *);
+ ^ chr **, int *);
*/
static chr * /* endpoint, or NULL */
shortest(
@@ -308,7 +308,7 @@ lastCold(
/*
- newDFA - set up a fresh DFA
^ static struct dfa *newDFA(struct vars *, struct cnfa *,
- ^ struct colormap *, struct smalldfa *);
+ ^ struct colormap *, struct smalldfa *);
*/
static struct dfa *
newDFA(
@@ -477,7 +477,7 @@ initialize(
/*
- miss - handle a cache miss
^ static struct sset *miss(struct vars *, struct dfa *, struct sset *,
- ^ pcolor, chr *, chr *);
+ ^ pcolor, chr *, chr *);
*/
static struct sset * /* NULL if goes to empty set */
miss(
@@ -492,7 +492,8 @@ miss(
unsigned h;
struct carc *ca;
struct sset *p;
- int i, isPost, noProgress, gotState, doLAConstraints, sawLAConstraints;
+ int i;
+ int isPost, noProgress, gotState, doLAConstraints, sawLAConstraints;
/*
* For convenience, we can be called even if it might not be a miss.
diff --git a/generic/tcl.h b/generic/tcl.h
index 5ce9026..2f3ec17 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -2157,7 +2157,7 @@ typedef struct Tcl_EncodingType {
* one or more "close" characters in the
* destination buffer and then continues to
* convert the source. Only for Tcl 8.x.
- * TCL_ENCODING_NO_TERMINATE - If set, Tcl_ExternalToUtf does not append a
+ * TCL_ENCODING_NO_TERMINATE - If set, Tcl_ExternalToUtf does not append a
* terminating NUL byte. Since it does not need
* an extra byte for a terminating NUL, it fills
* all dstLen bytes with encoded UTF-8 content if
diff --git a/generic/tclCompile.h b/generic/tclCompile.h
index d577b6a..94f16f0 100644
--- a/generic/tclCompile.h
+++ b/generic/tclCompile.h
@@ -34,7 +34,7 @@ struct ByteCode; /* Forward declaration. */
* This variable is linked to the Tcl variable "tcl_traceCompile".
*/
-MODULE_SCOPE int tclTraceCompile;
+MODULE_SCOPE int tclTraceCompile;
/*
* Variable that controls whether execution tracing is enabled and, if so,
@@ -46,7 +46,7 @@ MODULE_SCOPE int tclTraceCompile;
* This variable is linked to the Tcl variable "tcl_traceExec".
*/
-MODULE_SCOPE int tclTraceExec;
+MODULE_SCOPE int tclTraceExec;
#endif
/*
@@ -317,13 +317,13 @@ typedef struct CompileEnv {
int mallocedCodeArray; /* Set 1 if code array was expanded and
* codeStart points into the heap.*/
LiteralEntry *literalArrayPtr;
- /* Points to start of LiteralEntry array. */
+ /* Points to start of LiteralEntry array. */
Tcl_Size literalArrayNext; /* Index of next free object array entry. */
Tcl_Size literalArrayEnd; /* Index just after last obj array entry. */
int mallocedLiteralArray; /* 1 if object array was expanded and objArray
* points into the heap, else 0. */
ExceptionRange *exceptArrayPtr;
- /* Points to start of the ExceptionRange
+ /* Points to start of the ExceptionRange
* array. */
Tcl_Size exceptArrayNext; /* Next free ExceptionRange array index.
* exceptArrayNext is the number of ranges and
@@ -468,7 +468,7 @@ typedef struct ByteCode {
* array. This is just after the last code
* byte. */
ExceptionRange *exceptArrayPtr;
- /* Points to the start of the ExceptionRange
+ /* Points to the start of the ExceptionRange
* array. This is just after the last object
* in the object array. */
AuxData *auxDataArrayPtr; /* Points to the start of the auxiliary data
diff --git a/generic/tclIO.h b/generic/tclIO.h
index 08fff44..bb56d57 100644
--- a/generic/tclIO.h
+++ b/generic/tclIO.h
@@ -43,7 +43,7 @@ typedef struct ChannelBuffer {
* the buffer. */
Tcl_Size bufLength; /* How big is the buffer? */
struct ChannelBuffer *nextPtr;
- /* Next buffer in chain. */
+ /* Next buffer in chain. */
char buf[TCLFLEXARRAY]; /* Placeholder for real buffer. The real
* buffer occupies this space + bufSize-1
* bytes. This must be the last field in the
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 31e06df..1a32350 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -1445,7 +1445,7 @@ struct CompileEnv;
* because by then changes in the interp state may allow
* the command to be successfully evaluated.
* TCL_OUT_LINE_COMPILE A source-compatible alias for TCL_ERROR, kept for the
- * sake of old code only.
+ * sake of old code only.
*/
#ifndef TCL_NO_DEPRECATED