libtiff: * Add an emacs formatting mode footer to all source files so that

https://github.com/libsdl-org/libtiff/commit/5ef6de4c7055a3b426d97d5af1a77484ee92eb30

From 5ef6de4c7055a3b426d97d5af1a77484ee92eb30 Mon Sep 17 00:00:00 2001
From: Bob Friesenhahn <[EMAIL REDACTED]>
Date: Tue, 8 Jun 2010 18:50:40 +0000
Subject: [PATCH] * Add an emacs formatting mode footer to all source files so
 that emacs can be effectively used.

---
 ChangeLog                       |   5 +
 contrib/addtiffo/addtiffo.c     |  15 ++-
 contrib/addtiffo/tif_overview.c |   7 ++
 contrib/addtiffo/tif_ovrcache.c |   9 +-
 contrib/addtiffo/tif_ovrcache.h |   7 ++
 contrib/dbs/tiff-bi.c           |   9 +-
 contrib/dbs/tiff-grayscale.c    |   9 +-
 contrib/dbs/tiff-palette.c      |   9 +-
 contrib/dbs/tiff-rgb.c          |   9 +-
 contrib/dbs/xtiff/patchlevel.h  |   7 ++
 contrib/dbs/xtiff/xtiff.c       |   9 +-
 contrib/dbs/xtiff/xtifficon.h   |   7 ++
 contrib/iptcutil/iptcutil.c     |   9 +-
 contrib/mac-cw/mac_main.c       |   7 ++
 contrib/mac-cw/mac_main.h       |   7 ++
 contrib/mac-cw/mkg3_main.c      |   7 ++
 contrib/mac-cw/version.h        |   7 ++
 contrib/mac-mpw/mactrans.c      |   7 ++
 contrib/mfs/mfs_file.c          |   7 ++
 contrib/pds/tif_imageiter.c     |   9 +-
 contrib/pds/tif_imageiter.h     |   7 ++
 contrib/pds/tif_pdsdirread.c    |   9 +-
 contrib/pds/tif_pdsdirwrite.c   |   9 +-
 contrib/ras/ras2tif.c           |   7 ++
 contrib/ras/tif2ras.c           |   9 +-
 contrib/stream/tiffstream.cpp   |   8 +-
 contrib/stream/tiffstream.h     |   8 +-
 contrib/tags/listtif.c          |   7 ++
 contrib/tags/maketif.c          |   7 ++
 contrib/tags/xtif_dir.c         |   7 ++
 contrib/tags/xtiffio.h          |   7 ++
 contrib/tags/xtiffiop.h         |   7 ++
 contrib/win_dib/Tiffile.cpp     |   7 ++
 contrib/win_dib/tiff2dib.c      |   7 ++
 libtiff/mkg3states.c            |   9 +-
 libtiff/mkspans.c               |   9 +-
 libtiff/t4.h                    |   9 +-
 libtiff/tif_acorn.c             |   9 +-
 libtiff/tif_apple.c             |   9 +-
 libtiff/tif_atari.c             |   9 +-
 libtiff/tif_aux.c               |   9 +-
 libtiff/tif_close.c             |   9 +-
 libtiff/tif_codec.c             |   9 +-
 libtiff/tif_color.c             |   9 +-
 libtiff/tif_compress.c          |   9 +-
 libtiff/tif_config.vc.h         |   7 ++
 libtiff/tif_config.wince.h      |   9 +-
 libtiff/tif_dir.c               |   9 +-
 libtiff/tif_dir.h               |   9 +-
 libtiff/tif_dirinfo.c           |   9 +-
 libtiff/tif_dirread.c           |   9 +-
 libtiff/tif_dirwrite.c          |   9 +-
 libtiff/tif_dumpmode.c          |   9 +-
 libtiff/tif_error.c             |   9 +-
 libtiff/tif_extension.c         |   9 +-
 libtiff/tif_fax3.c              |   9 +-
 libtiff/tif_fax3.h              |   9 +-
 libtiff/tif_fax3sm.c            |   7 ++
 libtiff/tif_flush.c             |   9 +-
 libtiff/tif_getimage.c          |   9 +-
 libtiff/tif_jbig.c              |   9 +-
 libtiff/tif_jpeg.c              |   9 +-
 libtiff/tif_luv.c               |   9 +-
 libtiff/tif_lzw.c               |   9 +-
 libtiff/tif_msdos.c             |   9 +-
 libtiff/tif_next.c              |   9 +-
 libtiff/tif_ojpeg.c             |   9 +-
 libtiff/tif_open.c              | 184 ++++++++++++--------------------
 libtiff/tif_packbits.c          |   9 +-
 libtiff/tif_pixarlog.c          |   9 +-
 libtiff/tif_predict.c           |   9 +-
 libtiff/tif_predict.h           |   9 +-
 libtiff/tif_print.c             |   9 +-
 libtiff/tif_read.c              |   9 +-
 libtiff/tif_strip.c             |   9 +-
 libtiff/tif_swab.c              |  23 ++--
 libtiff/tif_thunder.c           |   9 +-
 libtiff/tif_tile.c              |   9 +-
 libtiff/tif_unix.c              |   9 +-
 libtiff/tif_version.c           |   9 +-
 libtiff/tif_vms.c               |   9 +-
 libtiff/tif_warning.c           |   9 +-
 libtiff/tif_win3.c              |   9 +-
 libtiff/tif_win32.c             |  27 +++--
 libtiff/tif_wince.c             |   9 +-
 libtiff/tif_write.c             |   9 +-
 libtiff/tif_zip.c               |   9 +-
 libtiff/tiff.h                  | 136 ++++++++++-------------
 libtiff/tiffconf.vc.h           |   7 ++
 libtiff/tiffconf.wince.h        |   9 +-
 libtiff/tiffio.h                |   9 +-
 libtiff/tiffio.hxx              |   9 +-
 libtiff/tiffiop.h               |   9 +-
 libtiff/tiffvers.h              |   7 ++
 libtiff/uvcode.h                |   7 ++
 port/dummy.c                    |   9 +-
 port/getopt.c                   |   9 +-
 port/lfind.c                    |   9 +-
 port/libport.h                  |   9 +-
 port/strcasecmp.c               |   9 +-
 port/strtoul.c                  |   9 +-
 test/ascii_tag.c                |   9 +-
 test/check_tag.c                |   9 +-
 test/long_tag.c                 |   9 +-
 test/short_tag.c                |   9 +-
 test/strip.c                    |   9 +-
 test/strip_rw.c                 |   9 +-
 test/test_arrays.c              |   9 +-
 test/test_arrays.h              |   9 +-
 tools/bmp2tiff.c                |   9 +-
 tools/fax2ps.c                  |   9 +-
 tools/fax2tiff.c                |   9 +-
 tools/gif2tiff.c                |   9 +-
 tools/pal2rgb.c                 |   9 +-
 tools/ppm2tiff.c                |   9 +-
 tools/ras2tiff.c                |   9 +-
 tools/rasterfile.h              |   9 +-
 tools/raw2tiff.c                |   9 +-
 tools/rgb2ycbcr.c               |   9 +-
 tools/sgi2tiff.c                |   9 +-
 tools/sgisv.c                   |   9 +-
 tools/thumbnail.c               |   9 +-
 tools/tiff2bw.c                 |   9 +-
 tools/tiff2pdf.c                |   9 +-
 tools/tiff2ps.c                 |   9 +-
 tools/tiff2rgba.c               |   9 +-
 tools/tiffcmp.c                 |   9 +-
 tools/tiffcp.c                  |   9 +-
 tools/tiffcrop.c                |   9 +-
 tools/tiffdither.c              |   9 +-
 tools/tiffdump.c                |   9 +-
 tools/tiffgt.c                  |   9 +-
 tools/tiffinfo.c                |   9 +-
 tools/tiffinfoce.c              |   9 +-
 tools/tiffmedian.c              |   9 +-
 tools/tiffset.c                 |  15 ++-
 tools/tiffsplit.c               |   9 +-
 tools/ycbcr.c                   |   7 ++
 138 files changed, 1201 insertions(+), 331 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 432738cf..6ce86c0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-08  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
