🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #292

indent 1.0 enum problems

#292
From: -----
Date: Thu, 13 Jul 1989 06:27
46 lines
2048 bytes
The mixing of enums and ints in GNU indent 1.0 caused the 4.3BSD cc
to complain and give up until the following casts were added.
Even then, it produced dozens of "warning: enumeration type clash"
warnings.

*** io.c.orig	Thu Jul 13 01:11:12 1989
--- io.c	Thu Jul 13 01:11:46 1989
***************
*** 473,479 ****
  		    if (p[0] == '*' && p[1] == '/' && p[2] == '\n' && com) {
  			if (s_com != e_com || s_lab != e_lab || s_code != e_code)
  			    dump_line();
! 			if (!(inhibit_formatting = com - 1)) {
  			    n_real_blanklines = 0;
  			    postfix_blankline_requested = 0;
  			    prefix_blankline_requested = 0;
--- 473,479 ----
  		    if (p[0] == '*' && p[1] == '/' && p[2] == '\n' && com) {
  			if (s_com != e_com || s_lab != e_lab || s_code != e_code)
  			    dump_line();
! 			if (!(inhibit_formatting = (int) com - 1)) {
  			    n_real_blanklines = 0;
  			    postfix_blankline_requested = 0;
  			    prefix_blankline_requested = 0;


*** lexi.c.orig	Thu Jul 13 01:18:16 1989
--- lexi.c	Thu Jul 13 01:16:51 1989
***************
*** 306,312 ****
      case '\n':
  	unary_delim = parser_state_tos->last_u_d;
  	parser_state_tos->last_nl = true;	/* remember that we just had a newline */
! 	code = (had_eof ? 0 : newline);
  
  	/*
  	 * if data has been exausted, the newline is a dummy, and we should
--- 306,312 ----
      case '\n':
  	unary_delim = parser_state_tos->last_u_d;
  	parser_state_tos->last_nl = true;	/* remember that we just had a newline */
! 	code = (had_eof ? 0 : (int) newline);
  
  	/*
  	 * if data has been exausted, the newline is a dummy, and we should
Technical Details
Message-ID: <8907130527.AA13316@rocky2>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!decwrl!ucbvax!tut.cis.ohio-state.edu!ROCKY2.ROCKEFELLER.EDU!edf

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!decwrl!ucbvax!tut.cis.ohio-state.edu!ROCKY2.ROCKEFELLER.EDU!edf
From: edf@ROCKY2.ROCKEFELLER.EDU (-----)
Newsgroups: gnu.utils.bug
Subject: indent 1.0 enum problems
Message-ID: <8907130527.AA13316@rocky2>
Date: 13 Jul 89 06:27:28 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 46