pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] pspp/src/language/lexer ChangeLog q2c.c


From: Ben Pfaff
Subject: [Pspp-cvs] pspp/src/language/lexer ChangeLog q2c.c
Date: Tue, 13 Feb 2007 00:28:52 +0000

CVSROOT:        /cvsroot/pspp
Module name:    pspp
Changes by:     Ben Pfaff <blp> 07/02/13 00:28:52

Modified files:
        src/language/lexer: ChangeLog q2c.c 

Log message:
        Make q2c link under mingw32, by eliminating the dependency on
        localtime.  Gnulib replaces localtime by a fixed version, but we don't
        link q2c against gnulib.  q2c only uses localtime to put the time of
        processing into the output file, which I've never in practice found to
        be useful, so the patch just drops this feature.
        
        Patch #5740.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/src/language/lexer/ChangeLog?cvsroot=pspp&r1=1.21&r2=1.22
http://cvs.savannah.gnu.org/viewcvs/pspp/src/language/lexer/q2c.c?cvsroot=pspp&r1=1.19&r2=1.20

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/pspp/pspp/src/language/lexer/ChangeLog,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- ChangeLog   22 Dec 2006 04:38:23 -0000      1.21
+++ ChangeLog   13 Feb 2007 00:28:52 -0000      1.22
@@ -1,3 +1,12 @@
+Sun Feb 11 20:31:51 2007  Ben Pfaff  <address@hidden>
+
+       * q2c.c: Make q2c link under mingw32, by eliminating the
+       dependency on localtime.  Gnulib replaces localtime by a fixed
+       version, but we don't link q2c against gnulib.  q2c only uses
+       localtime to put the time of processing into the output file,
+       which I've never in practice found to be useful, so the patch just
+       drops this feature.
+
 Wed Dec 13 21:00:24 2006  Ben Pfaff  <address@hidden>
 
        * variable-parser.c (parse_variables): If not successful, set

Index: q2c.c
===================================================================
RCS file: /cvsroot/pspp/pspp/src/language/lexer/q2c.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- q2c.c       15 Dec 2006 00:16:02 -0000      1.19
+++ q2c.c       13 Feb 2007 00:28:52 -0000      1.20
@@ -23,14 +23,15 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <time.h>
+#include <stdbool.h>
+#include <string.h>
 #include <errno.h>
 #include <unistd.h>
+
 #include <libpspp/assertion.h>
 #include <libpspp/compiler.h>
-#include <libpspp/str.h>
-#include "exit.h"
 
+#include "exit.h"
      
 /* Max length of an input line. */
 #define MAX_LINE_LEN 1024
@@ -1875,18 +1876,10 @@
 static void
 dump_header (void)
 {
-  time_t curtime;
-  struct tm *loctime;
-  char *timep;
-
   indent = 0;
-  curtime = time (NULL);
-  loctime = localtime (&curtime);
-  timep = asctime (loctime);
-  timep[strlen (timep) - 1] = 0;
   dump (0,   "/* %s\t\t-*- mode: c; buffer-read-only: t -*-", ofn);
   dump (0, nullstr);
-  dump (0, "   Generated by q2c from %s on %s.", ifn, timep);
+  dump (0, "   Generated by q2c from %s.", ifn);
   dump (0, "   Do not modify!");
   dump (0, " */");
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]