Commit graph

14 commits

Author SHA1 Message Date
dholland
a3dfc1076f Fix legacy C. Pass -Wall -W -Wmissing-declarations -Wwrite-strings on
gcc45.

   - avoid implicit int, declare void functions void
   - return values from non-void functions
   - put most external declarations properly in header files
   - use some static and const
   - fix up a big mess with function pointer casting
   - use standard includes, don't provide own decls of standard functions
   - use types matching libc when providing own malloc, printf, and putchar
   - use <ctype.h> functions correctly
   - silence assorted compiler warnings
   - fix some bugs exposed by compiler warnings
   - don't intentionally exercise signed overflow
   - remove some unused items
   - add patch comments to other patch (patch-aa)

As this includes several fixes and removes some undefined behavior on
a commonly reachable code path, bump PKGREVISION.
2012-12-28 03:03:08 +00:00
dholland
befc9c5c71 Fix broken build with clang. 2011-08-01 05:44:26 +00:00
joerg
251b54e564 Honour varbase and create tmp/vi.recover during +INSTALL. Bump revision. 2010-01-31 21:24:03 +00:00
joerg
012dc3eef2 DESTDIR support 2010-01-29 19:31:33 +00:00
minskim
298a650720 Adjust the valloc return value on Darwin not to conflict with the one
declared in unistd.h.
2006-07-22 04:23:29 +00:00
minskim
7fc5e51865 Make this package build with gcc-4. 2006-06-08 16:12:48 +00:00
joerg
58b0d1b544 Adjust valloc return value on DragonFly to not conflict with unistd.h. 2005-12-09 14:10:39 +00:00
rillig
77cadc1c1a install(1) on NetBSD 1.6.2 refused to install bin/ex with mode 1755 as
unprivileged user. It is now installed with mode 755 instead.
2005-11-08 21:46:03 +00:00
rillig
aa98316659 Fixed patch-ac from tv to only change the code on Interix. This makes all
other platforms work again.
2005-11-08 21:39:12 +00:00
tv
67a06c55ca Include <stdlib.h> to get [u]intptr_t on Interix. 2005-10-31 20:04:45 +00:00
kristerw
227648818b Change the INSTALL value to make this package actually install. 2004-02-18 21:29:10 +00:00
itojun
e14efcea47 upgrade to 040103. various portability fixes 2004-02-15 22:29:39 +00:00
itojun
1bb854a679 use libcurses 2002-12-16 15:05:56 +00:00
itojun
f0e747e038 Berkeley ex/vi 3.7 2002-12-16 14:59:00 +00:00