+
+	* Add an emacs formatting mode footer to all source files so that
+	emacs can be effectively used.
+
 2010-06-03  Oliver Chen Feng <scip8183@gmail.com>
 
         * libtiff/tools/tiffcp.c: add a new option -x to force merged tiff
diff --git a/contrib/addtiffo/addtiffo.c b/contrib/addtiffo/addtiffo.c
index d36d62a6..107df366 100644
--- a/contrib/addtiffo/addtiffo.c
+++ b/contrib/addtiffo/addtiffo.c
@@ -1,5 +1,5 @@
 /******************************************************************************
- * $Id: addtiffo.c,v 1.6 2005-12-16 05:59:55 fwarmerdam Exp $
+ * $Id: addtiffo.c,v 1.6.2.1 2010-06-08 18:50:40 bfriesen Exp $
  *
  * Project:  GeoTIFF Overview Builder
  * Purpose:  Mainline for building overviews in a TIFF file.
@@ -28,7 +28,11 @@
  ******************************************************************************
  *
  * $Log: addtiffo.c,v $
- * Revision 1.6  2005-12-16 05:59:55  fwarmerdam
+ * Revision 1.6.2.1  2010-06-08 18:50:40  bfriesen
+ * * Add an emacs formatting mode footer to all source files so that
+ * emacs can be effectively used.
+ *
+ * Revision 1.6  2005/12/16 05:59:55  fwarmerdam
  * Major upgrade to support YCbCr subsampled jpeg images
  *
  * Revision 1.4  2004/09/21 13:31:23  dron
@@ -163,3 +167,10 @@ int main( int argc, char ** argv )
 
     return( 0 );
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/addtiffo/tif_overview.c b/contrib/addtiffo/tif_overview.c
index f7459b3e..994451cf 100644
--- a/contrib/addtiffo/tif_overview.c
+++ b/contrib/addtiffo/tif_overview.c
@@ -887,3 +887,10 @@ void TIFFBuildOverviews( TIFF *hTIFF, int nOverviews, int * panOvList,
 }
 
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/addtiffo/tif_ovrcache.c b/contrib/addtiffo/tif_ovrcache.c
index ac1a3568..646b5340 100644
--- a/contrib/addtiffo/tif_ovrcache.c
+++ b/contrib/addtiffo/tif_ovrcache.c
@@ -1,5 +1,5 @@
 /******************************************************************************
- * $Id: tif_ovrcache.c,v 1.7 2006-03-25 17:52:37 joris Exp $
+ * $Id: tif_ovrcache.c,v 1.7.2.1 2010-06-08 18:50:40 bfriesen Exp $
  *
  * Project:  TIFF Overview Builder
  * Purpose:  Library functions to maintain two rows of tiles or two strips
@@ -332,3 +332,10 @@ void TIFFDestroyOvrCache( TIFFOvrCache * psCache )
     _TIFFfree( psCache->pabyRow2Blocks );
     _TIFFfree( psCache );
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/addtiffo/tif_ovrcache.h b/contrib/addtiffo/tif_ovrcache.h
index 3298c872..928de363 100644
--- a/contrib/addtiffo/tif_ovrcache.h
+++ b/contrib/addtiffo/tif_ovrcache.h
@@ -99,3 +99,10 @@ uint32 TIFF_WriteOverview( TIFF *, int, int, int, int, int, int, int,
     
 #endif /* ndef TIF_OVRCACHE_H_INCLUDED */
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/dbs/tiff-bi.c b/contrib/dbs/tiff-bi.c
index 64cf6d93..f5492098 100644
--- a/contrib/dbs/tiff-bi.c
+++ b/contrib/dbs/tiff-bi.c
@@ -1,4 +1,4 @@
-/* $Id: tiff-bi.c,v 1.2 2004-05-03 16:46:36 dron Exp $ */
+/* $Id: tiff-bi.c,v 1.2.2.1 2010-06-08 18:50:40 bfriesen Exp $ */
 
 /*
  * tiff-bi.c -- create a Class B (bilevel) TIFF file
@@ -82,3 +82,10 @@ int main(int argc, char **argv)
     TIFFClose(tif);
     return 0;
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/dbs/tiff-grayscale.c b/contrib/dbs/tiff-grayscale.c
index c0b50f2e..e8f474ce 100644
--- a/contrib/dbs/tiff-grayscale.c
+++ b/contrib/dbs/tiff-grayscale.c
@@ -1,4 +1,4 @@
-/* $Id: tiff-grayscale.c,v 1.4 2004-09-03 08:26:08 dron Exp $ */
+/* $Id: tiff-grayscale.c,v 1.4.2.1 2010-06-08 18:50:40 bfriesen Exp $ */
 
 /*
  * tiff-grayscale.c -- create a Class G (grayscale) TIFF file
@@ -137,3 +137,10 @@ Usage()
     fprintf(stderr, "Usage: %s -depth (8 | 4 | 2) tiff-image\n", programName);
     exit(0);
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/dbs/tiff-palette.c b/contrib/dbs/tiff-palette.c
index a8e13509..054000b0 100644
--- a/contrib/dbs/tiff-palette.c
+++ b/contrib/dbs/tiff-palette.c
@@ -1,4 +1,4 @@
-/* $Id: tiff-palette.c,v 1.3 2004-09-03 08:27:20 dron Exp $ */
+/* $Id: tiff-palette.c,v 1.3.2.1 2010-06-08 18:50:40 bfriesen Exp $ */
 
 /*
  * tiff-palette.c -- create a Class P (palette) TIFF file
@@ -274,3 +274,10 @@ Usage()
     fprintf(stderr, "Usage: %s -depth (8 | 4 | 2 | 1) tiff-image\n", programName);
     exit(0);
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/dbs/tiff-rgb.c b/contrib/dbs/tiff-rgb.c
index e762ac63..dcde673c 100644
--- a/contrib/dbs/tiff-rgb.c
+++ b/contrib/dbs/tiff-rgb.c
@@ -1,4 +1,4 @@
-/* $Id: tiff-rgb.c,v 1.3 2004-09-03 08:29:16 dron Exp $ */
+/* $Id: tiff-rgb.c,v 1.3.2.1 2010-06-08 18:50:40 bfriesen Exp $ */
 
 /*
  * tiff-rgb.c -- create a 24-bit Class R (rgb) TIFF file
@@ -192,3 +192,10 @@ Usage()
     fprintf(stderr, "Usage: %s -gamma gamma tiff-image\n", programName);
     exit(0);
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/dbs/xtiff/patchlevel.h b/contrib/dbs/xtiff/patchlevel.h
index 935ec354..538b6d97 100644
--- a/contrib/dbs/xtiff/patchlevel.h
+++ b/contrib/dbs/xtiff/patchlevel.h
@@ -1 +1,8 @@
 #define PATCHLEVEL 0
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/dbs/xtiff/xtiff.c b/contrib/dbs/xtiff/xtiff.c
index 72045855..7fe3977f 100644
--- a/contrib/dbs/xtiff/xtiff.c
+++ b/contrib/dbs/xtiff/xtiff.c
@@ -1,5 +1,5 @@
 /*
- * $Id: xtiff.c,v 1.2 2006-10-13 10:16:22 dron Exp $
+ * $Id: xtiff.c,v 1.2.2.1 2010-06-08 18:50:40 bfriesen Exp $
  *
  * xtiff - view a TIFF file in an X window
  *
@@ -1281,3 +1281,10 @@ Usage()
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/dbs/xtiff/xtifficon.h b/contrib/dbs/xtiff/xtifficon.h
index 8ee16674..3eac48ef 100644
--- a/contrib/dbs/xtiff/xtifficon.h
+++ b/contrib/dbs/xtiff/xtifficon.h
@@ -12,3 +12,10 @@ static char xtifficon_bits[] = {
    0x80, 0x61, 0xfc, 0x03, 0xc0, 0x60, 0xf8, 0x07, 0xc0, 0x60, 0xf0, 0x0f,
    0x60, 0x60, 0xe0, 0x1f, 0x30, 0x60, 0xe0, 0x1f, 0x18, 0x60, 0xc0, 0x3f,
    0x0c, 0x60, 0x80, 0x7f, 0x06, 0x00, 0x00, 0xff};
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/iptcutil/iptcutil.c b/contrib/iptcutil/iptcutil.c
index 8dbccde7..557a67ee 100644
--- a/contrib/iptcutil/iptcutil.c
+++ b/contrib/iptcutil/iptcutil.c
@@ -1,4 +1,4 @@
-/* $Id: iptcutil.c,v 1.4.2.1 2009-08-30 16:21:46 bfriesen Exp $ */
+/* $Id: iptcutil.c,v 1.4.2.2 2010-06-08 18:50:41 bfriesen Exp $ */
 
 #include "tif_config.h"
 
