Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 1532:74febc66d90d
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 12 May 2018 03:25:44 +0300 |
parents | e0cd0fc8c753 |
children | 776aa43b2c57 |
comparison
equal
deleted
inserted
replaced
1531:260bf529a8f2 | 1532:74febc66d90d |
---|---|
178 static const int optListN = sizeof(optList) / sizeof(optList[0]); | 178 static const int optListN = sizeof(optList) / sizeof(optList[0]); |
179 | 179 |
180 | 180 |
181 void argShowFormats() | 181 void argShowFormats() |
182 { | 182 { |
183 int i; | |
184 | 183 |
185 printf( | 184 printf( |
186 "Available input/output formats:\n" | 185 "Available input/output formats:\n" |
187 " Ext | I | O | Description\n" | 186 " Ext | I | O | Description\n" |
188 "------+---+---+-----------------------------------------------\n" | 187 "------+---+---+-----------------------------------------------\n" |
189 ); | 188 ); |
190 | 189 |
191 for (i = 0; i < nconvFormatList; i++) | 190 for (int i = 0; i < nconvFormatList; i++) |
192 { | 191 { |
193 DMConvFormat *fmt = &convFormatList[i]; | 192 DMConvFormat *fmt = &convFormatList[i]; |
194 printf("%-5s | %c | %c | %s\n", | 193 printf("%-5s | %c | %c | %s\n", |
195 fmt->fext ? fmt->fext : "", | 194 fmt->fext ? fmt->fext : "", |
196 fmt->in ? 'X' : ' ', | 195 fmt->in ? 'X' : ' ', |
205 "Available bitmap formats (-f <bfrm>):\n" | 204 "Available bitmap formats (-f <bfrm>):\n" |
206 " bfrm | Type | Description\n" | 205 " bfrm | Type | Description\n" |
207 "------+-----------------+-------------------------------------\n" | 206 "------+-----------------+-------------------------------------\n" |
208 ); | 207 ); |
209 | 208 |
210 for (i = 0; i < ndmC64ImageFormats; i++) | 209 for (int i = 0; i < ndmC64ImageFormats; i++) |
211 { | 210 { |
212 const DMC64ImageFormat *fmt = &dmC64ImageFormats[i]; | 211 const DMC64ImageFormat *fmt = &dmC64ImageFormats[i]; |
213 char buf[64]; | 212 char buf[64]; |
214 printf("%-5s | %-15s | %s\n", | 213 printf("%-5s | %-15s | %s\n", |
215 fmt->fext, | 214 fmt->fext, |