Clean up a few minor nits (warnings).

svn path=/trunk/yasm/; revision=1690
0.6.0
Peter Johnson 19 years ago
parent 66419285d4
commit 52055a435d
  1. 1
      genstring.c
  2. 5
      tools/re2c/code.c
  3. 2
      tools/re2c/substr.c

@ -38,7 +38,6 @@ main(int argc, char *argv[])
int i;
char *str;
char *strp;
char *charp;
size_t len;
if (argc < 4) {

@ -4,6 +4,7 @@
#include "tools/re2c/substr.h"
#include "tools/re2c/globals.h"
#include "tools/re2c/dfa.h"
#include "tools/re2c/parse.h"
static void useLabel(size_t value) {
while (value >= vUsedLabelAlloc) {
@ -849,7 +850,7 @@ void DFA_emit(DFA *d, FILE *o){
Go_genGoto(&s->go, tmpo, s, s->next, &readCh);
}
fclose(tmpo);
unlink("re2c.tmp");
remove("re2c.tmp");
maxFillIndexes = vFillIndexes;
vFillIndexes = orgVFillIndexes;
oline = nOrgOline;
@ -876,7 +877,7 @@ void DFA_emit(DFA *d, FILE *o){
oline++;
useLabel(label);
} else {
unsigned int i;
int i;
fputs("\tswitch(YYGETSTATE()) {\n", o);
fputs("\t\tcase -1: goto yy0;\n", o);

@ -5,7 +5,7 @@
void
SubStr_out(const SubStr *s, FILE *o)
{
int i;
unsigned int i;
fwrite(s->str, s->len, 1, o);
for (i=0; i<s->len; i++)
if (s->str[i] == '\n')

Loading…
Cancel
Save