home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.4.18 < prev    next >
Encoding:
Internet Message Format  |  1999-08-08  |  4.9 KB

  1. To: roemer@in.tum.de
  2. Cc: Moritz Moeller-Herrmann <mmh@gmx.net>
  3. Cc: vim-dev@vim.org
  4. Subject: patch 5.4.18 (was: Vim 5.4 linking error - readline related?)
  5. In-Reply-To: <19990809102116.G26118@hemd.informatik.tu-muenchen.de>
  6. Fcc: outbox
  7. From: Bram Moolenaar <Bram@moolenaar.net>
  8. ------------
  9.  
  10. Stefan Romer wrote:
  11.  
  12. > On Sun, 8 Aug 1999, Moritz Moeller-Herrmann <moritz@news.uni-mannheim.de> wrote:
  13. > >     /usr/lib/libreadline.a(history.o): In function `clear_history':
  14. > >     history.o(.text+0x5d0): multiple definition of `clear_history'
  15. > >     ex_getln.o:/home/moritz/download/vim-5.4/src/ex_getln.c:3201: first defined
  16. > >     here
  17. > > 
  18. > > I did enable the readline support in python, is there a conflict there? Or
  19. > > did an upgrade to readline after installing python cause this?
  20. > > Any ideas anyone?
  21. > Oops, that seems to be a name clash introduced by the new history features
  22. > of Vim 5.4.  Sorry, I don't use the Python integration, so I didn't know that
  23. > this identifier is already in use. Apparently no-one else noticed this so far.
  24. > Attached is a patch that renames that Vim function. Please apply it again
  25. > a clean Vim 5.4 source.
  26.  
  27. Good.  Let's turn this into an official patch:
  28.  
  29.  
  30. Patch 5.4.18
  31. Problem:    Python: The clear_history() function also exists in a library.
  32. Solution:   Rename clear_history() to clr_history().
  33. Files:        src/ex_getln.c, src/eval.c, src/proto/ex_getln.pro
  34.  
  35.  
  36. *** ../vim-5.4/src/ex_getln.c    Sun Jul 25 22:02:05 1999
  37. --- src/ex_getln.c    Mon Aug  9 11:31:44 1999
  38. ***************
  39. *** 3196,3202 ****
  40.    * "histype" may be HIST_CMD, HIST_SEARCH, HIST_EXPR or HIST_INPUT.
  41.    */
  42.       int
  43. ! clear_history(histype)
  44.       int        histype;
  45.   {
  46.       int            i;
  47. --- 3196,3202 ----
  48.    * "histype" may be HIST_CMD, HIST_SEARCH, HIST_EXPR or HIST_INPUT.
  49.    */
  50.       int
  51. ! clr_history(histype)
  52.       int        histype;
  53.   {
  54.       int            i;
  55. *** ../vim-5.4/src/eval.c    Sun Jul 25 22:02:03 1999
  56. --- src/eval.c    Mon Aug  9 11:31:39 1999
  57. ***************
  58. *** 3152,3158 ****
  59.   
  60.       if (argvars[1].var_type == VAR_UNKNOWN)
  61.       /* only one argument: clear entire history */
  62. !     n = clear_history(get_histtype(get_var_string(&argvars[0])));
  63.       else if (argvars[1].var_type == VAR_NUMBER)
  64.       /* index given: remove that entry */
  65.       n = del_history_idx(get_histtype(get_var_string(&argvars[0])),
  66. --- 3152,3158 ----
  67.   
  68.       if (argvars[1].var_type == VAR_UNKNOWN)
  69.       /* only one argument: clear entire history */
  70. !     n = clr_history(get_histtype(get_var_string(&argvars[0])));
  71.       else if (argvars[1].var_type == VAR_NUMBER)
  72.       /* index given: remove that entry */
  73.       n = del_history_idx(get_histtype(get_var_string(&argvars[0])),
  74. *** ../vim-5.4/src/proto/ex_getln.pro    Sun Jul 25 22:01:58 1999
  75. --- src/proto/ex_getln.pro    Mon Aug  9 11:31:50 1999
  76. ***************
  77. *** 17,23 ****
  78.   void add_to_history __ARGS((int histype, char_u *new_entry, int in_map));
  79.   int get_history_idx __ARGS((int histype));
  80.   char_u *get_history_entry __ARGS((int histype, int idx));
  81. ! int clear_history __ARGS((int histype));
  82.   int del_history_entry __ARGS((int histype, char_u *str));
  83.   int del_history_idx __ARGS((int histype, int idx));
  84.   void remove_key_from_history __ARGS((void));
  85. --- 17,23 ----
  86.   void add_to_history __ARGS((int histype, char_u *new_entry, int in_map));
  87.   int get_history_idx __ARGS((int histype));
  88.   char_u *get_history_entry __ARGS((int histype, int idx));
  89. ! int clr_history __ARGS((int histype));
  90.   int del_history_entry __ARGS((int histype, char_u *str));
  91.   int del_history_idx __ARGS((int histype, int idx));
  92.   void remove_key_from_history __ARGS((void));
  93. *** ../vim-5.4/src/version.h    Sun Aug  8 21:30:06 1999
  94. --- src/version.h    Mon Aug  9 11:37:30 1999
  95. ***************
  96. *** 19,26 ****
  97.   #define VIM_VERSION_MINOR_STR        "4"
  98.   #define VIM_VERSION_BUILD         57
  99.   #define VIM_VERSION_BUILD_STR        "57"
  100. ! #define VIM_VERSION_PATCHLEVEL         17
  101. ! #define VIM_VERSION_PATCHLEVEL_STR    "17"
  102.   
  103.   /*
  104.    * VIM_VERSION_NODOT is used for the runtime directory name.
  105. --- 19,26 ----
  106.   #define VIM_VERSION_MINOR_STR        "4"
  107.   #define VIM_VERSION_BUILD         57
  108.   #define VIM_VERSION_BUILD_STR        "57"
  109. ! #define VIM_VERSION_PATCHLEVEL         18
  110. ! #define VIM_VERSION_PATCHLEVEL_STR    "18"
  111.   
  112.   /*
  113.    * VIM_VERSION_NODOT is used for the runtime directory name.
  114. ***************
  115. *** 30,35 ****
  116.    */
  117.   #define VIM_VERSION_NODOT    "vim54"
  118.   #define VIM_VERSION_SHORT    "5.4"
  119. ! #define VIM_VERSION_MEDIUM    "5.4.17"
  120. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.17 (1999 Aug 8)"
  121. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.17 (1999 Aug 8, compiled "
  122. --- 30,35 ----
  123.    */
  124.   #define VIM_VERSION_NODOT    "vim54"
  125.   #define VIM_VERSION_SHORT    "5.4"
  126. ! #define VIM_VERSION_MEDIUM    "5.4.18"
  127. ! #define VIM_VERSION_LONG    "VIM - Vi IMproved 5.4.18 (1999 Aug 9)"
  128. ! #define VIM_VERSION_LONG_DATE    "VIM - Vi IMproved 5.4.18 (1999 Aug 9, compiled "
  129. --
  130. login: yes
  131. password: I don't know, please tell me
  132. password is incorrect
  133. login: yes
  134. password: incorrect
  135.  
  136. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  137.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  138.