mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
Lint fluff
This commit is contained in:
parent
559e55f73c
commit
9abc539846
2 changed files with 15 additions and 5 deletions
|
|
@ -37,10 +37,16 @@ $Header$
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#else
|
#else
|
||||||
|
#ifdef __STDC__
|
||||||
|
/* Don't mess around, use the standard headers */
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#else
|
||||||
char *malloc();
|
char *malloc();
|
||||||
void free();
|
void free();
|
||||||
char *realloc();
|
char *realloc();
|
||||||
#endif
|
#endif /* __STDC__ */
|
||||||
|
#endif /* THINK_C */
|
||||||
|
|
||||||
#define MACRO_BEGIN do {
|
#define MACRO_BEGIN do {
|
||||||
#define MACRO_END } while (0)
|
#define MACRO_END } while (0)
|
||||||
|
|
@ -508,6 +514,7 @@ regexp_t bufp;
|
||||||
goto normal_char;
|
goto normal_char;
|
||||||
opcode = Ceol;
|
opcode = Ceol;
|
||||||
goto store_opcode;
|
goto store_opcode;
|
||||||
|
/* NOTREACHED */
|
||||||
break;
|
break;
|
||||||
case Roptional:
|
case Roptional:
|
||||||
if (beginning_context)
|
if (beginning_context)
|
||||||
|
|
@ -1504,6 +1511,8 @@ regexp_registers_t regs;
|
||||||
startpos, range, regs, size);
|
startpos, range, regs, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef UNUSED
|
||||||
|
|
||||||
static struct re_pattern_buffer re_comp_buf;
|
static struct re_pattern_buffer re_comp_buf;
|
||||||
|
|
||||||
char *re_comp(s)
|
char *re_comp(s)
|
||||||
|
|
@ -1532,6 +1541,8 @@ char *s;
|
||||||
return re_search(&re_comp_buf, s, len, 0, len, (regexp_registers_t)NULL) >= 0;
|
return re_search(&re_comp_buf, s, len, 0, len, (regexp_registers_t)NULL) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TEST_REGEXP
|
#ifdef TEST_REGEXP
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
/* Forward references */
|
/* Forward references */
|
||||||
static void fixdfa PROTO((grammar *, dfa *));
|
static void fixdfa PROTO((grammar *, dfa *));
|
||||||
static void fixstate PROTO((grammar *, dfa *, state *));
|
static void fixstate PROTO((grammar *, state *));
|
||||||
|
|
||||||
void
|
void
|
||||||
addaccelerators(g)
|
addaccelerators(g)
|
||||||
|
|
@ -69,13 +69,12 @@ fixdfa(g, d)
|
||||||
int j;
|
int j;
|
||||||
s = d->d_state;
|
s = d->d_state;
|
||||||
for (j = 0; j < d->d_nstates; j++, s++)
|
for (j = 0; j < d->d_nstates; j++, s++)
|
||||||
fixstate(g, d, s);
|
fixstate(g, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fixstate(g, d, s)
|
fixstate(g, s)
|
||||||
grammar *g;
|
grammar *g;
|
||||||
dfa *d;
|
|
||||||
state *s;
|
state *s;
|
||||||
{
|
{
|
||||||
arc *a;
|
arc *a;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue