Diff for /freem/src/init.c between versions 1.14 and 1.18

version 1.14, 2025/04/20 03:13:17 version 1.18, 2026/03/19 19:03:58
Line 24 Line 24
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
  *   $Log$   *   $Log$
    *   Revision 1.18  2026/03/19 19:03:58  snw
    *   Attempt to rectify terminal corruption problem when the user performs a gracious exit
    *
    *   Revision 1.17  2026/03/14 21:04:51  snw
    *   Fix segfault in OPEN command with I/O channel specified but no file
    *
    *   Revision 1.16  2026/01/07 19:51:33  snw
    *   Fix segfault in reverse $QUERY
    *
    *   Revision 1.15  2025/05/16 04:02:14  snw
    *   Make FreeM build on macOS on Apple Silicon
    *
  *   Revision 1.14  2025/04/20 03:13:17  snw   *   Revision 1.14  2025/04/20 03:13:17  snw
  *   Updates to init_execution_context   *   Updates to init_execution_context
  *   *
Line 77 Line 89
 #  endif  #  endif
 #  define termio termios  #  define termio termios
 # else  # else
 #  if !defined(MSDOS)  #  if !defined(MSDOS) && !defined(__linux__)
 #    include <termio.h>  #    include <termio.h>
   #  else
   #    include <termios.h>
   #    define termio termios
 #  endif  #  endif
 # endif  # endif
 #else  #else
 # include <termios.h>  # include <termios.h>
 #endif  #endif
   
   
   #if defined(__APPLE__)
   # define termio termios
   # define TCGETA TIOCGETA
   # define TCSETA TIOCSETA
   #endif
   
 #include "config.h"  #include "config.h"
   
 #if defined(HAVE_MWAPI_MOTIF)  #if defined(HAVE_MWAPI_MOTIF)
Line 604  void init_io (void) Line 626  void init_io (void)
     else {      else {
         dev[HOME][0] = EOL;     /* ...we are in a pipe */          dev[HOME][0] = EOL;     /* ...we are in a pipe */
     }      }
       for (i = 5; i <= MAXDEV; i++) dev[i][0] = EOL;
 #else  #else
 #if defined(__AMIGA)  #if defined(__AMIGA)
     strcpy (dev[HOME], "CONSOLE:");      strcpy (dev[HOME], "CONSOLE:");
Line 745  void cleanup (void) Line 768  void cleanup (void)
             unlink (pid_file_path);              unlink (pid_file_path);
         }          }
   
     }      }  
           
       
           
     free (buff);            /* free previously allocated space */      free (buff);            /* free previously allocated space */
     free (svntable);      free (svntable);

Removed from v.1.14  
changed lines
  Added in v.1.18


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>