[BACK]Return to extend.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/extend.c between version 1.76 and 1.77

version 1.76, 2022/12/26 19:16:02 version 1.77, 2023/03/08 04:43:11
Line 32 
Line 32 
 /*  /*
  * Insert a string, mainly for use from macros (created by selfinsert).   * Insert a string, mainly for use from macros (created by selfinsert).
  */   */
 /* ARGSUSED */  
 int  int
 insert(int f, int n)  insert(int f, int n)
 {  {
Line 461 
Line 460 
 /*  /*
  * This function modifies the fundamental keyboard map.   * This function modifies the fundamental keyboard map.
  */   */
 /* ARGSUSED */  
 int  int
 bindtokey(int f, int n)  bindtokey(int f, int n)
 {  {
Line 471 
Line 469 
 /*  /*
  * This function modifies the current mode's keyboard map.   * This function modifies the current mode's keyboard map.
  */   */
 /* ARGSUSED */  
 int  int
 localbind(int f, int n)  localbind(int f, int n)
 {  {
Line 482 
Line 479 
 /*  /*
  * This function redefines a key in any keymap.   * This function redefines a key in any keymap.
  */   */
 /* ARGSUSED */  
 int  int
 redefine_key(int f, int n)  redefine_key(int f, int n)
 {  {
Line 505 
Line 501 
         return (dobind(mp, buf, FALSE));          return (dobind(mp, buf, FALSE));
 }  }
   
 /* ARGSUSED */  
 int  int
 unbindtokey(int f, int n)  unbindtokey(int f, int n)
 {  {
         return (dobind(fundamental_map, "Global unset key: ", TRUE));          return (dobind(fundamental_map, "Global unset key: ", TRUE));
 }  }
   
 /* ARGSUSED */  
 int  int
 localunbind(int f, int n)  localunbind(int f, int n)
 {  {
Line 573 
Line 567 
  * Use strlen for length of line, assume user is not typing in a '\0' in the   * Use strlen for length of line, assume user is not typing in a '\0' in the
  * modeline. llen only used for foundparen() so old-school will be ok.   * modeline. llen only used for foundparen() so old-school will be ok.
  */   */
 /* ARGSUSED */  
 int  int
 evalexpr(int f, int n)  evalexpr(int f, int n)
 {  {
Line 594 
Line 587 
  * evalbuffer - evaluate the current buffer as line commands. Useful for   * evalbuffer - evaluate the current buffer as line commands. Useful for
  * testing startup files.   * testing startup files.
  */   */
 /* ARGSUSED */  
 int  int
 evalbuffer(int f, int n)  evalbuffer(int f, int n)
 {  {
Line 625 
Line 617 
  * evalfile - go get a file and evaluate it as line commands. You can   * evalfile - go get a file and evaluate it as line commands. You can
  *      go get your own startup file if need be.   *      go get your own startup file if need be.
  */   */
 /* ARGSUSED */  
 int  int
 evalfile(int f, int n)  evalfile(int f, int n)
 {  {

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77