🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by tiemann Tue, 02 Jan 1990 19:59
const function bug
#2116
Author: tiemann
Date: Tue, 02 Jan 1990 19:59
21 lines
1142 bytes
And this:

calvin% diff -c2 cplus-decl.c~ cplus-decl.c
*** cplus-decl.c~	Tue Jan  2 14:45:55 1990
--- cplus-decl.c	Tue Jan  2 14:55:16 1990
***************
*** 1571,1575 ****
        /* A `const' which was not declared `extern' and is
  	 in static storage is invisible.  */
!       if (TREE_READONLY (newdecl) && TREE_STATIC (newdecl)
  	  && ! DECL_EXTERNAL (newdecl))
  	TREE_PUBLIC (newdecl) = 0;
--- 1571,1576 ----
        /* A `const' which was not declared `extern' and is
  	 in static storage is invisible.  */
!       if (TREE_CODE (newdecl) == VAR_DECL
! 	  && TREE_READONLY (newdecl) && TREE_STATIC (newdecl)
  	  && ! DECL_EXTERNAL (newdecl))
  	TREE_PUBLIC (newdecl) = 0;

Michael
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads