(ASM_OUTPUT_ASCII): Enclose macro in "do { .. } while (0)".

From-SVN: r5443
This commit is contained in:
James Van Artsdalen 1993-09-24 05:00:25 +00:00
parent 4f1c4914f4
commit 0b760f1ee6
2 changed files with 9 additions and 5 deletions

View File

@ -37,13 +37,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* How to output an ASCII string constant. */
#define ASM_OUTPUT_ASCII(FILE, p, size) \
do \
{ int i = 0; \
while (i < (size)) \
{ if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n"); \
fprintf ((FILE), "%s ", ASM_BYTE_OP); } \
else fprintf ((FILE), ","); \
else fprintf ((FILE), ","); \
fprintf ((FILE), "0x%x", ((p)[i++] & 0377)) ;} \
fprintf ((FILE), "\n"); }
fprintf ((FILE), "\n"); \
} while (0)
/* Do use .optim by default on this machine. */
#undef ASM_FILE_START_1

View File

@ -40,13 +40,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* How to output an ASCII string constant. */
#define ASM_OUTPUT_ASCII(FILE, p, size) \
do \
{ int i = 0; \
while (i < (size)) \
{ if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n"); \
{ if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n"); \
fprintf ((FILE), "%s ", ASM_BYTE_OP); } \
else fprintf ((FILE), ","); \
else fprintf ((FILE), ","); \
fprintf ((FILE), "0x%x", ((p)[i++] & 0377)) ;} \
fprintf ((FILE), "\n"); }
fprintf ((FILE), "\n"); \
} while (0)
/* Output at beginning of assembler file. */
/* The .file command should always begin the output. */