AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
November 2009

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

2009.11.27 06:09 "Small static cleanup", by Adam Goode
2009.11.27 06:09 "[PATCH 1/2] Make TIFFDisplay argument in TIFFCIELabToRGBInit const", by Adam Goode
2009.11.27 06:09 "[PATCH 2/2] Make display_sRGB static const", by Adam Goode

2009.11.27 06:09 "[PATCH 2/2] Make display_sRGB static const", by Adam Goode

Making display_sRGB static and const moves the data to the rodata section,
saving some per-process memory and speeding up library loading. It
is not exported, so should be safe to make static.
---
 libtiff/tif_getimage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libtiff/tif_getimage.c b/libtiff/tif_getimage.c
index 372bcb7..be60d3d 100644
--- a/libtiff/tif_getimage.c
+++ b/libtiff/tif_getimage.c
@@ -54,7 +54,7 @@ static const char photoTag[] = "PhotometricInterpretation";
  * Color conversion constants. We will define display types here.
  */
 
-TIFFDisplay display_sRGB = {
+static const TIFFDisplay display_sRGB = {
 	{			/* XYZ -> luminance matrix */
 		{  3.2410F, -1.5374F, -0.4986F },
 		{  -0.9692F, 1.8760F, 0.0416F },
-- 
1.6.5.2