Skip to content

Commit dc8c96d

Browse files
committed
typedef code style
1 parent 6d5cf28 commit dc8c96d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js-payload-compress.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Based on work by 0b5vr and subzey:
2020

2121
#include "zopfli.h"
2222

23-
typedef struct USER_OPTIONS {
23+
typedef struct user_options {
2424
char *javascript_path;
2525
char *html_path;
2626
int zopfli_iterations;
2727
bool no_blocksplitting;
2828
bool no_compression;
2929
bool dump_compressed_raw;
3030
bool no_statistics;
31-
} USER_OPTIONS;
31+
} user_options;
3232

3333
// Command line option names
3434
const char *ZOPFLI_ITERATIONS = "--zopfli-iterations=";
@@ -85,7 +85,7 @@ char *read_text_file(const char *infile_path) {
8585

8686
void compress(unsigned char *source_data, size_t source_data_size,
8787
unsigned char **compressed_data, size_t *compressed_data_size,
88-
USER_OPTIONS *user_options) {
88+
user_options *user_options) {
8989
ZopfliOptions zopfli_options;
9090
ZopfliInitOptions(&zopfli_options);
9191
zopfli_options.numiterations = user_options->zopfli_iterations;
@@ -177,7 +177,7 @@ void print_usage_information() {
177177
printf("%s: Do not show statistics.\n", NO_STATISTICS);
178178
}
179179

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[]) {
181181
if (argc < 3) {
182182
print_usage_information();
183183
return;
@@ -223,7 +223,7 @@ void process_command_line(USER_OPTIONS *user_options, int argc, char *argv[]) {
223223
int main(int argc, char *argv[]) {
224224
printf("js-payload-compress\n");
225225

226-
USER_OPTIONS user_options = {NULL, NULL, 50, false, false, false, false};
226+
user_options user_options = {NULL, NULL, 50, false, false, false, false};
227227
process_command_line(&user_options, argc, argv);
228228
if (user_options.javascript_path == NULL || user_options.html_path == NULL) {
229229
printf("Failed to interpret commandline (specified in or out file).\n");

0 commit comments

Comments
 (0)