diff options
author | Andrey Kiselev <dron@ak4719.spb.edu> | 2004-09-14 06:50:22 +0000 |
---|---|---|
committer | Andrey Kiselev <dron@ak4719.spb.edu> | 2004-09-14 06:50:22 +0000 |
commit | 2d978a7e7fa32dd21f3a0f936df037838c199bac (patch) | |
tree | b2d50575e703c00f8237e245bb5c04e333af2e11 /libtiff/tif_vms.c | |
parent | 84085967497cc9f98ed609731b90b45324d39ff7 (diff) | |
download | libtiff-git-2d978a7e7fa32dd21f3a0f936df037838c199bac.tar.gz |
Get rid of BSD data types (u_char, u_short, u_int, u_long).
Diffstat (limited to 'libtiff/tif_vms.c')
-rw-r--r-- | libtiff/tif_vms.c | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/libtiff/tif_vms.c b/libtiff/tif_vms.c index 0b00de31..658f6354 100644 --- a/libtiff/tif_vms.c +++ b/libtiff/tif_vms.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_vms.c,v 1.1 1999-07-27 21:50:27 mike Exp $ */ +/* $Id: tif_vms.c,v 1.2 2004-09-14 06:54:36 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -339,15 +339,15 @@ asm("_$$PsectAttributes_NOSHR$$_TIFFerrorHandler") /* IEEE floting point handling */ typedef struct ieeedouble { - u_long mant2; /* fix NDR: full 8-byte swap */ - u_long mant : 20, - exp : 11, - sign : 1; + unsigned long mant2; /* fix NDR: full 8-byte swap */ + unsigned long mant : 20, + exp : 11, + sign : 1; } ieeedouble; typedef struct ieeefloat { - u_long mant : 23, - exp : 8, - sign : 1; + unsigned long mant : 23, + exp : 8, + sign : 1; } ieeefloat; /* @@ -356,18 +356,18 @@ typedef struct ieeefloat { */ typedef struct { - u_long mant1 : 7, - exp : 8, - sign : 1, - mant2 : 16, - mant3 : 16, - mant4 : 16; + unsigned long mant1 : 7, + exp : 8, + sign : 1, + mant2 : 16, + mant3 : 16, + mant4 : 16; } nativedouble; typedef struct { - u_long mant1 : 7, - exp : 8, - sign : 1, - mant2 : 16; + unsigned long mant1 : 7, + exp : 8, + sign : 1, + mant2 : 16; } nativefloat; typedef union { @@ -544,7 +544,7 @@ dtoieee(double *dp) * conversion operations. */ void -TIFFCvtIEEEFloatToNative(TIFF* tif, u_int n, float* f) +TIFFCvtIEEEFloatToNative(TIFF* tif, unsigned int n, float* f) { float_t* fp = (float_t*) f; @@ -555,7 +555,7 @@ TIFFCvtIEEEFloatToNative(TIFF* tif, u_int n, float* f) } void -TIFFCvtNativeToIEEEFloat(TIFF* tif, u_int n, float* f) +TIFFCvtNativeToIEEEFloat(TIFF* tif, unsigned int n, float* f) { float_t* fp = (float_t*) f; @@ -565,7 +565,7 @@ TIFFCvtNativeToIEEEFloat(TIFF* tif, u_int n, float* f) } } void -TIFFCvtIEEEDoubleToNative(TIFF* tif, u_int n, double* f) +TIFFCvtIEEEDoubleToNative(TIFF* tif, unsigned int n, double* f) { double_t* fp = (double_t*) f; @@ -576,7 +576,7 @@ TIFFCvtIEEEDoubleToNative(TIFF* tif, u_int n, double* f) } void -TIFFCvtNativeToIEEEDouble(TIFF* tif, u_int n, double* f) +TIFFCvtNativeToIEEEDouble(TIFF* tif, unsigned int n, double* f) { double_t* fp = (double_t*) f; @@ -586,3 +586,5 @@ TIFFCvtNativeToIEEEDouble(TIFF* tif, u_int n, double* f) } } #endif + +/* vim: set ts=8 sts=8 sw=8 noet: */ |