* fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.

From-SVN: r35059
This commit is contained in:
Kaveh R. Ghazi 2000-07-16 17:17:46 +00:00 committed by Kaveh Ghazi
parent f67798e710
commit fd589a2a86
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
2000-07-16 Neil Booth <NeilB@earthling.net>
* cpplex.c: Update comments.

View File

@ -164,15 +164,17 @@ emit_gnu_type ( text, rm )
/*
* Now print out the reformed typedef
*/
printf ("#ifndef __%s_TYPE__\n"
"#define __%s_TYPE__ %s\n"
"#endif\n",
printf ("\
#ifndef __%s_TYPE__\n\
#define __%s_TYPE__ %s\n\
#endif\n",
p_tm->pz_TYPE, p_tm->pz_TYPE, p_tm->pz_gtype );
printf ("#if !defined(_GCC_%s_T)%s\n"
"#define _GCC_%s_T\n"
"typedef __%s_TYPE__ %s_t;\n"
"#endif\n",
printf ("\
#if !defined(_GCC_%s_T)%s\n\
#define _GCC_%s_T\n\
typedef __%s_TYPE__ %s_t;\n\
#endif\n",
p_tm->pz_TYPE, p_tm->pz_cxx_guard,
p_tm->pz_TYPE, p_tm->pz_TYPE, p_tm->pz_type);