Warnings removed.

This commit is contained in:
Andrey Kiselev 2004-09-02 13:43:28 +00:00
parent 6f1fa4b83d
commit c3c279431c
2 changed files with 1249 additions and 1044 deletions

View File

@ -1,4 +1,4 @@
/* "$Id: mkg3states.c,v 1.5 2004-08-01 10:37:42 dron Exp $ */ /* "$Id: mkg3states.c,v 1.6 2004-09-02 13:43:28 dron Exp $ */
/* /*
* Copyright (c) 1991-1997 Sam Leffler * Copyright (c) 1991-1997 Sam Leffler
@ -35,10 +35,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
#include "tif_fax3.h" #include "tif_fax3.h"
#define streq(a,b) (strcmp(a,b) == 0) #define streq(a,b) (strcmp(a,b) == 0)
@ -335,8 +331,8 @@ FillTable(TIFFFaxTabEnt *T, int Size, struct proto *P, int State)
static char* storage_class = ""; static char* storage_class = "";
static char* const_class = ""; static char* const_class = "";
static int packoutput = 1; static int packoutput = 1;
static char* prebrace = ""; static char* prebrace = "{";
static char* postbrace = ""; static char* postbrace = "}";
void void
WriteTable(FILE* fd, const TIFFFaxTabEnt* T, int Size, const char* name) WriteTable(FILE* fd, const TIFFFaxTabEnt* T, int Size, const char* name)
@ -351,7 +347,7 @@ WriteTable(FILE* fd, const TIFFFaxTabEnt* T, int Size, const char* name)
for (i = 0; i < Size; i++) { for (i = 0; i < Size; i++) {
fprintf(fd, "%s%s%d,%d,%d%s", fprintf(fd, "%s%s%d,%d,%d%s",
sep, prebrace, T->State, T->Width, (int) T->Param, postbrace); sep, prebrace, T->State, T->Width, (int) T->Param, postbrace);
if (((i+1) % 12) == 0) if (((i+1) % 10) == 0)
sep = ",\n"; sep = ",\n";
else else
sep = ","; sep = ",";
@ -436,3 +432,5 @@ main(int argc, char* argv[])
fclose(fd); fclose(fd);
return (0); return (0);
} }
/* vim: set ts=8 sts=8 sw=8 noet: */

File diff suppressed because it is too large Load Diff