summaryrefslogtreecommitdiff
path: root/mk/help
diff options
context:
space:
mode:
authorrillig <rillig>2008-01-06 19:13:31 +0000
committerrillig <rillig>2008-01-06 19:13:31 +0000
commitac49558bddf0f8293fc5eed52377567b444a4400 (patch)
tree06c15b4255279945d6fe5848bc21b1c7cc016115 /mk/help
parent1b8ec14cbb92b3d80a3a70d4e0420e89f8325a34 (diff)
downloadpkgsrc-ac49558bddf0f8293fc5eed52377567b444a4400.tar.gz
C compilers also emit error messages that are worth being explain.
Diffstat (limited to 'mk/help')
-rw-r--r--mk/help/c.help16
1 files changed, 16 insertions, 0 deletions
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