@@ -932,3 +932,10 @@ int tokenizer(unsigned inflag,char *token,int tokmax,char *line,
 
   return 0;
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/mac-cw/mac_main.c b/contrib/mac-cw/mac_main.c
index 294655de..66b5a830 100644
--- a/contrib/mac-cw/mac_main.c
+++ b/contrib/mac-cw/mac_main.c
@@ -18,3 +18,10 @@ main()
 
 	return tool_main(argc,argv);  // Call the tool "main()" routine
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/mac-cw/mac_main.h b/contrib/mac-cw/mac_main.h
index 523300f7..5a5facbf 100644
--- a/contrib/mac-cw/mac_main.h
+++ b/contrib/mac-cw/mac_main.h
@@ -10,3 +10,10 @@
 
 #endif  /* _mac_main_h */
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/mac-cw/mkg3_main.c b/contrib/mac-cw/mkg3_main.c
index b31c8d10..0faea07e 100644
--- a/contrib/mac-cw/mkg3_main.c
+++ b/contrib/mac-cw/mkg3_main.c
@@ -12,3 +12,10 @@ main()
 	
 	return tool_main(4,argv);  // Call the tool "main()" routine
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/mac-cw/version.h b/contrib/mac-cw/version.h
index 3c5c56e1..ee4a5e4d 100644
--- a/contrib/mac-cw/version.h
+++ b/contrib/mac-cw/version.h
@@ -2,3 +2,10 @@
 "LIBTIFF, Version 3.4beta028 \n"\
 "Copyright (c) 1988-1995 Sam Leffler\n"\
 "Copyright (c) 1991-1996 Silicon Graphics, Inc."
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/mac-mpw/mactrans.c b/contrib/mac-mpw/mactrans.c
index 5e321b90..d35373e0 100644
--- a/contrib/mac-mpw/mactrans.c
+++ b/contrib/mac-mpw/mactrans.c
@@ -54,3 +54,10 @@ void to_ascii(void)
 	}
     }
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/mfs/mfs_file.c b/contrib/mfs/mfs_file.c
index 53a7c4c2..6675e2a3 100644
--- a/contrib/mfs/mfs_file.c
+++ b/contrib/mfs/mfs_file.c
@@ -577,3 +577,10 @@ static void mem_init ()
     }
 }
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/pds/tif_imageiter.c b/contrib/pds/tif_imageiter.c
index 592f6e98..6140f962 100644
--- a/contrib/pds/tif_imageiter.c
+++ b/contrib/pds/tif_imageiter.c
@@ -1,4 +1,4 @@
-/* $Header: /cvs/maptools/cvsroot/libtiff/contrib/pds/tif_imageiter.c,v 1.3 2005-12-21 12:23:13 joris Exp $ */
+/* $Header: /cvs/maptools/cvsroot/libtiff/contrib/pds/tif_imageiter.c,v 1.3.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1991-1996 Sam Leffler
@@ -516,3 +516,10 @@ main(int argc, char **argv)
     
 }
 #endif
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/pds/tif_imageiter.h b/contrib/pds/tif_imageiter.h
index 5b7ea40a..e7dbe46c 100644
--- a/contrib/pds/tif_imageiter.h
+++ b/contrib/pds/tif_imageiter.h
@@ -55,3 +55,10 @@ struct _TIFFImageIter {
 	    ImageIterTileSeparateRoutine	separate;
 	} callback;				/* fn to exec for each block */
 };
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/pds/tif_pdsdirread.c b/contrib/pds/tif_pdsdirread.c
index b09ab314..3d013112 100644
--- a/contrib/pds/tif_pdsdirread.c
+++ b/contrib/pds/tif_pdsdirread.c
@@ -1,4 +1,4 @@
-/* $Header: /cvs/maptools/cvsroot/libtiff/contrib/pds/tif_pdsdirread.c,v 1.3 2005-12-21 12:23:13 joris Exp $ */
+/* $Header: /cvs/maptools/cvsroot/libtiff/contrib/pds/tif_pdsdirread.c,v 1.3.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1996 Sam Leffler
@@ -1122,3 +1122,10 @@ ChopUpSingleUncompressedStrip(TIFF* tif)
 	td->td_stripoffset = newoffsets;
 }
 #endif /* STRIPCHOP_SUPPORT */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/pds/tif_pdsdirwrite.c b/contrib/pds/tif_pdsdirwrite.c
