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 / 6.2.501 < prev    next >
Encoding:
Internet Message Format  |  2004-04-24  |  7.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.501
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2.501
  11. Problem:    Vim does not compile with MorphOS.
  12. Solution:   Add a Makefile and a few changes to make Vim work with MorphOS.
  13.         (Ali Akcaagac)
  14. Files:        runtime/doc/os_amiga.txt, src/INSTALLami.txt,
  15.         src/Make_morphos.mak, src/memfile.c, src/term.c
  16.  
  17.  
  18. *** ../vim-6.2.500/runtime/doc/os_amiga.txt    Sun Jun  1 12:20:34 2003
  19. --- runtime/doc/os_amiga.txt    Sun Apr 25 16:44:21 2004
  20. ***************
  21. *** 1,4 ****
  22. ! *os_amiga.txt*  For Vim version 6.2.  Last change: 2001 Sep 03
  23.   
  24.   
  25.             VIM REFERENCE MANUAL    by Bram Moolenaar
  26. --- 1,4 ----
  27. ! *os_amiga.txt*  For Vim version 6.2.  Last change: 2004 Apr 25
  28.   
  29.   
  30.             VIM REFERENCE MANUAL    by Bram Moolenaar
  31. ***************
  32. *** 6,11 ****
  33. --- 6,12 ----
  34.   
  35.                               *Amiga*
  36.   This file contains the particularities for the Amiga version of Vim.
  37. + There is also a section specifically for |MorphOS| below.
  38.   
  39.   Installation on the Amiga:
  40.   - Assign "VIM:" to the directory where the Vim "doc" directory is.  Vim will
  41. ***************
  42. *** 74,78 ****
  43. --- 75,139 ----
  44.   Commands that accept a single file name allow for embedded spaces in the file
  45.   name. However, when using commands that accept several file names, embedded
  46.   spaces need to be escaped with a backslash.
  47. + ------------------------------------------------------------------------------
  48. + Vim for MorphOS                            *MorphOS*
  49. + [this section mostly by Ali Akcaagac]
  50. + For the latest info about the MorphOS version:
  51. +     http://www.akcaagac.com/index_vim.html
  52. + Problems ~
  53. + There are a couple of problems which are not MorphOS related but more Vim and
  54. + UN*X related. When starting up Vim in ram: it complains with a nag requester
  55. + from MorphOS please simply ignore it. Another problem is when running Vim as
  56. + is some plugins will cause a few problems which you can ignore as well.
  57. + Hopefully someone will be fixing it over the time.
  58. + To pass all these problems for now you can either run:
  59. +     vim <file to be edited>
  60. + or if you want to run Vim plain and enjoy the motion of Helpfiles etc. it then
  61. + would be better to enter:
  62. +     vim --noplugins <of course you can add a file>
  63. + Installation ~
  64. + 1) Please copy the binary 'VIM' file to c:
  65. + 2) Get the Vim runtime package from:
  66. +     ftp://ftp.vim.org/pub/vim/amiga/vim62rt.tgz
  67. +    and unpack it in your 'Apps' directory of the MorphOS installation. For me
  68. +    this would create following directory hierarchy:
  69. +     MorphOS:Apps/Vim/Vim62/...
  70. + 3) Add the following lines to your s:shell-startup (Important!).
  71. +     ;Begin VIM
  72. +     Set VIM=MorphOS:Apps/Vim/Vim62
  73. +     Assign HOME: ""
  74. +     ;End VIM
  75. + 4) Copy the '.vimrc' file to s:
  76. + 5) There is also a file named 'color-sequence' included in this archive. This
  77. +    will set the MorphOS Shell to show ANSI colors. Please copy the file to s:
  78. +    and change the s:shell-startup to:
  79. +     ;Begin VIM
  80. +     Set VIM=MorphOS:Apps/Vim/Vim62
  81. +     Assign HOME: ""
  82. +     Execute S:Color-Sequence
  83. +     Cls
  84. +     ;End VIM
  85.   
  86.    vim:tw=78:ts=8:ft=help:norl:
  87. *** ../vim-6.2.500/src/INSTALLami.txt    Wed Jul 19 12:53:38 2000
  88. --- src/INSTALLami.txt    Sun Apr 25 16:46:09 2004
  89. ***************
  90. *** 26,28 ****
  91. --- 26,34 ----
  92.   
  93.   You will have to set the "VIM" environment variable to the location of the
  94.   documentation files.
  95. + MorphOS
  96. + Use the Make_morphos.mak Makefile:
  97. +     make -f Make_morphos.mak
  98. *** ../vim-6.2.500/src/Make_morphos.mak    Sun Apr 25 16:57:38 2004
  99. --- src/Make_morphos.mak    Sun Apr 25 16:48:43 2004
  100. ***************
  101. *** 0 ****
  102. --- 1,54 ----
  103. + #
  104. + # Makefile for VIM, using MorphOS SDK (gcc 2.95.3)
  105. + #
  106. + # Uncomment the following two lines and comment the two after in
  107. + # case you want to play with GVIM MorphOS. But it's still known
  108. + # to not work at all. So meanwhile it's better to stick with VIM.
  109. + # GVIM =    -DFEAT_GUI_AMIGA
  110. + # GVIMSRC =    gui_amiga.c gui.c
  111. + GVIM =
  112. + GVIMSRC =
  113. + CFLAGS =    -c                        \
  114. +         -pipe                        \
  115. +         -O2                        \
  116. +         -Wall                        \
  117. +         -DNO_ARP                    \
  118. +         -DUSE_TMPNAM                    \
  119. +         ${GVIM}                        \
  120. +         -noixemul                    \
  121. +         -Iproto
  122. + PRG =        Vim
  123. + LIBS =        -noixemul -s
  124. + CC =        gcc
  125. + LD =        gcc
  126. + .c.o:
  127. +     ${CC} ${CFLAGS} $< -o $@
  128. + SRC =        buffer.c    charset.c    diff.c        \
  129. +         digraph.c    edit.c        eval.c        \
  130. +         ex_cmds.c    ex_cmds2.c    ex_docmd.c    \
  131. +         ex_eval.c    ex_getln.c    fileio.c    \
  132. +         fold.c        getchar.c    main.c        \
  133. +         mark.c        memfile.c    memline.c    \
  134. +         menu.c        message.c    misc1.c        \
  135. +         misc2.c        move.c        mbyte.c        \
  136. +         normal.c    ops.c        option.c    \
  137. +         os_amiga.c    quickfix.c    regexp.c    \
  138. +         screen.c    search.c    syntax.c    \
  139. +         tag.c        term.c        ui.c        \
  140. +         undo.c        window.c    version.c    \
  141. +         ${GVIMSRC}
  142. + OBJ =    $(SRC:.c=.o)
  143. + $(PRG): $(OBJ)
  144. +     ${LD} -o $(PRG) $(OBJ) $(LIBS)
  145. + clean:
  146. +     rm -fv *.o $(PRG)
  147. *** ../vim-6.2.500/src/memfile.c    Tue Apr  6 21:31:48 2004
  148. --- src/memfile.c    Sun Apr 25 16:53:51 2004
  149. ***************
  150. *** 517,522 ****
  151. --- 517,533 ----
  152.       mf_ins_free(mfp, hp);    /* put *hp in the free list */
  153.   }
  154.   
  155. + #if defined(__MORPHOS__)
  156. + /* function is missing in MorphOS libnix version */
  157. + extern unsigned long *__stdfiledes;
  158. +     static unsigned long
  159. + fdtofh(int filedescriptor)
  160. + {
  161. +     return __stdfiledes[filedescriptor];
  162. + }
  163. + #endif
  164.   /*
  165.    * Sync the memory file *mfp to disk.
  166.    * Flags:
  167. ***************
  168. *** 660,673 ****
  169.           Flush(fp->ufbfh);
  170.       }
  171.   # else
  172. ! #  if defined(_DCC) || defined(__GNUC__)
  173.       {
  174. ! #   ifdef __GNUC__
  175.           /* Have function (in libnix at least),
  176.            * but ain't got no prototype anywhere. */
  177. !         unsigned long fdtofh(int filedescriptor);
  178.   #   endif
  179.           BPTR fh = (BPTR)fdtofh(mfp->mf_fd);
  180.   
  181.           if (fh != 0)
  182. --- 671,683 ----
  183.           Flush(fp->ufbfh);
  184.       }
  185.   # else
  186. ! #  if defined(_DCC) || defined(__GNUC__) || defined(__MORPHOS__)
  187.       {
  188. ! #   if defined(__GNUC__) && !defined(__MORPHOS__)
  189.           /* Have function (in libnix at least),
  190.            * but ain't got no prototype anywhere. */
  191. !         extern unsigned long fdtofh(int filedescriptor);
  192.   #   endif
  193.           BPTR fh = (BPTR)fdtofh(mfp->mf_fd);
  194.   
  195.           if (fh != 0)
  196. *** ../vim-6.2.500/src/term.c    Mon Apr 19 20:26:43 2004
  197. --- src/term.c    Sun Apr 25 16:48:43 2004
  198. ***************
  199. *** 296,301 ****
  200. --- 296,312 ----
  201.       {(int)KS_UE,    "\033[0m"},
  202.       {(int)KS_CZH,    "\033[3m"},
  203.       {(int)KS_CZR,    "\033[0m"},
  204. + #if defined(__MORPHOS__)
  205. +     {(int)KS_CCO,    "8"},        /* allow 8 colors */
  206. + #  ifdef TERMINFO
  207. +     {(int)KS_CAB,    "\033[4%p1%dm"},/* set background color */
  208. +     {(int)KS_CAF,    "\033[3%p1%dm"},/* set foreground color */
  209. + #  else
  210. +     {(int)KS_CAB,    "\033[4%dm"},    /* set background color */
  211. +     {(int)KS_CAF,    "\033[3%dm"},    /* set foreground color */
  212. + #  endif
  213. +     {(int)KS_OP,    "\033[m"},    /* reset colors */
  214. + #endif
  215.       {(int)KS_MS,    "y"},
  216.       {(int)KS_UT,    "y"},        /* guessed */
  217.       {(int)KS_LE,    "\b"},
  218. ***************
  219. *** 304,309 ****
  220. --- 315,323 ----
  221.   #  else
  222.       {(int)KS_CM,    "\033[%i%d;%dH"},
  223.   #  endif
  224. + #if defined(__MORPHOS__)
  225. +     {(int)KS_SR,    "\033M"},
  226. + #endif
  227.   #  ifdef TERMINFO
  228.       {(int)KS_CRI,    "\033[%p1%dC"},
  229.   #  else
  230. *** ../vim-6.2.500/src/version.c    Sun Apr 25 16:29:55 2004
  231. --- src/version.c    Sun Apr 25 16:56:39 2004
  232. ***************
  233. *** 639,640 ****
  234. --- 639,642 ----
  235.   {   /* Add new patch number below this line */
  236. + /**/
  237. +     501,
  238.   /**/
  239.  
  240. -- 
  241. If they don't keep on exercising their lips, he thought, their brains
  242. start working.
  243.         -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
  244.  
  245.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  246. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  247. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  248.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  249.