| Index: jcomapi.c
|
| diff --git a/jcomapi.c b/jcomapi.c
|
| index 9b1fa7568a67a7c25a599976ada93c53db665c57..6e5bf3dba9d86a83ce5dac391fcf6cea0ad313d2 100644
|
| --- a/jcomapi.c
|
| +++ b/jcomapi.c
|
| @@ -1,9 +1,12 @@
|
| /*
|
| * jcomapi.c
|
| *
|
| + * This file was part of the Independent JPEG Group's software:
|
| * Copyright (C) 1994-1997, Thomas G. Lane.
|
| - * This file is part of the Independent JPEG Group's software.
|
| - * For conditions of distribution and use, see the accompanying README file.
|
| + * It was modified by The libjpeg-turbo Project to include only code relevant
|
| + * to libjpeg-turbo.
|
| + * For conditions of distribution and use, see the accompanying README.ijg
|
| + * file.
|
| *
|
| * This file contains application interface routines that are used for both
|
| * compression and decompression.
|
| @@ -72,8 +75,8 @@ jpeg_destroy (j_common_ptr cinfo)
|
| /* NB: mem pointer is NULL if memory mgr failed to initialize. */
|
| if (cinfo->mem != NULL)
|
| (*cinfo->mem->self_destruct) (cinfo);
|
| - cinfo->mem = NULL; /* be safe if jpeg_destroy is called twice */
|
| - cinfo->global_state = 0; /* mark it destroyed */
|
| + cinfo->mem = NULL; /* be safe if jpeg_destroy is called twice */
|
| + cinfo->global_state = 0; /* mark it destroyed */
|
| }
|
|
|
|
|
| @@ -88,8 +91,8 @@ jpeg_alloc_quant_table (j_common_ptr cinfo)
|
| JQUANT_TBL *tbl;
|
|
|
| tbl = (JQUANT_TBL *)
|
| - (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, SIZEOF(JQUANT_TBL));
|
| - tbl->sent_table = FALSE; /* make sure this is false in any new table */
|
| + (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, sizeof(JQUANT_TBL));
|
| + tbl->sent_table = FALSE; /* make sure this is false in any new table */
|
| return tbl;
|
| }
|
|
|
| @@ -100,7 +103,7 @@ jpeg_alloc_huff_table (j_common_ptr cinfo)
|
| JHUFF_TBL *tbl;
|
|
|
| tbl = (JHUFF_TBL *)
|
| - (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, SIZEOF(JHUFF_TBL));
|
| - tbl->sent_table = FALSE; /* make sure this is false in any new table */
|
| + (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, sizeof(JHUFF_TBL));
|
| + tbl->sent_table = FALSE; /* make sure this is false in any new table */
|
| return tbl;
|
| }
|
|
|