@@ -20,15 +20,15 @@ Based on work by 0b5vr and subzey:
20
20
21
21
#include "zopfli.h"
22
22
23
- typedef struct USER_OPTIONS {
23
+ typedef struct user_options {
24
24
char * javascript_path ;
25
25
char * html_path ;
26
26
int zopfli_iterations ;
27
27
bool no_blocksplitting ;
28
28
bool no_compression ;
29
29
bool dump_compressed_raw ;
30
30
bool no_statistics ;
31
- } USER_OPTIONS ;
31
+ } user_options ;
32
32
33
33
// Command line option names
34
34
const char * ZOPFLI_ITERATIONS = "--zopfli-iterations=" ;
@@ -85,7 +85,7 @@ char *read_text_file(const char *infile_path) {
85
85
86
86
void compress (unsigned char * source_data , size_t source_data_size ,
87
87
unsigned char * * compressed_data , size_t * compressed_data_size ,
88
- USER_OPTIONS * user_options ) {
88
+ user_options * user_options ) {
89
89
ZopfliOptions zopfli_options ;
90
90
ZopfliInitOptions (& zopfli_options );
91
91
zopfli_options .numiterations = user_options -> zopfli_iterations ;
@@ -177,7 +177,7 @@ void print_usage_information() {
177
177
printf ("%s: Do not show statistics.\n" , NO_STATISTICS );
178
178
}
179
179
180
- void process_command_line (USER_OPTIONS * user_options , int argc , char * argv []) {
180
+ void process_command_line (user_options * user_options , int argc , char * argv []) {
181
181
if (argc < 3 ) {
182
182
print_usage_information ();
183
183
return ;
@@ -223,7 +223,7 @@ void process_command_line(USER_OPTIONS *user_options, int argc, char *argv[]) {
223
223
int main (int argc , char * argv []) {
224
224
printf ("js-payload-compress\n" );
225
225
226
- USER_OPTIONS user_options = {NULL , NULL , 50 , false, false, false, false};
226
+ user_options user_options = {NULL , NULL , 50 , false, false, false, false};
227
227
process_command_line (& user_options , argc , argv );
228
228
if (user_options .javascript_path == NULL || user_options .html_path == NULL ) {
229
229
printf ("Failed to interpret commandline (specified in or out file).\n" );
0 commit comments