mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Clean up a few minor nits (warnings).
svn path=/trunk/yasm/; revision=1690
This commit is contained in:
parent
66419285d4
commit
52055a435d
3 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue