This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: defaults.h ASM_OUTPUT_ASCII
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: defaults.h ASM_OUTPUT_ASCII
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Sun, 9 Jan 2000 14:15:17 +0100 (MET)
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 \""); \
} \
} \