index bc548c4d..eb71d422 100644
--- a/contrib/pds/tif_pdsdirwrite.c
+++ b/contrib/pds/tif_pdsdirwrite.c
@@ -1,4 +1,4 @@
-/* $Header: /cvs/maptools/cvsroot/libtiff/contrib/pds/tif_pdsdirwrite.c,v 1.3 2005-12-21 12:23:13 joris Exp $ */
+/* $Header: /cvs/maptools/cvsroot/libtiff/contrib/pds/tif_pdsdirwrite.c,v 1.3.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /* When writing data to TIFF files, it is often useful to store application-
    specific data in a private TIFF directory so that the tags don't need to
@@ -962,3 +962,10 @@ TIFFLinkDirectory(TIFF* tif)
 	}
 	return (1);
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/ras/ras2tif.c b/contrib/ras/ras2tif.c
index b11b8799..c44b313e 100644
--- a/contrib/ras/ras2tif.c
+++ b/contrib/ras/ras2tif.c
@@ -245,3 +245,10 @@ main(argc, argv)
 
     exit(0);
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/ras/tif2ras.c b/contrib/ras/tif2ras.c
index cbae5cee..b665aed3 100644
--- a/contrib/ras/tif2ras.c
+++ b/contrib/ras/tif2ras.c
@@ -1,5 +1,5 @@
 #ifndef lint
-static char id[] = "$Id: tif2ras.c,v 1.2 1999-11-28 20:15:36 mwelles Exp $"; 
+static char id[] = "$Id: tif2ras.c,v 1.2.2.1 2010-06-08 18:50:41 bfriesen Exp $"; 
 #endif
 /*-
  * tif2ras.c - Converts from a Tagged Image File Format image to a Sun Raster.
@@ -335,3 +335,10 @@ main(argc, argv)
 
     exit(0);
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/stream/tiffstream.cpp b/contrib/stream/tiffstream.cpp
index 98eb2299..ffff6875 100644
--- a/contrib/stream/tiffstream.cpp
+++ b/contrib/stream/tiffstream.cpp
@@ -229,4 +229,10 @@ TiffStream::isOpen(thandle_t fd)
 	return (ts->m_inStream != NULL ||
 		   ts->m_outStream != NULL ||
 		   ts->m_ioStream != NULL);
-}
\ No newline at end of file
+}/*
+ * Local Variables:
+ * mode: c++
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/stream/tiffstream.h b/contrib/stream/tiffstream.h
index 58f9e035..815a1a5b 100644
--- a/contrib/stream/tiffstream.h
+++ b/contrib/stream/tiffstream.h
@@ -60,4 +60,10 @@ class TiffStream {
 	
 };
 
-#endif // _TIFF_STREAM_H_
\ No newline at end of file
+#endif // _TIFF_STREAM_H_/*
+ * Local Variables:
+ * mode: c++
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/tags/listtif.c b/contrib/tags/listtif.c
index 2ea12cea..605de843 100644
--- a/contrib/tags/listtif.c
+++ b/contrib/tags/listtif.c
@@ -30,3 +30,10 @@ void main(int argc,char *argv[])
 	exit (-1);
 }
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/tags/maketif.c b/contrib/tags/maketif.c
index 99a9ef03..e965201a 100644
--- a/contrib/tags/maketif.c
+++ b/contrib/tags/maketif.c
@@ -68,3 +68,10 @@ void WriteImage(TIFF *tif)
 
 
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/tags/xtif_dir.c b/contrib/tags/xtif_dir.c
index 7b9ef915..e67a6abf 100644
--- a/contrib/tags/xtif_dir.c
+++ b/contrib/tags/xtif_dir.c
@@ -341,3 +341,10 @@ XTIFFClose(TIFF *tif)
 	_XTIFFFreeDirectory(xt);
 	_TIFFfree(xt);
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/tags/xtiffio.h b/contrib/tags/xtiffio.h
index 2aea724d..e8600df0 100644
--- a/contrib/tags/xtiffio.h
+++ b/contrib/tags/xtiffio.h
@@ -50,3 +50,10 @@ extern void  XTIFFClose(TIFF *tif);
 
 #endif /* __xtiffio_h */
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/tags/xtiffiop.h b/contrib/tags/xtiffiop.h
index 0d3f1f2c..9d534a83 100644
--- a/contrib/tags/xtiffiop.h
+++ b/contrib/tags/xtiffiop.h
@@ -63,3 +63,10 @@ typedef struct xtiff xtiff;
 #define XTIFF_INITIALIZED 0x80000000
 	
 #endif /* __xtiffiop_h */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/win_dib/Tiffile.cpp b/contrib/win_dib/Tiffile.cpp
