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> 2000-07-16 Neil Booth <NeilB@earthling.net>
* cpplex.c: Update comments. * cpplex.c: Update comments.
......
...@@ -164,15 +164,17 @@ emit_gnu_type ( text, rm ) ...@@ -164,15 +164,17 @@ emit_gnu_type ( text, rm )
/* /*
* Now print out the reformed typedef * Now print out the reformed typedef
*/ */
printf ("#ifndef __%s_TYPE__\n" printf ("\
"#define __%s_TYPE__ %s\n" #ifndef __%s_TYPE__\n\
"#endif\n", #define __%s_TYPE__ %s\n\
#endif\n",
p_tm->pz_TYPE, p_tm->pz_TYPE, p_tm->pz_gtype ); p_tm->pz_TYPE, p_tm->pz_TYPE, p_tm->pz_gtype );
printf ("#if !defined(_GCC_%s_T)%s\n" printf ("\
"#define _GCC_%s_T\n" #if !defined(_GCC_%s_T)%s\n\
"typedef __%s_TYPE__ %s_t;\n" #define _GCC_%s_T\n\
"#endif\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_cxx_guard,
p_tm->pz_TYPE, p_tm->pz_TYPE, p_tm->pz_type); 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