This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: defaults.h ASM_OUTPUT_ASCII


Shouldn't we use ISDIGIT instead of explicitly coding the check?

2000-01-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
 
 	* defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
 
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/defaults.h,v
retrieving revision 1.17
diff -c -3 -p -r1.17 defaults.h
*** defaults.h	2000/01/06 14:29:08	1.17
--- defaults.h	2000/01/09 12:46:46
*************** do { ASM_OUTPUT_LABEL(FILE,LABEL_ALTERNA
*** 90,97 ****
  		 The Vax assembler fails to stop reading the escape	      \
  		 after three digits, so this is the only way we		      \
  		 can get it to parse the data properly.  */		      \
! 	      if (i < thissize - 1					      \
! 		  && p[i + 1] >= '0' && p[i + 1] <= '9')		      \
  		fprintf (asm_out_file, "\"\n\t.ascii \"");		      \
  	  }								      \
  	}								      \
--- 90,96 ----
  		 The Vax assembler fails to stop reading the escape	      \
  		 after three digits, so this is the only way we		      \
  		 can get it to parse the data properly.  */		      \
! 	      if (i < thissize - 1 && ISDIGIT(p[i + 1]))		      \
  		fprintf (asm_out_file, "\"\n\t.ascii \"");		      \
  	  }								      \
  	}								      \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]