🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
1 messages
1 total messages Started by Jason Merrill Sat, 28 Mar 1992 23:24
iostream bug/fix on Sequent Symmetry
#49
Author: Jason Merrill
Date: Sat, 28 Mar 1992 23:24
65 lines
1717 bytes
sbufvscan.C uses strol to read in integers, but the Sequent doesn't have
strtol in libc.

Since the strtoul which comes with iostream checks for unary minus and seems
to process it correctly, just changing all references to strtol into
references to strtoul works fine.

Diffs:

*** sbufvscan.C~	Sat Mar 28 15:22:30 1992
--- sbufvscan.C	Sat Mar 28 15:23:00 1992
***************
*** 178,184
  			/* FALLTHROUGH */
  		case 'd':
  			c = CT_INT;
! 			ccfn = (u_long (*)(const char, char**, int))strtol;
  			base = 10;
  			break;
  

--- 178,184 -----
  			/* FALLTHROUGH */
  		case 'd':
  			c = CT_INT;
! 			ccfn = strtoul;
  			base = 10;
  			break;
  
***************
*** 184,190
  
  		case 'i':
  			c = CT_INT;
! 			ccfn = (u_long (*)(const char, char**, int))strtol;
  			base = 0;
  			break;
  

--- 184,190 -----
  
  		case 'i':
  			c = CT_INT;
! 			ccfn = strtoul;
  			base = 0;
  			break;
  
***************
*** 266,272
  			if (isupper(c))
  				flags |= LONG;
  			c = CT_INT;
! 			ccfn = (u_long (*)(const char, char**, int))strtol;
  			base = 10;
  			break;
  		}

--- 266,272 -----
  			if (isupper(c))
  				flags |= LONG;
  			c = CT_INT;
! 		        ccfn = strtoul;
  			base = 10;
  			break;
  		}
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