[y2038 commit] r177 - in trunk: . bin perl/Time-y2038/inc/Local/Module

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 17, 2008, 7:27:55 PM11/17/08
to y2038-...@googlegroups.com
Author: schwern
Date: Mon Nov 17 16:27:15 2008
New Revision: 177

Modified:
trunk/bin/check_max.c
trunk/perl/Time-y2038/inc/Local/Module/Build.pm
trunk/time64.c

Log:
Detabify


Modified: trunk/bin/check_max.c
==============================================================================
--- trunk/bin/check_max.c (original)
+++ trunk/bin/check_max.c Mon Nov 17 16:27:15 2008
@@ -14,8 +14,8 @@

/* Visual C++ 2008's difftime() can't do negative times */
double my_difftime(time_t left, time_t right) {
- double diff = (double)left - (double)right;
- return diff;
+ double diff = (double)left - (double)right;
+ return diff;
}

void check_date_max( struct tm * (*date_func)(const time_t *), char
*func_name ) {

Modified: trunk/perl/Time-y2038/inc/Local/Module/Build.pm
==============================================================================
--- trunk/perl/Time-y2038/inc/Local/Module/Build.pm (original)
+++ trunk/perl/Time-y2038/inc/Local/Module/Build.pm Mon Nov 17 16:27:15 2008
@@ -13,9 +13,9 @@
my $cb = $self->cbuilder;
my $obj = $cb->compile(source => "check_max.c", include_dirs =>
['y2038']);
$exe = $cb->link_executable(objects => $obj, exe_file => $exe);
- $exe = $self->find_real_exe($exe);
- $self->notes(check_max => $exe);
- $self->add_to_cleanup($exe);
+ $exe = $self->find_real_exe($exe);
+ $self->notes(check_max => $exe);
+ $self->add_to_cleanup($exe);
}

return if $self->up_to_date(["munge_config", $exe]
=> "y2038/time64_config.h");
@@ -60,11 +60,11 @@

my $real_exe;
for ($exe, "$exe.exe") {
- $real_exe = $_ if -e;
+ $real_exe = $_ if -e;
}

warn "Can't find the executable, thought it was $exe"
- unless defined $real_exe;
+ unless defined $real_exe;

return $real_exe;
}

Modified: trunk/time64.c
==============================================================================
--- trunk/time64.c (original)
+++ trunk/time64.c Mon Nov 17 16:27:15 2008
@@ -118,8 +118,8 @@
#define CHEAT_DAYS (1199145600 / 24 / 60 / 60)
#define CHEAT_YEARS 108

-#define IS_LEAP(n) ((!(((n) + 1900) % 400) || (!(((n) + 1900) % 4) &&
(((n) + 1900) % 100))) != 0)
-#define WRAP(a,b,m) ((a) = ((a) < 0 ) ? ((b)--, (a) + (m)) : (a))
+#define IS_LEAP(n) ((!(((n) + 1900) % 400) || (!(((n) + 1900) % 4) &&
(((n) + 1900) % 100))) != 0)
+#define WRAP(a,b,m) ((a) = ((a) < 0 ) ? ((b)--, (a) + (m)) : (a))

#ifdef USE_SYSTEM_LOCALTIME
# define SHOULD_USE_SYSTEM_LOCALTIME(a) ( \

Reply all
Reply to author
Forward
0 new messages