Date: Wed, 22 Mar 95 13:06:58 JST From: Masahiro SEKIGUCHI <seki@sysrap.cs.fujitsu.co.jp> To: freebsd-hackers@FreeBSD.org Subject: Re: gcc include files Message-ID: <9503220406.AA11474@seki.sysrap.cs.fujitsu.co.jp> References: <199503220221.WAA08065@Snoopy.UCIS.Dal.Ca>
next in thread | previous in thread | raw e-mail | index | archive | help
digdon@Snoopy.UCIS.Dal.Ca(Mike Digdon): >In stdio.h, line 244, sys_errlist is defined as: >extern __const char *__const sys_errlist[]; >In screen.c, it is defined as: >extern char *sys_errlist[]; >What is this __const? It tells you that you cannot modify strings pointed to by the array sys_errlist[]. >Why >is it there? Because you *really* cannot modify them. I guess someone thought the fact sould be explicitly stated. >Why is it breaking? The latter declaration asks the compiler to allow you to modify the strings. It contradicts the former. You can just delete the line from screen.c to compile it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9503220406.AA11474>