aboutsummaryrefslogtreecommitdiff
path: root/jcomapi.c
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2014-05-18 19:04:03 +0000
committerDRC <dcommander@users.sourceforge.net>2014-05-18 19:04:03 +0000
commit5de454b291f48382648a5d1dc2aa0fca8b5786d4 (patch)
treec2cf7aca4212a857dc653aa6e92cff6c8b06fa32 /jcomapi.c
parent5033f3e19a31e8ad40c1a79700365aefe5664494 (diff)
downloadlibjpeg-turbo-5de454b291f48382648a5d1dc2aa0fca8b5786d4.tar.gz
libjpeg-turbo has never supported non-ANSI compilers, so get rid of the crufty SIZEOF() macro. It was not being used consistently anyhow, so it would not have been possible to build prior releases of libjpeg-turbo using the broken compilers for which that macro was designed.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1313 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jcomapi.c')
-rw-r--r--jcomapi.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/jcomapi.c b/jcomapi.c
index 4ca20428..d8f396d1 100644
--- a/jcomapi.c
+++ b/jcomapi.c
@@ -1,8 +1,10 @@
/*
* jcomapi.c
*
- * Copyright (C) 1994-1997, Thomas G. Lane.
- * This file is part of the Independent JPEG Group's software.
+ * This file was part of the Independent JPEG Group's software:
+ * Copyright (C) 1994-1997, Thomas G. Lane.0
+ * 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 file.
*
* This file contains application interface routines that are used for both
@@ -88,7 +90,7 @@ jpeg_alloc_quant_table (j_common_ptr cinfo)
JQUANT_TBL *tbl;
tbl = (JQUANT_TBL *)
- (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, SIZEOF(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 */
return tbl;
}
@@ -100,7 +102,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));
+ (*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;
}