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.1.279 < prev    next >
Encoding:
Internet Message Format  |  2003-01-05  |  5.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.279
  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.1.279
  11. Problem:    The prototype for smsg() and smsg_attr() do not match the function
  12.         definition.  This may cause trouble for some compilers. (Nix)
  13. Solution:   Use va_list for systems that have stdarg.h.  Use "int" instead of
  14.         "void" for the return type.
  15. Files:        src/auto/configure, src/config.h.in, src/configure.in,
  16.         src/proto.h, src/message.c
  17.  
  18.  
  19. *** ../vim61.278/src/auto/configure    Thu Jan  2 21:33:00 2003
  20. --- src/auto/configure    Mon Jan  6 21:30:20 2003
  21. ***************
  22. *** 4706,4713 ****
  23.   rm -f conftest*
  24.   fi
  25.   
  26. ! for ac_hdr in stdlib.h string.h sys/select.h sys/utsname.h termcap.h \
  27. !     fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
  28.       iconv.h langinfo.h unistd.h stropts.h errno.h strings.h \
  29.       sys/resource.h sys/systeminfo.h locale.h \
  30.       sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
  31. --- 4706,4713 ----
  32.   rm -f conftest*
  33.   fi
  34.   
  35. ! for ac_hdr in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
  36. !     termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
  37.       iconv.h langinfo.h unistd.h stropts.h errno.h strings.h \
  38.       sys/resource.h sys/systeminfo.h locale.h \
  39.       sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
  40. *** ../vim61.278/src/config.h.in    Sun Oct 13 20:08:13 2002
  41. --- src/config.h.in    Mon Jan  6 21:28:12 2003
  42. ***************
  43. *** 254,259 ****
  44. --- 242,248 ----
  45.   /* #undef STDC_HEADERS */
  46.   
  47.   /* instead, we check a few STDC things ourselves */
  48. + #undef HAVE_STDARG_H
  49.   #undef HAVE_STDLIB_H
  50.   #undef HAVE_STRING_H
  51.   
  52. *** ../vim61.278/src/configure.in    Thu Jan  2 21:33:00 2003
  53. --- src/configure.in    Mon Jan  6 21:27:25 2003
  54. ***************
  55. *** 1391,1398 ****
  56.           AC_MSG_RESULT(no))
  57.   fi
  58.   
  59. ! AC_CHECK_HEADERS(stdlib.h string.h sys/select.h sys/utsname.h termcap.h \
  60. !     fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
  61.       iconv.h langinfo.h unistd.h stropts.h errno.h strings.h \
  62.       sys/resource.h sys/systeminfo.h locale.h \
  63.       sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
  64. --- 1391,1398 ----
  65.           AC_MSG_RESULT(no))
  66.   fi
  67.   
  68. ! AC_CHECK_HEADERS(stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
  69. !     termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
  70.       iconv.h langinfo.h unistd.h stropts.h errno.h strings.h \
  71.       sys/resource.h sys/systeminfo.h locale.h \
  72.       sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
  73. *** ../vim61.278/src/proto.h    Thu Aug 16 22:20:55 2001
  74. --- src/proto.h    Mon Jan  6 21:29:44 2003
  75. ***************
  76. *** 85,97 ****
  77.   # endif
  78.   # include "main.pro"
  79.   # include "mark.pro"
  80. ! # ifndef MESSAGE_FILE
  81. ! void
  82.   #ifdef __BORLANDC__
  83.   _RTLENTRYF
  84.   #endif
  85. ! smsg __ARGS((char_u *, ...));    /* cannot be produced automatically */
  86. ! void
  87.   #ifdef __BORLANDC__
  88.   _RTLENTRYF
  89.   #endif
  90. --- 85,99 ----
  91.   # endif
  92.   # include "main.pro"
  93.   # include "mark.pro"
  94. ! # if !defined MESSAGE_FILE || defined(HAVE_STDARG_H)
  95. !     /* These prototypes cannot be produced automatically and conflict with
  96. !      * the old-style prototypes in message.c. */
  97. ! int
  98.   #ifdef __BORLANDC__
  99.   _RTLENTRYF
  100.   #endif
  101. ! smsg __ARGS((char_u *, ...));
  102. ! int
  103.   #ifdef __BORLANDC__
  104.   _RTLENTRYF
  105.   #endif
  106. *** ../vim61.278/src/message.c    Sun Oct 13 20:08:14 2002
  107. --- src/message.c    Mon Jan  6 21:29:05 2003
  108. ***************
  109. *** 15,21 ****
  110.   
  111.   #include "vim.h"
  112.   
  113. ! #ifdef __QNX__
  114.   # include <stdarg.h>
  115.   #endif
  116.   
  117. --- 15,21 ----
  118.   
  119.   #include "vim.h"
  120.   
  121. ! #ifdef HAVE_STDARG_H
  122.   # include <stdarg.h>
  123.   #endif
  124.   
  125. ***************
  126. *** 288,294 ****
  127.    * shorter than IOSIZE!!!
  128.    */
  129.   #ifndef PROTO
  130. ! # ifndef __QNX__
  131.   
  132.   int
  133.   #ifdef __BORLANDC__
  134. --- 288,294 ----
  135.    * shorter than IOSIZE!!!
  136.    */
  137.   #ifndef PROTO
  138. ! # ifndef HAVE_STDARG_H
  139.   
  140.   int
  141.   #ifdef __BORLANDC__
  142. ***************
  143. *** 329,337 ****
  144.       return msg_attr(IObuff, attr);
  145.   }
  146.   
  147. ! # else /* __QNX__ */
  148.   
  149.       int
  150.   smsg(char_u *s, ...)
  151.   {
  152.       va_list arglist;
  153. --- 329,340 ----
  154.       return msg_attr(IObuff, attr);
  155.   }
  156.   
  157. ! # else /* HAVE_STDARG_H */
  158.   
  159.       int
  160. + #ifdef __BORLANDC__
  161. + _RTLENTRYF
  162. + #endif
  163.   smsg(char_u *s, ...)
  164.   {
  165.       va_list arglist;
  166. ***************
  167. *** 343,348 ****
  168. --- 346,354 ----
  169.   }
  170.   
  171.       int
  172. + #ifdef __BORLANDC__
  173. + _RTLENTRYF
  174. + #endif
  175.   smsg_attr(int attr, char_u *s, ...)
  176.   {
  177.       va_list arglist;
  178. ***************
  179. *** 353,359 ****
  180.       return msg_attr(IObuff, attr);
  181.   }
  182.   
  183. ! # endif /* __QNX__ */
  184.   #endif
  185.   
  186.   /*
  187. --- 359,365 ----
  188.       return msg_attr(IObuff, attr);
  189.   }
  190.   
  191. ! # endif /* HAVE_STDARG_H */
  192.   #endif
  193.   
  194.   /*
  195. *** ../vim61.278/src/version.c    Mon Jan  6 20:19:10 2003
  196. --- src/version.c    Mon Jan  6 21:53:17 2003
  197. ***************
  198. *** 608,609 ****
  199. --- 608,611 ----
  200.   {   /* Add new patch number below this line */
  201. + /**/
  202. +     279,
  203.   /**/
  204.  
  205. -- 
  206. GUARD #2:  It could be carried by an African swallow!
  207. GUARD #1:  Oh, yeah, an African swallow maybe, but not a European swallow,
  208.            that's my point.
  209. GUARD #2:  Oh, yeah, I agree with that...
  210.                                   The Quest for the Holy Grail (Monty Python)
  211.  
  212.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  213. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  214. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  215.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  216.