Re: ctags(1) and mg(1) again

2011-11-23 Thread Sunil Nimmagadda
This version checks for presence and permissions of filename input by the user and report problems instead of marching on as suggested by Mark Lumsden. Comments? Index: Makefile === RCS file: /home/sunil/cvs/src/usr.bin/mg/Makefile,v

libedit: don't segfault on bind to invalid command

2011-11-23 Thread Pascal Stumpf
Whenever you try to bind a key to an invalid command in a program that uses libedit, the program will segfault. This is because parse_cmd() in parse.c still assumes an old format of the help array (where it was NULL-terminated). This is no longer the case, and .nfunc now keeps track of both the h

Re: Allow clang++ to work on OpenBSD

2011-11-23 Thread Matthew Dempsky
On Wed, Nov 23, 2011 at 9:04 AM, Mark Kettenis wrote: > Hard to tell if you don't explain what the problem is, The problem is clang++ is stricter about C and C++ rules than GCC is. E.g., it doesn't like conflicting prototypes, whereas GCC will happily ignore them in certain cases. See http://mar

Re: Allow clang++ to work on OpenBSD

2011-11-23 Thread Mark Kettenis
> Date: Wed, 23 Nov 2011 17:06:40 +0100 > From: Pascal Stumpf > > On Wed, 23 Nov 2011 17:00:57 +0100 (CET), Mark Kettenis wrote: > > > Date: Thu, 17 Nov 2011 19:06:24 +0100 > > > From: Pascal Stumpf > > > > > > Hi, > > > this diff was already suggested by matthew@ some time ago. It renders >

Re: Allow clang++ to work on OpenBSD

2011-11-23 Thread Pascal Stumpf
On Wed, 23 Nov 2011 17:00:57 +0100 (CET), Mark Kettenis wrote: > > Date: Thu, 17 Nov 2011 19:06:24 +0100 > > From: Pascal Stumpf > > > > Hi, > > this diff was already suggested by matthew@ some time ago. It renders > > clang++ usable with gcc's C++ include files, see: > > > > http://marc.info/

Re: Allow clang++ to work on OpenBSD

2011-11-23 Thread Mark Kettenis
> Date: Thu, 17 Nov 2011 19:06:24 +0100 > From: Pascal Stumpf > > Hi, > this diff was already suggested by matthew@ some time ago. It renders > clang++ usable with gcc's C++ include files, see: > > http://marc.info/?l=openbsd-tech&m=130229126704450&w=2 > > I don't expect any fallout, but just