Diff for /embedaddon/readline/keymaps.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
 /* keymaps.c -- Functions and keymaps for the GNU Readline library. */  /* keymaps.c -- Functions and keymaps for the GNU Readline library. */
   
/* Copyright (C) 1988,1989-2009 Free Software Foundation, Inc./* Copyright (C) 1988,1989-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 54 Line 54
 /* Return a new, empty keymap.  /* Return a new, empty keymap.
    Free it with free() when you are done. */     Free it with free() when you are done. */
 Keymap  Keymap
rl_make_bare_keymap ()rl_make_bare_keymap (void)
 {  {
   register int i;    register int i;
   Keymap keymap;    Keymap keymap;
Line 77  rl_make_bare_keymap () Line 77  rl_make_bare_keymap ()
   return (keymap);    return (keymap);
 }  }
   
   /* A convenience function that returns 1 if there are no keys bound to
      functions in KEYMAP */
   int
   rl_empty_keymap (Keymap keymap)
   {
     int i;
   
     for (i = 0; i < ANYOTHERKEY; i++)
       {
         if (keymap[i].type != ISFUNC || keymap[i].function)
           return 0;
       }
     return 1;
   }
   
 /* Return a new keymap which is a copy of MAP.  Just copies pointers, does  /* Return a new keymap which is a copy of MAP.  Just copies pointers, does
    not copy text of macros or descend into child keymaps. */     not copy text of macros or descend into child keymaps. */
 Keymap  Keymap
rl_copy_keymap (map)rl_copy_keymap (Keymap map)
     Keymap map; 
 {  {
   register int i;    register int i;
   Keymap temp;    Keymap temp;
Line 99  rl_copy_keymap (map) Line 113  rl_copy_keymap (map)
    the uppercase Meta characters bound to run their lowercase equivalents,     the uppercase Meta characters bound to run their lowercase equivalents,
    and the Meta digits bound to produce numeric arguments. */     and the Meta digits bound to produce numeric arguments. */
 Keymap  Keymap
rl_make_keymap ()rl_make_keymap (void)
 {  {
   register int i;    register int i;
   Keymap newmap;    Keymap newmap;
Line 125  rl_make_keymap () Line 139  rl_make_keymap ()
   
 /* Free the storage associated with MAP. */  /* Free the storage associated with MAP. */
 void  void
rl_discard_keymap (map)rl_discard_keymap (Keymap map)
     Keymap map; 
 {  {
   int i;    int i;
   
Line 154  rl_discard_keymap (map) Line 167  rl_discard_keymap (map)
   
 /* Convenience function that discards, then frees, MAP. */  /* Convenience function that discards, then frees, MAP. */
 void  void
rl_free_keymap (map)rl_free_keymap (Keymap map)
     Keymap map; 
 {  {
   rl_discard_keymap (map);    rl_discard_keymap (map);
   xfree ((char *)map);    xfree ((char *)map);

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


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