Commit fd589a2a by Kaveh R. Ghazi Committed by Kaveh Ghazi

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

From-SVN: r35059
parent f67798e7
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.
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment