[BACK]Return to read.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libedit

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libedit/read.c between version 1.20 and 1.21

version 1.20, 2001/09/27 19:29:50 version 1.21, 2002/03/18 16:00:57
Line 36 
Line 36 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
 #include <sys/cdefs.h>  #include "config.h"
 #if !defined(lint) && !defined(SCCSID)  #if !defined(lint) && !defined(SCCSID)
 #if 0  #if 0
 static char sccsid[] = "@(#)read.c      8.1 (Berkeley) 6/4/93";  static char sccsid[] = "@(#)read.c      8.1 (Berkeley) 6/4/93";
Line 49  __RCSID("$NetBSD$");
Line 49  __RCSID("$NetBSD$");
  * read.c: Clean this junk up! This is horrible code.   * read.c: Clean this junk up! This is horrible code.
  *         Terminal read functions   *         Terminal read functions
  */   */
 #include "sys.h"  
 #include <errno.h>  #include <errno.h>
 #include <unistd.h>  #include <unistd.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 217  read_preread(EditLine *el)
Line 216  read_preread(EditLine *el)
  *      Push a macro   *      Push a macro
  */   */
 public void  public void
 el_push(EditLine *el, const char *str)  el_push(EditLine *el, char *str)
 {  {
         c_macro_t *ma = &el->el_chared.c_macro;          c_macro_t *ma = &el->el_chared.c_macro;
   
         if (str != NULL && ma->level + 1 < EL_MAXMACRO) {          if (str != NULL && ma->level + 1 < EL_MAXMACRO) {
                 ma->level++;                  ma->level++;
                 /* LINTED const cast */                  ma->macro[ma->level] = str;
                 ma->macro[ma->level] = (char *) str;  
         } else {          } else {
                 term_beep(el);                  term_beep(el);
                 term__flush();                  term__flush();

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

CVSweb <webmaster@jp.NetBSD.org>