diff -c -r old/indent-2.2.4/ChangeLog new/indent-2.2.4/ChangeLog
*** old/indent-2.2.4/ChangeLog	Fri Nov  5 04:14:10 1999
--- new/indent-2.2.4/ChangeLog	Sun Jan  2 18:58:08 2000
***************
*** 1,3 ****
--- 1,20 ----
+ 1999-12-15  Prashant TR <prashant_tr@yahoo.com>
+ 	* io.c: Modified the portion which assumes DOS can load only 32K of the
+ 	file. DJGPP can support large files under DOS. (patch provided by Eli
+ 	Zaretskii).
+ 
+ 1999-12-15  Prashant TR <prashant_tr@yahoo.com>
+ 
+ 	* indent.c: Added check to prevent DJGPP programs from trying to
+ 	indent a directory.
+ 
+ 1999-11-23  Prashant TR <prashant_tr@yahoo.com>
+ 
+ 	* sys.h: Added IS_PATH_SEP macro for DOS filenames.
+ 
+ 	* backup.c: Modified to handle the backup filenames under DOS to
+ 	stick to the 8.3 format in case we aren't using LFN.
+ 
  1999-11-04  Carlo Wood, Runaway  <carlo@jolan>
  
  	* NEWS: O well, lets release it.
diff -c -r old/indent-2.2.4/backup.c new/indent-2.2.4/backup.c
*** old/indent-2.2.4/backup.c	Sun Jan  2 17:01:56 2000
--- new/indent-2.2.4/backup.c	Sun Jan  2 18:58:47 2000
***************
*** 221,230 ****
    int version;
  
    p = pathname + pathlen - 1;
!   while (p > pathname && *p != '/')
      p--;
  
!   if (*p == '/')
      {
        int dirlen = p - pathname;
        char *dirname;
--- 221,230 ----
    int version;
  
    p = pathname + pathlen - 1;
!   while (p > pathname && !IS_PATH_SEP (*p))
      p--;
  
!   if (IS_PATH_SEP (*p))
      {
        int dirlen = p - pathname;
        char *dirname;
***************
*** 300,305 ****
--- 300,310 ----
    char *version;
    struct version_control_values *v;
  
+ #ifdef __DJGPP__
+   /* DJGPP programs support long filenames, but only on Windows 9x.  */
+   if (!_USE_LFN)
+     return simple;
+ #endif
    version = getenv ("VERSION_CONTROL");
    if (version == 0 || *version == 0)
      return numbered_existing;
diff -c -r old/indent-2.2.4/indent.c new/indent-2.2.4/indent.c
*** old/indent-2.2.4/indent.c	Sun Jan  2 17:01:56 2000
--- new/indent-2.2.4/indent.c	Sun Jan  2 18:48:16 2000
***************
*** 2082,2087 ****
--- 2082,2094 ----
  	  struct stat file_stats;
  
  	  in_name = out_name = in_file_names[i];
+ 
+ #ifdef __DJGPP__
+ 	  /* Check if it is a directory. Skip, if so. */
+ 	  if ((stat (in_file_names[i], &file_stats) == -1) ||
+ 	      (S_ISDIR(file_stats.st_mode))) continue;
+ #endif
+ 
  	  current_input = read_file (in_file_names[i], &file_stats);
  	  output = fopen (out_name, "w");
  	  if (output == 0)
diff -c -r old/indent-2.2.4/indent.texinfo new/indent-2.2.4/indent.texinfo
*** old/indent-2.2.4/indent.texinfo	Thu Nov  4 21:59:50 1999
--- new/indent-2.2.4/indent.texinfo	Sun Jan  2 18:48:16 2000
***************
*** 259,264 ****
--- 259,272 ----
  found.  This behaviour is different from that of other versions of
  @command{indent}, which load both files if they both exist.
  
+ Note that on MS-DOS and MS-Windows, the profile file is called
+ @file{indent.pro}, without a leading dot, because these systems don't
+ allow more than one dot in a filename.  Also, since users do not
+ generally have special home directories on these systems, you will need
+ to set the @code{HOME} environment variable to point to a directory
+ where your default @file{indent.pro} file is stored, if you want
+ @code{indent} to find it in a directory other than the current.
+ 
  The format of @file{.indent.pro} is simply a list of options, just as
  they would appear on the command line, separated by white space (tabs,
  spaces, and newlines).  Options in @file{.indent.pro} may be surrounded by C
***************
*** 308,313 ****
--- 316,328 ----
  otherwise, a simple backup is made.  If @env{VERSION_CONTROL} is not
  set, then @command{indent} assumes the behaviour of
  @samp{numbered-existing}.
+ 
+ The MS-DOS/MS-Windows version of @code{indent} supports numbered backups
+ only on Windows 9x, where filenames are allowed to have more than a
+ single dot.  On other MS platforms, setting @code{VERSION_CONTROL} to
+ @samp{numbered} has no effect, and @code{indent} will always produce
+ either a simple-style backup file or no backups at all (if you set
+ @code{VERSION_CONTROL} to @samp{never}).
  
  Other versions of @command{indent} use the suffix @file{.BAK} in naming
  backup files.  This behaviour can be emulated by setting
diff -c -r old/indent-2.2.4/io.c new/indent-2.2.4/io.c
*** old/indent-2.2.4/io.c	Sun Jan  2 17:01:56 2000
--- new/indent-2.2.4/io.c	Sun Jan  2 18:48:16 2000
***************
*** 1044,1050 ****
    if (file_stats->st_size == 0)
      ERROR ("Warning: Zero-length file %s", filename, 0);
  
! #ifdef __MSDOS__
    if (file_stats->st_size < 0 || file_stats->st_size > (0xffff - 1))
      fatal ("File %s is too big to read", filename);
  #else
--- 1044,1050 ----
    if (file_stats->st_size == 0)
      ERROR ("Warning: Zero-length file %s", filename, 0);
  
! #if defined(__MSDOS__) && !defined(__DJGPP__)
    if (file_stats->st_size < 0 || file_stats->st_size > (0xffff - 1))
      fatal ("File %s is too big to read", filename);
  #else
***************
*** 1059,1065 ****
      fileptr.data = (char *) xmalloc ((unsigned) file_stats->st_size + 1);
  
    size = INDENT_SYS_READ (fd, fileptr.data, fileptr.size);
! #ifdef __MSDOS__
    if (size == 0xffff)		/* -1 = 0xffff in 16-bit world */
  #else
    if (size == (unsigned int)-1)
--- 1059,1065 ----
      fileptr.data = (char *) xmalloc ((unsigned) file_stats->st_size + 1);
  
    size = INDENT_SYS_READ (fd, fileptr.data, fileptr.size);
! #if defined(__MSDOS__) && !defined(__DJGPP__)
    if (size == 0xffff)		/* -1 = 0xffff in 16-bit world */
  #else
    if (size == (unsigned int)-1)
diff -c -r old/indent-2.2.4/sys.h new/indent-2.2.4/sys.h
*** old/indent-2.2.4/sys.h	Sun Jan  2 17:01:56 2000
--- new/indent-2.2.4/sys.h	Sun Jan  2 18:48:16 2000
***************
*** 68,73 ****
--- 68,80 ----
  
  #ifdef __MSDOS__
  # define ONE_DOT_PER_FILENAME 1
+ # ifndef __GNUC__
+ # define USG   1
+ # endif
+ # ifndef __DJGPP__
+ #  define NODIR 1
+ # endif
+ # define IS_PATH_SEP(c)  ((c) == '/' || (c) == '\\' || (c) == ':')
  #endif /* __MSDOS__ */
  
  #ifdef PROTOTYPES
