Diff for /embedaddon/readline/shell.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2014/07/30 08:16:45 version 1.1.1.2, 2021/03/17 01:01:01
Line 1 Line 1
 /* shell.c -- readline utility functions that are normally provided by  /* shell.c -- readline utility functions that are normally provided by
               bash when readline is linked as part of the shell. */                bash when readline is linked as part of the shell. */
   
/* Copyright (C) 1997-2009 Free Software Foundation, Inc./* Copyright (C) 1997-2009,2017 Free Software Foundation, Inc.
   
    This file is part of the GNU Readline Library (Readline), a library     This file is part of the GNU Readline Library (Readline), a library
    for reading lines of text with interactive input and history editing.           for reading lines of text with interactive input and history editing.      
Line 92  extern struct passwd *getpwuid PARAMS((uid_t)); Line 92  extern struct passwd *getpwuid PARAMS((uid_t));
   
 /* Does shell-like quoting using single quotes. */  /* Does shell-like quoting using single quotes. */
 char *  char *
sh_single_quote (string)sh_single_quote (char *string)
     char *string; 
 {  {
   register int c;    register int c;
   char *result, *r, *s;    char *result, *r, *s;
Line 127  static char putenv_buf1[INT_STRLEN_BOUND (int) + 6 + 1 Line 126  static char putenv_buf1[INT_STRLEN_BOUND (int) + 6 + 1
 static char putenv_buf2[INT_STRLEN_BOUND (int) + 8 + 1];        /* sizeof("COLUMNS=") == 8 */  static char putenv_buf2[INT_STRLEN_BOUND (int) + 8 + 1];        /* sizeof("COLUMNS=") == 8 */
   
 void  void
sh_set_lines_and_columns (lines, cols)sh_set_lines_and_columns (int lines, int cols)
     int lines, cols; 
 {  {
 #if defined (HAVE_SETENV)  #if defined (HAVE_SETENV)
   sprintf (setenv_buf, "%d", lines);    sprintf (setenv_buf, "%d", lines);
Line 148  sh_set_lines_and_columns (lines, cols) Line 146  sh_set_lines_and_columns (lines, cols)
 }  }
   
 char *  char *
sh_get_env_value (varname)sh_get_env_value (const char *varname)
     const char *varname; 
 {  {
   return ((char *)getenv (varname));    return ((char *)getenv (varname));
 }  }
   
 char *  char *
sh_get_home_dir ()sh_get_home_dir (void)
 {  {
   static char *home_dir = (char *)NULL;    static char *home_dir = (char *)NULL;
   struct passwd *entry;    struct passwd *entry;
Line 188  sh_get_home_dir () Line 185  sh_get_home_dir ()
 #endif  #endif
   
 int  int
sh_unset_nodelay_mode (fd)sh_unset_nodelay_mode (int fd)
     int fd; 
 {  {
 #if defined (HAVE_FCNTL)  #if defined (HAVE_FCNTL)
   int flags, bflags;    int flags, bflags;

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


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