🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by ----- Thu, 13 Jul 1989 06:27
indent 1.0 enum problems
#292
Author: -----
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
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