From ac49558bddf0f8293fc5eed52377567b444a4400 Mon Sep 17 00:00:00 2001 From: rillig Date: Sun, 6 Jan 2008 19:13:31 +0000 Subject: C compilers also emit error messages that are worth being explain. --- mk/help/c.help | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mk/help/c.help (limited to 'mk/help') diff --git a/mk/help/c.help b/mk/help/c.help new file mode 100644 index 00000000000..a8d37b2226a --- /dev/null +++ b/mk/help/c.help @@ -0,0 +1,16 @@ +# $NetBSD: c.help,v 1.1 2008/01/06 19:13:31 rillig Exp $ + +# This file contains typical error messages from C++ compilers and +# instructions how to fix them properly. + +# === Invalid lvalue in increment === +# +# Once upon a time, it was possible to say "((int)foo)++". With gcc4, +# this no longer works, and now you have to say "foo = (int)foo + 1". +# +# This becomes more complicated in macros that access datastructures, +# which involves much pointer arithmetics. A popular example is obstack, +# a collection of "object stack macros". A patch for fixing that is in +# devel/coconut/patches/patch-ab revision 1.1. +# +# Keywords: C lvalue increment obstack obstack_ptr_grow -- cgit v1.2.3