__DATE__ and __TIME__ are both string literals, so we can concatentate
Nicholas Clark [Fri, 11 Jan 2008 18:03:18 +0000 (18:03 +0000)]
them, rather than formating them via %s.

p4raw-id: //depot/perl@32960

perl.c

diff --git a/perl.c b/perl.c
index e8821a5..84b7d4e 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -1880,12 +1880,10 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
                                   "\"  Built under %s\\n",OSNAME);
 #ifdef __DATE__
 #  ifdef __TIME__
-                   Perl_sv_catpvf(aTHX_ opts_prog,
-                                  "  Compiled at %s %s\\n\"",__DATE__,
-                                  __TIME__);
+                   sv_catpvs(opts_prog,
+                             "  Compiled at " __DATE__ " " __TIME__ "\\n\"");
 #  else
-                   Perl_sv_catpvf(aTHX_ opts_prog,"  Compiled on %s\\n\"",
-                                  __DATE__);
+                   sv_catpvs(opts_prog, "  Compiled on " __DATE__ "\\n\"");
 #  endif
 #endif
                    sv_catpvs(opts_prog, "; $\"=\"\\n    \"; "