diff options
| author | Clement Sibille <clements+git@lisible.xyz> | 2024-03-05 17:02:29 +0900 | 
|---|---|---|
| committer | Clement Sibille <clements+git@lisible.xyz> | 2024-03-05 17:02:29 +0900 | 
| commit | 1f412b64ce2229a7dc62b57239738c7a09b1af56 (patch) | |
| tree | 9bf46f92ed986be03cc844a54586d5c773c1bec6 | |
| parent | 5ce9aeb818f558309fbe7e526a8b94a3be19120a (diff) | |
Rename parse function to decode
| -rw-r--r-- | lisiblepng-bin/src/main.c | 2 | ||||
| -rw-r--r-- | lisiblepng/src/lisiblepng.c | 2 | ||||
| -rw-r--r-- | lisiblepng/src/lisiblepng.h | 2 | 
3 files changed, 3 insertions, 3 deletions
diff --git a/lisiblepng-bin/src/main.c b/lisiblepng-bin/src/main.c index 62dea31..d7f85ca 100644 --- a/lisiblepng-bin/src/main.c +++ b/lisiblepng-bin/src/main.c @@ -20,7 +20,7 @@ int main(int argc, char **argv) {      goto err;    } -  Png *png = lis_Png_parse(png_file); +  Png *png = lis_Png_decode(png_file);    lis_Png_dump_ppm(png);    lis_Png_destroy(png); diff --git a/lisiblepng/src/lisiblepng.c b/lisiblepng/src/lisiblepng.c index 7a3818b..21940b2 100644 --- a/lisiblepng/src/lisiblepng.c +++ b/lisiblepng/src/lisiblepng.c @@ -419,7 +419,7 @@ void apply_reconstruction_functions(Png *image,    }  } -Png *lis_Png_parse(FILE *stream) { +Png *lis_Png_decode(FILE *stream) {    Png *png = malloc(sizeof(Png));    DeflateDecompressor ctx; diff --git a/lisiblepng/src/lisiblepng.h b/lisiblepng/src/lisiblepng.h index 2fc1204..86a8364 100644 --- a/lisiblepng/src/lisiblepng.h +++ b/lisiblepng/src/lisiblepng.h @@ -12,7 +12,7 @@ typedef struct Png Png;  /// @returns The parsed PNG as a Png struct pointer or NULL if an error occured.  /// The returned PNG is owned by the caller and must be destroyed with  /// Png_destroy. -Png *lis_Png_parse(FILE *stream); +Png *lis_Png_decode(FILE *stream);  /// Outputs the provided Png struct as a PPM image to stdout  ///  /// @param png The png  | 