index 6e371d3d..9d958b1c 100644
--- a/contrib/win_dib/Tiffile.cpp
+++ b/contrib/win_dib/Tiffile.cpp
@@ -440,3 +440,10 @@ getStripContig1Bit(TIFFRGBAImage* img, uint32* raster, uint32 w, uint32 h)
     return (ret);
 }
 
+/*
+ * Local Variables:
+ * mode: c++
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/contrib/win_dib/tiff2dib.c b/contrib/win_dib/tiff2dib.c
index f5d4040f..475ef304 100644
--- a/contrib/win_dib/tiff2dib.c
+++ b/contrib/win_dib/tiff2dib.c
@@ -370,3 +370,10 @@ WORD DIBNumColors(LPSTR lpDIB)
       return 0;
       }
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/mkg3states.c b/libtiff/mkg3states.c
index 05fab99a..7f4346b7 100644
--- a/libtiff/mkg3states.c
+++ b/libtiff/mkg3states.c
@@ -1,4 +1,4 @@
-/* "$Id: mkg3states.c,v 1.10 2007-02-22 11:27:17 dron Exp $ */
+/* "$Id: mkg3states.c,v 1.10.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1991-1997 Sam Leffler
@@ -442,3 +442,10 @@ main(int argc, char* argv[])
 }
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/mkspans.c b/libtiff/mkspans.c
index b62e81ce..e1af7fb5 100644
--- a/libtiff/mkspans.c
+++ b/libtiff/mkspans.c
@@ -1,4 +1,4 @@
-/* $Id: mkspans.c,v 1.3 2007-02-21 14:20:32 dron Exp $ */
+/* $Id: mkspans.c,v 1.3.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1991-1997 Sam Leffler
@@ -73,3 +73,10 @@ main()
 }
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/t4.h b/libtiff/t4.h
index 5035fdcb..870704ff 100644
--- a/libtiff/t4.h
+++ b/libtiff/t4.h
@@ -1,4 +1,4 @@
-/* $Id: t4.h,v 1.1 1999-07-27 21:50:27 mike Exp $ */
+/* $Id: t4.h,v 1.1.1.1.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -283,3 +283,10 @@ extern	const tableentry TIFFFaxWhiteCodes[];
 extern	const tableentry TIFFFaxBlackCodes[];
 #endif
 #endif /* _T4_ */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_acorn.c b/libtiff/tif_acorn.c
index 59239c45..63f9234f 100644
--- a/libtiff/tif_acorn.c
+++ b/libtiff/tif_acorn.c
@@ -1,4 +1,4 @@
-/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/Attic/tif_acorn.c,v 1.2 2005-12-21 12:23:13 joris Exp $ */
+/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/Attic/tif_acorn.c,v 1.2.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -517,3 +517,10 @@ acornErrorHandler(const char* module, const char* fmt, va_list ap)
 	fprintf(stderr, ".\n");
 }
 TIFFErrorHandler _TIFFerrorHandler = acornErrorHandler;
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_apple.c b/libtiff/tif_apple.c
index fb5d256b..8c482288 100644
--- a/libtiff/tif_apple.c
+++ b/libtiff/tif_apple.c
@@ -1,4 +1,4 @@
-/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/Attic/tif_apple.c,v 1.3 2005-12-21 12:23:13 joris Exp $ */
+/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/Attic/tif_apple.c,v 1.3.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -272,3 +272,10 @@ appleErrorHandler(const char* module, const char* fmt, va_list ap)
 	fprintf(stderr, ".\n");
 }
 TIFFErrorHandler _TIFFerrorHandler = appleErrorHandler;
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_atari.c b/libtiff/tif_atari.c
index d376d6c9..4f56c2cd 100644
--- a/libtiff/tif_atari.c
+++ b/libtiff/tif_atari.c
@@ -1,4 +1,4 @@
-/* "$Header: /cvs/maptools/cvsroot/libtiff/libtiff/Attic/tif_atari.c,v 1.2 2005-12-21 12:23:13 joris Exp $" */
+/* "$Header: /cvs/maptools/cvsroot/libtiff/libtiff/Attic/tif_atari.c,v 1.2.2.1 2010-06-08 18:50:41 bfriesen Exp $" */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -241,3 +241,10 @@ atariErrorHandler(const char* module, const char* fmt, va_list ap)
 	fprintf(stderr, ".\n");
 }
 TIFFErrorHandler _TIFFerrorHandler = atariErrorHandler;
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_aux.c b/libtiff/tif_aux.c
index 479c6e55..2b52e11c 100644
--- a/libtiff/tif_aux.c
+++ b/libtiff/tif_aux.c
@@ -1,4 +1,4 @@
-/* $Id: tif_aux.c,v 1.20 2006-06-08 14:24:13 dron Exp $ */
+/* $Id: tif_aux.c,v 1.20.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1991-1997 Sam Leffler
@@ -273,3 +273,10 @@ TIFFGetFieldDefaulted(TIFF* tif, ttag_t tag, ...)
 }
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_close.c b/libtiff/tif_close.c
index aa8a38d0..02591ba9 100644
--- a/libtiff/tif_close.c
+++ b/libtiff/tif_close.c
@@ -1,4 +1,4 @@
-/* $Id: tif_close.c,v 1.10 2006-03-25 03:09:24 joris Exp $ */
+/* $Id: tif_close.c,v 1.10.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -117,3 +117,10 @@ TIFFClose(TIFF* tif)
 	(void) (*closeproc)(fd);
 }
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_codec.c b/libtiff/tif_codec.c
index 02fb839b..d5c6fd11 100644
--- a/libtiff/tif_codec.c
+++ b/libtiff/tif_codec.c
@@ -1,4 +1,4 @@
-/* $Id: tif_codec.c,v 1.10.2.1 2008-12-18 19:50:41 fwarmerdam Exp $ */
+/* $Id: tif_codec.c,v 1.10.2.2 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -151,3 +151,10 @@ TIFFIsCODECConfigured(uint16 scheme)
 	return 0;
 }
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_color.c b/libtiff/tif_color.c
index 0285cc6f..02eb346b 100644
--- a/libtiff/tif_color.c
+++ b/libtiff/tif_color.c
@@ -1,4 +1,4 @@
-/* $Id: tif_color.c,v 1.12 2006-02-09 15:42:20 dron Exp $ */
+/* $Id: tif_color.c,v 1.12.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -273,3 +273,10 @@ TIFFYCbCrToRGBInit(TIFFYCbCrToRGB* ycbcr, float *luma, float *refBlackWhite)
 #undef	FIX
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_compress.c b/libtiff/tif_compress.c
index 83f810fc..0ce509b0 100644
--- a/libtiff/tif_compress.c
+++ b/libtiff/tif_compress.c
@@ -1,4 +1,4 @@
-/* $Id: tif_compress.c,v 1.13 2007-02-24 15:03:50 dron Exp $ */
+/* $Id: tif_compress.c,v 1.13.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -286,3 +286,10 @@ TIFFGetConfiguredCODECs()
 }
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_config.vc.h b/libtiff/tif_config.vc.h
index d9caecf5..4dd77dd8 100644
--- a/libtiff/tif_config.vc.h
+++ b/libtiff/tif_config.vc.h
@@ -54,3 +54,10 @@
 #endif
 
 #define lfind _lfind
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_config.wince.h b/libtiff/tif_config.wince.h
index a434383f..857c651c 100644
--- a/libtiff/tif_config.wince.h
+++ b/libtiff/tif_config.wince.h
@@ -1,4 +1,4 @@
-/* $Id: tif_config.wince.h,v 1.1 2007-01-15 18:40:39 mloskot Exp $ */
+/* $Id: tif_config.wince.h,v 1.1.2.1 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * TIFF library configuration header for Windows CE platform.
@@ -65,3 +65,10 @@
 #endif
 
 
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_dir.c b/libtiff/tif_dir.c
index 27e91f74..373dde77 100644
--- a/libtiff/tif_dir.c
+++ b/libtiff/tif_dir.c
@@ -1,4 +1,4 @@
-/* $Id: tif_dir.c,v 1.75.2.3 2010-01-07 04:05:39 fwarmerdam Exp $ */
+/* $Id: tif_dir.c,v 1.75.2.4 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -1372,3 +1372,10 @@ TIFFReassignTagToIgnore (enum TIFFIgnoreSense task, int TIFFtagID)
 }
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_dir.h b/libtiff/tif_dir.h
index 87959e31..3b1cc33d 100644
--- a/libtiff/tif_dir.h
+++ b/libtiff/tif_dir.h
@@ -1,4 +1,4 @@
-/* $Id: tif_dir.h,v 1.30.2.1 2007-04-07 14:58:30 dron Exp $ */
+/* $Id: tif_dir.h,v 1.30.2.2 2010-06-08 18:50:41 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -200,3 +200,10 @@ extern  TIFFFieldInfo* _TIFFCreateAnonFieldInfo( TIFF *tif, ttag_t tag,
 #endif /* _TIFFDIR_ */
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_dirinfo.c b/libtiff/tif_dirinfo.c
index 99a871cc..9a19136e 100644
--- a/libtiff/tif_dirinfo.c
+++ b/libtiff/tif_dirinfo.c
@@ -1,4 +1,4 @@
-/* $Id: tif_dirinfo.c,v 1.65.2.7 2009-09-17 18:00:28 bfriesen Exp $ */
+/* $Id: tif_dirinfo.c,v 1.65.2.8 2010-06-08 18:50:42 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -879,3 +879,10 @@ _TIFFCreateAnonFieldInfo(TIFF *tif, ttag_t tag, TIFFDataType field_type)
 }
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c
index 52d53fc3..79261c96 100644
--- a/libtiff/tif_dirread.c
+++ b/libtiff/tif_dirread.c
@@ -1,4 +1,4 @@
-/* $Id: tif_dirread.c,v 1.92.2.6 2009-10-29 20:04:32 bfriesen Exp $ */
+/* $Id: tif_dirread.c,v 1.92.2.7 2010-06-08 18:50:42 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1988-1997 Sam Leffler
@@ -2014,3 +2014,10 @@ ChopUpSingleUncompressedStrip(TIFF* tif)
 }
 
 /* vim: set ts=8 sts=8 sw=8 noet: */
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */
diff --git a/libtiff/tif_dirwrite.c b/libtiff/tif_dirwrite.c
index 5148097d..8d308c42 100644
--- a/libtiff/tif_dirwrite.c
+++ b/libtiff/tif_dirwrite.c
@@ -1,4 +1,4 @@
-/* $Id: tif_dirwrite.c,v 1.37.2.6 2009

(Patch may be truncated, please check the link at the top of this post.)